home/hyprland: reload waybar with clamshell script (#55)
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

* home/hyprland: reload waybar with clamshell script

* home/hyprland/clamshell: reload waybar after lid open
This commit is contained in:
Aly Raffauf 2024-07-21 13:25:14 -04:00 committed by GitHub
parent 56427dd1aa
commit 320055523a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
'';