home: group desktop stuff
This commit is contained in:
parent
de26106903
commit
28e082cd9c
|
@ -3,10 +3,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./default.nix
|
./default.nix
|
||||||
./profiles/gnome
|
./profiles/desktop
|
||||||
./profiles/mpv.nix
|
./profiles/desktop/gnome
|
||||||
./profiles/desktop.nix
|
|
||||||
./profiles/salert.nix
|
|
||||||
./profiles/sshuttle.nix
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,18 +6,21 @@
|
||||||
./lxterminal
|
./lxterminal
|
||||||
./pulsar
|
./pulsar
|
||||||
./zed
|
./zed
|
||||||
|
./mpv.nix
|
||||||
|
./salert.nix
|
||||||
|
./sshuttle.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# TODO: doesn't work?
|
# TODO: doesn't work?
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
nixpkgs.config.permittedUnfreePackages = [
|
||||||
"discord"
|
pkgs.discord.name
|
||||||
"telegra-desktop"
|
pkgs.telegram-desktop.name
|
||||||
"spotify"
|
pkgs.spotify.name
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowInsecurePredicate = pkg: builtins.elem (lib.getName pkg) [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
"pulsar"
|
pkgs.pulsar.name
|
||||||
"zotero"
|
pkgs.zotero.name
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
|
@ -102,6 +102,7 @@ with lib.hm.gvariant;
|
||||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
||||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom12/"
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom12/"
|
||||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom11/"
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom11/"
|
||||||
|
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom13/"
|
||||||
];
|
];
|
||||||
home = [ "<Super>e" ];
|
home = [ "<Super>e" ];
|
||||||
magnifier = [ "<Super>Escape" ];
|
magnifier = [ "<Super>Escape" ];
|
||||||
|
@ -144,6 +145,12 @@ with lib.hm.gvariant;
|
||||||
name = "Open SymPy terminal";
|
name = "Open SymPy terminal";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom13" = {
|
||||||
|
binding = "<Shift><Control>Print";
|
||||||
|
command = "normcap";
|
||||||
|
name = "normcap OCR";
|
||||||
|
};
|
||||||
|
|
||||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2" = {
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2" = {
|
||||||
binding = "";
|
binding = "";
|
||||||
command = "sh -c \"$HOME/.local/opt/left-window.sh\"";
|
command = "sh -c \"$HOME/.local/opt/left-window.sh\"";
|
|
@ -21,6 +21,7 @@ dump1() {
|
||||||
dump "org/gnome/mutter/keybindings"
|
dump "org/gnome/mutter/keybindings"
|
||||||
dump "org/gnome/shell/keybindings"
|
dump "org/gnome/shell/keybindings"
|
||||||
dump "org/gnome/settings-daemon/plugins/media-keys"
|
dump "org/gnome/settings-daemon/plugins/media-keys"
|
||||||
|
# dump "org/gnome/desktop/notifications/application/emote"
|
||||||
} | dconf2nix > dconf-gnome-bindings.nix
|
} | dconf2nix > dconf-gnome-bindings.nix
|
||||||
|
|
||||||
{
|
{
|
|
@ -27,9 +27,9 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
home.file.".local/opt/open-microsoft-url-files.py".source = ../../files/opt/open-microsoft-url-files.py;
|
home.file.".local/opt/open-microsoft-url-files.py".source = ../../../files/opt/open-microsoft-url-files.py;
|
||||||
home.file.".local/opt/python-interactive-imports.py".source = ../../files/opt/python-interactive-imports.py;
|
home.file.".local/opt/python-interactive-imports.py".source = ../../../files/opt/python-interactive-imports.py;
|
||||||
home.file.".local/opt/sympy-interactive-imports.py".source = ../../files/opt/sympy-interactive-imports.py;
|
home.file.".local/opt/sympy-interactive-imports.py".source = ../../../files/opt/sympy-interactive-imports.py;
|
||||||
|
|
||||||
# qt theme
|
# qt theme
|
||||||
qt.enable = true;
|
qt.enable = true;
|
||||||
|
@ -62,12 +62,12 @@ in
|
||||||
"org/gnome/desktop/background" = {
|
"org/gnome/desktop/background" = {
|
||||||
color-shading-type = "solid";
|
color-shading-type = "solid";
|
||||||
picture-options = "zoom";
|
picture-options = "zoom";
|
||||||
picture-uri = "file://${../../files/wallpaper.jpg}";
|
picture-uri = "file://${../../../files/wallpaper.jpg}";
|
||||||
picture-uri-dark = "file://${../../files/wallpaper.jpg}";
|
picture-uri-dark = "file://${../../../files/wallpaper.jpg}";
|
||||||
};
|
};
|
||||||
"org/gnome/desktop/screensaver" = {
|
"org/gnome/desktop/screensaver" = {
|
||||||
idle-activation-enabled = false;
|
idle-activation-enabled = false;
|
||||||
picture-uri = "file://${../../files/screensaver.jpg}";
|
picture-uri = "file://${../../../files/screensaver.jpg}";
|
||||||
};
|
};
|
||||||
|
|
||||||
# theme
|
# theme
|
|
@ -0,0 +1,26 @@
|
||||||
|
{ pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) getExe;
|
||||||
|
inherit (pkgs) mpv;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
programs = let
|
||||||
|
rcScript = ''
|
||||||
|
salert() {
|
||||||
|
local retval=$?
|
||||||
|
if test $retval -eq 0; then
|
||||||
|
#${getExe mpv} ${../../files/sounds/TFH_MadameC_Sing.wav} --no-video --really-quiet || true
|
||||||
|
#${getExe mpv} ${../../files/sounds/NTR-BKIE-USA-0065.wav} --no-video --really-quiet || true
|
||||||
|
${getExe mpv} ${../../files/sounds/NTR-BKIE-USA-0134.wav} --no-video --really-quiet || true
|
||||||
|
else
|
||||||
|
${getExe mpv} ${../../files/sounds/NTR-BKIE-USA-0137.wav} --no-video --really-quiet || true
|
||||||
|
fi
|
||||||
|
return $retval
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
# TODO: fish
|
||||||
|
bash.initExtra = rcScript;
|
||||||
|
zsh.initExtra = rcScript;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,26 +0,0 @@
|
||||||
{ pkgs, lib, ... }:
|
|
||||||
let
|
|
||||||
inherit (lib) getExe;
|
|
||||||
inherit (pkgs) mpv;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
programs = let
|
|
||||||
rcScript = ''
|
|
||||||
salert() {
|
|
||||||
local retval=$?
|
|
||||||
if test $retval -eq 0; then
|
|
||||||
#${getExe mpv} ${../files/sounds/TFH_MadameC_Sing.wav} --no-video --really-quiet || true
|
|
||||||
#${getExe mpv} ${../files/sounds/NTR-BKIE-USA-0065.wav} --no-video --really-quiet || true
|
|
||||||
${getExe mpv} ${../files/sounds/NTR-BKIE-USA-0134.wav} --no-video --really-quiet || true
|
|
||||||
else
|
|
||||||
${getExe mpv} ${../files/sounds/NTR-BKIE-USA-0137.wav} --no-video --really-quiet || true
|
|
||||||
fi
|
|
||||||
return $retval
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
in {
|
|
||||||
# TODO: fish
|
|
||||||
bash.initExtra = rcScript;
|
|
||||||
zsh.initExtra = rcScript;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in New Issue