nix-config/hyprland/.config/hypr/toggle-layout.sh
2023-04-30 13:46:59 -04:00

8 lines
187 B
Bash
Executable File

#!/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