nix-config/hyprland/.config/hypr/toggle-layout.sh

8 lines
187 B
Bash
Raw Normal View History

2023-04-30 19:46:59 +02:00
#!/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