mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-22 18:51:22 +02:00
hyprland: Add toggle layout script
This commit is contained in:
parent
feb84afb12
commit
08b5d9a72b
7
hyprland/.config/hypr/toggle-layout.sh
Executable file
7
hyprland/.config/hypr/toggle-layout.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [[ "$(hyprctl -j getoption general:layout | jq -r '.str')" == "master" ]]; then
|
||||||
|
hyprctl keyword general:layout "dwindle"
|
||||||
|
else
|
||||||
|
hyprctl keyword general:layout "master"
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user