Add support for the empty layout
This commit is contained in:
parent
3e1eceee2b
commit
0c47d1b053
|
@ -76,9 +76,10 @@ L11="$(printf "L11: Bottom Stack (Horizontal)\n")"
|
||||||
L12="$(printf "L12: Grid (Horizontal)\n")"
|
L12="$(printf "L12: Grid (Horizontal)\n")"
|
||||||
L13="$(printf "L13: Dynamic Grid\n")"
|
L13="$(printf "L13: Dynamic Grid\n")"
|
||||||
L14="$(printf "L14: Custom\n")"
|
L14="$(printf "L14: Custom\n")"
|
||||||
|
L15="$(printf "L15: Empty\n")"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"layout") SEL_LAYOUT=$(printf "${L1}\n${L2}\n${L3}\n${L4}\n${L5}\n${L6}\n${L7}\n${L8}\n${L9}\n${L10}\n${L11}\n${L12}\n${L13}\n${L14}\nPrevious Layout\nNext Layout\nEnter S expression" | $RUNLAUNCHER -l 21 -p "Pick a layout: ") ;;
|
"layout") SEL_LAYOUT=$(printf "${L1}\n${L2}\n${L3}\n${L4}\n${L5}\n${L6}\n${L7}\n${L8}\n${L9}\n${L10}\n${L11}\n${L12}\n${L13}\n${L14}\n${L15}\nPrevious Layout\nNext Layout\nEnter S expression" | $RUNLAUNCHER -l 21 -p "Pick a layout: ") ;;
|
||||||
"reloadcolors") speedwm -s "#cmd:65" ;;
|
"reloadcolors") speedwm -s "#cmd:65" ;;
|
||||||
"list") sed 's|speedwm -s "#cmd:||g; s|"||g; s| - ||g; s@|@-@g' /usr/share/speedwm/example.signal | head -n "$(expr "$(cat /usr/share/speedwm/example.signal | wc -l)" - 1)" ;;
|
"list") sed 's|speedwm -s "#cmd:||g; s|"||g; s| - ||g; s@|@-@g' /usr/share/speedwm/example.signal | head -n "$(expr "$(cat /usr/share/speedwm/example.signal | wc -l)" - 1)" ;;
|
||||||
"help") HELP ;;
|
"help") HELP ;;
|
||||||
|
@ -111,5 +112,6 @@ case "$SEL_LAYOUT" in
|
||||||
"L12: Grid (Horizontal)") speedwm -s "#cmd:12" ;;
|
"L12: Grid (Horizontal)") speedwm -s "#cmd:12" ;;
|
||||||
"L13: Dynamic Grid") speedwm -s "#cmd:13" ;;
|
"L13: Dynamic Grid") speedwm -s "#cmd:13" ;;
|
||||||
"L14: Custom") speedwm -s "#cmd:1" && speedwm -s "#cmd:17" ;;
|
"L14: Custom") speedwm -s "#cmd:1" && speedwm -s "#cmd:17" ;;
|
||||||
|
"L15: Empty") speedwm -s "#cmd:113" ;;
|
||||||
"Enter S expression") speedwm -s "#cmd:15" ;;
|
"Enter S expression") speedwm -s "#cmd:15" ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue