mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-22 06:33:08 +01: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}SHIFT,Return,exec,rofi -show drun
|
||||
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},E,exec,emopicker9000
|
||||
bind = ${modifier},S,exec,grim -g "$(slurp)"
|
||||
|
@ -17,6 +17,5 @@
|
||||
inherit username; inherit wallpaperGit; })
|
||||
(import ./../scripts/themechange.nix { inherit pkgs; inherit flakeDir; })
|
||||
(import ./../scripts/theme-selector.nix { inherit pkgs; })
|
||||
(import ./../scripts/swaync-reloader.nix { inherit pkgs; })
|
||||
];
|
||||
}
|
||||
|
@ -75,7 +75,7 @@
|
||||
"custom/themeselector" = {
|
||||
tooltip = false;
|
||||
format = "";
|
||||
on-click = "theme-selector && swaync-reloader";
|
||||
on-click = "theme-selector";
|
||||
};
|
||||
"custom/notification" = {
|
||||
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"
|
||||
else
|
||||
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
|
||||
kitty -e themechange "$chosen"
|
||||
themechange "$chosen"
|
||||
fi
|
||||
''
|
||||
|
@ -7,6 +7,7 @@ pkgs.writeShellScriptBin "themechange" ''
|
||||
replacement="$1"
|
||||
sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/flake.nix
|
||||
pkexec nixos-rebuild switch --flake ${flakeDir}
|
||||
hyprctl dispatch -- exec swaync-client -R
|
||||
hyprctl dispatch -- exec swaync-client -rs
|
||||
fi
|
||||
''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user