diff options
Diffstat (limited to 'hypr-layout')
-rwxr-xr-x | hypr-layout | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/hypr-layout b/hypr-layout index 0981c52..c177bb6 100755 --- a/hypr-layout +++ b/hypr-layout @@ -1,9 +1,18 @@ #!/bin/sh -while getopts "dmt" o; do case "${o}" in +printhelp () { + printf "hypr-layout: sets the hyprland layout.\n" + printf "\t-d) dwindle layout\n" + printf "\t-m) master layout\n" + printf "\t-t) toggle between master and dwindle\n" + exit 1 +} + +while getopts "dmst" o; do case "${o}" in d) DWINDLE="y" && unset MASTER ;; m) MASTER="y" && unset DWINDLE ;; t) TOGGLE="y" ;; + *) printhelp ;; esac done if [ -n "$TOGGLE" ]; then |