summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/hyprland.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-08-14 09:53:04 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-08-14 09:53:04 +0200
commitb52c5e810faf389afad81022f28c3feb4120c709 (patch)
treea4908fb2864bccd914e79310337841fd6d4e53db /accounts/gkleen@sif/hyprland.nix
parent90d05a6a5d2956a2ca696d0fe96eabd148388985 (diff)
downloadnixos-b52c5e810faf389afad81022f28c3feb4120c709.tar
nixos-b52c5e810faf389afad81022f28c3feb4120c709.tar.gz
nixos-b52c5e810faf389afad81022f28c3feb4120c709.tar.bz2
nixos-b52c5e810faf389afad81022f28c3feb4120c709.tar.xz
nixos-b52c5e810faf389afad81022f28c3feb4120c709.zip
...
Diffstat (limited to 'accounts/gkleen@sif/hyprland.nix')
-rw-r--r--accounts/gkleen@sif/hyprland.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/gkleen@sif/hyprland.nix b/accounts/gkleen@sif/hyprland.nix
index 22b64611..579b485f 100644
--- a/accounts/gkleen@sif/hyprland.nix
+++ b/accounts/gkleen@sif/hyprland.nix
@@ -279,14 +279,14 @@ in {
279 export PATH="${lib.makeBinPath (with pkgs; [ jq ])}:$PATH" 279 export PATH="${lib.makeBinPath (with pkgs; [ jq ])}:$PATH"
280 [[ $(hyprctl monitors -j | jq '.[] | select(.name == "eDP-1") | .disabled') = "true" ]] || exit 0 280 [[ $(hyprctl monitors -j | jq '.[] | select(.name == "eDP-1") | .disabled') = "true" ]] || exit 0
281 281
282 hyprctl keyword monitor \"eDP-1,3840x2160@59.99900,auto,1.5\"" 282 hyprctl keyword monitor "eDP-1,3840x2160@59.99900,auto,1.5"
283 ''}" 283 ''}"
284 ", switch:on:Lid Switch,exec,${pkgs.writeShellScript "clamshell-on" '' 284 ", switch:on:Lid Switch,exec,${pkgs.writeShellScript "clamshell-on" ''
285 export PATH="${lib.makeBinPath (with pkgs; [ jq ])}:$PATH" 285 export PATH="${lib.makeBinPath (with pkgs; [ jq ])}:$PATH"
286 286
287 [[ $(hyprctl monitors -j | jq 'reduce (.[] | select(.disabled == false)) as $_ (0; .+1)') -gt 1 ]] || exit 0 287 [[ $(hyprctl monitors -j | jq 'reduce (.[] | select(.disabled == false)) as $_ (0; .+1)') -gt 1 ]] || exit 0
288 288
289 hyprctl keyword monitor \"eDP-1,disable\" 289 hyprctl keyword monitor "eDP-1,disable"
290 ''}" 290 ''}"
291 ]; 291 ];
292 292