diff --git a/modules/hyprland/default.nix b/modules/hyprland/default.nix index 94052d2..587e94a 100644 --- a/modules/hyprland/default.nix +++ b/modules/hyprland/default.nix @@ -42,10 +42,7 @@ in desktopSystemConfiguration { "wl-paste --type image --watch cliphist store -max-items 1000" ]; - exec = [ - "pkill swaybg; swaybg --image ${./wallpaper.png}" - "pkill --signal SIGUSR2 waybar" - ]; + exec = [ "pkill swaybg; swaybg --image ${./wallpaper.png}" ]; bindl = [ (replaceStrings [ "\n;" "\n" ] [ ";" "" ] '' @@ -140,7 +137,6 @@ in desktopSystemConfiguration { "SUPER , T , exec, thunar" "SUPER , C , exec, hyprpicker --autocopy" - "SUPER, B, exec, pkill --signal SIGUSR1 waybar" "SUPER, SPACE, exec, pkill fuzzel; fuzzel" "SUPER, V , exec, pkill fuzzel; cliphist list | fuzzel --dmenu | cliphist decode | wl-copy" diff --git a/modules/hyprland/waybar.nix b/modules/hyprland/waybar.nix index 17a37b7..f228e05 100644 --- a/modules/hyprland/waybar.nix +++ b/modules/hyprland/waybar.nix @@ -1,6 +1,11 @@ { config, lib, ... }: with lib; desktopUserHomeConfiguration { + wayland.windowManager.hyprland.settings = { + exec = [ "pkill --signal SIGUSR2 waybar" ]; + bind = [ "SUPER, B, exec, pkill --signal SIGUSR1 waybar" ]; + }; + programs.waybar = with config.theme.withHashtag; enabled { systemd = enabled;