hyprland: Add toggle layout script

This commit is contained in:
Donovan Glover 2023-04-30 13:46:59 -04:00
parent feb84afb12
commit 08b5d9a72b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View 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