mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 02:53:55 -05:00
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
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:
parent
56427dd1aa
commit
320055523a
|
@ -6,6 +6,7 @@
|
||||||
}: let
|
}: let
|
||||||
cfg = config.ar.home;
|
cfg = config.ar.home;
|
||||||
hyprctl = lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl";
|
hyprctl = lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl";
|
||||||
|
pkill = lib.getExe' pkgs.procps "pkill";
|
||||||
virtKeyboard = lib.getExe' pkgs.squeekboard "squeekboard";
|
virtKeyboard = lib.getExe' pkgs.squeekboard "squeekboard";
|
||||||
in {
|
in {
|
||||||
clamshell = pkgs.writeShellScript "hyprland-clamshell" ''
|
clamshell = pkgs.writeShellScript "hyprland-clamshell" ''
|
||||||
|
@ -20,6 +21,8 @@ in {
|
||||||
(monitor: ''${hyprctl} keyword monitor "${monitor}"'')
|
(monitor: ''${hyprctl} keyword monitor "${monitor}"'')
|
||||||
cfg.desktop.hyprland.laptopMonitors
|
cfg.desktop.hyprland.laptopMonitors
|
||||||
}
|
}
|
||||||
|
sleep 1
|
||||||
|
${pkill} -SIGUSR2 waybar
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue