From 320055523a04e78b6ac48c97d5dd711723271780 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 21 Jul 2024 13:25:14 -0400 Subject: [PATCH] home/hyprland: reload waybar with clamshell script (#55) * home/hyprland: reload waybar with clamshell script * home/hyprland/clamshell: reload waybar after lid open --- homeManagerModules/desktop/hyprland/scripts.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeManagerModules/desktop/hyprland/scripts.nix b/homeManagerModules/desktop/hyprland/scripts.nix index ec081a0a..f3aa6114 100644 --- a/homeManagerModules/desktop/hyprland/scripts.nix +++ b/homeManagerModules/desktop/hyprland/scripts.nix @@ -6,6 +6,7 @@ }: let cfg = config.ar.home; hyprctl = lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl"; + pkill = lib.getExe' pkgs.procps "pkill"; virtKeyboard = lib.getExe' pkgs.squeekboard "squeekboard"; in { clamshell = pkgs.writeShellScript "hyprland-clamshell" '' @@ -20,6 +21,8 @@ in { (monitor: ''${hyprctl} keyword monitor "${monitor}"'') cfg.desktop.hyprland.laptopMonitors } + sleep 1 + ${pkill} -SIGUSR2 waybar fi '';