mirror of
https://github.com/The-Repo-Club/DotFiles.git
synced 2025-02-24 13:19:52 -05:00
45 lines
828 B
Bash
Executable File
45 lines
828 B
Bash
Executable File
#!/bin/bash
|
|
|
|
asksetting() {
|
|
options="max
|
|
mainLeft
|
|
mainCenter
|
|
mainRight
|
|
MainMainVStack
|
|
MainVStackMain
|
|
VerticalTileTop
|
|
VerticalTileBottom
|
|
NestedRight
|
|
SmartNestedRight"
|
|
|
|
echo ">>h Switch to a Workspace
|
|
$options" | instamenu -c -l 10 -w -400 -i -h -1 -bw 4 -q "${1:-Search...}"
|
|
}
|
|
|
|
while [ -n "$1" ]; do
|
|
case $1 in
|
|
"mainCenter")
|
|
echo "mainCenter" | i3-instant-layout - && exit 1
|
|
;;
|
|
*)
|
|
echo "Program terminated." && exit 1
|
|
;;
|
|
esac
|
|
done
|
|
|
|
LOOPSETTING="true"
|
|
while [ -n "$LOOPSETTING" ]; do
|
|
CHOICE="$(asksetting)"
|
|
[ -n "$CHOICE" ] || exit
|
|
unset LOOPSETTING
|
|
case "$CHOICE" in
|
|
$CHOICE)
|
|
echo "$CHOICE" | i3-instant-layout - && exit 1
|
|
;;
|
|
*)
|
|
echo "Program terminated." && exit 1
|
|
;;
|
|
esac
|
|
done
|
|
|