mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-31 01:58:36 +01: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…
Reference in New Issue
Block a user