From f54e78b4ff1da42786f70a643d6d2943c7ff4df5 Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 15 Sep 2024 19:50:21 -0500 Subject: [PATCH] hyprland: restart services at reload Signed-off-by: Myned --- options/custom/desktops/hyprland/settings.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/options/custom/desktops/hyprland/settings.nix b/options/custom/desktops/hyprland/settings.nix index e3f5606..a9baeec 100644 --- a/options/custom/desktops/hyprland/settings.nix +++ b/options/custom/desktops/hyprland/settings.nix @@ -60,19 +60,17 @@ in { ]; # https://wiki.hyprland.org/Configuring/Keywords/#executing - #// exec = [ ]; + exec = [ + left # Left-handed at boot + "${systemctl} --user restart walker" + "${sleep} 2 && ${systemctl} --user restart waybar" + ]; # https://wiki.hyprland.org/Configuring/Keywords/#executing exec-once = [ - "${rm} ~/.cache/walker/clipboard.gob" # Clear clipboard sway-audio-idle-inhibit # Inhibit idle while audio is playing - left # Left-handed at boot - - # TODO: Remove when systemd service fixed - # https://github.com/Alexays/Waybar/issues/2882 - "${sleep} 2 && ${systemctl} --user restart waybar" - + "${rm} ~/.cache/walker/clipboard.gob" # Clear clipboard "[group new lock; tile] ${firefox-esr}" ] ++ optionals config.custom.wallpaper ["wallpaper"];