mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-26 23:11:49 +02:00
Added swaync reload command to keybindings in hyprland
This commit is contained in:
parent
3e61b80155
commit
9557e321d9
@ -105,7 +105,7 @@ in with lib; {
|
|||||||
bind = ${modifier},Return,exec,kitty
|
bind = ${modifier},Return,exec,kitty
|
||||||
bind = ${modifier}SHIFT,Return,exec,rofi -show drun
|
bind = ${modifier}SHIFT,Return,exec,rofi -show drun
|
||||||
bind = ${modifier}SHIFT,W,exec,kitty -e amfora
|
bind = ${modifier}SHIFT,W,exec,kitty -e amfora
|
||||||
bind = ${modifier}SHIFT,S,exec,web-search
|
bind = ${modifier}SHIFT,S,exec,swaync-client -rs
|
||||||
bind = ${modifier},W,exec,${browser}
|
bind = ${modifier},W,exec,${browser}
|
||||||
bind = ${modifier},E,exec,emopicker9000
|
bind = ${modifier},E,exec,emopicker9000
|
||||||
bind = ${modifier},S,exec,grim -g "$(slurp)"
|
bind = ${modifier},S,exec,grim -g "$(slurp)"
|
||||||
|
@ -17,6 +17,5 @@
|
|||||||
inherit username; inherit wallpaperGit; })
|
inherit username; inherit wallpaperGit; })
|
||||||
(import ./../scripts/themechange.nix { inherit pkgs; inherit flakeDir; })
|
(import ./../scripts/themechange.nix { inherit pkgs; inherit flakeDir; })
|
||||||
(import ./../scripts/theme-selector.nix { inherit pkgs; })
|
(import ./../scripts/theme-selector.nix { inherit pkgs; })
|
||||||
(import ./../scripts/swaync-reloader.nix { inherit pkgs; })
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@
|
|||||||
"custom/themeselector" = {
|
"custom/themeselector" = {
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
format = "";
|
format = "";
|
||||||
on-click = "theme-selector && swaync-reloader";
|
on-click = "theme-selector";
|
||||||
};
|
};
|
||||||
"custom/notification" = {
|
"custom/notification" = {
|
||||||
tooltip = false;
|
tooltip = false;
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
{ pkgs, }:
|
|
||||||
|
|
||||||
pkgs.writeShellScriptBin "swaync-reloader" ''
|
|
||||||
${pkgs.swaynotificationcenter}/bin/swaync-client -R
|
|
||||||
${pkgs.swaynotificationcenter}/bin/swaync-client -rs
|
|
||||||
''
|
|
@ -11,6 +11,6 @@ pkgs.writeShellScriptBin "theme-selector" ''
|
|||||||
themechange "$chosen"
|
themechange "$chosen"
|
||||||
else
|
else
|
||||||
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
|
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
|
||||||
kitty -e themechange "$chosen"
|
themechange "$chosen"
|
||||||
fi
|
fi
|
||||||
''
|
''
|
||||||
|
@ -7,6 +7,7 @@ pkgs.writeShellScriptBin "themechange" ''
|
|||||||
replacement="$1"
|
replacement="$1"
|
||||||
sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/flake.nix
|
sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/flake.nix
|
||||||
pkexec nixos-rebuild switch --flake ${flakeDir}
|
pkexec nixos-rebuild switch --flake ${flakeDir}
|
||||||
|
hyprctl dispatch -- exec swaync-client -R
|
||||||
|
hyprctl dispatch -- exec swaync-client -rs
|
||||||
fi
|
fi
|
||||||
''
|
''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user