summaryrefslogtreecommitdiff
path: root/river
diff options
context:
space:
mode:
Diffstat (limited to 'river')
-rwxr-xr-xriver/sp/river_sp24
1 files changed, 12 insertions, 12 deletions
diff --git a/river/sp/river_sp b/river/sp/river_sp
index 2203e40..9b1e1ad 100755
--- a/river/sp/river_sp
+++ b/river/sp/river_sp
@@ -26,20 +26,20 @@ spawnwindow () {
#{{{ getopts
for i in "$@"; do
case "$i" in
- z|1) ARG=1 ;;
- x|2) ARG=2 ;;
- c|3) ARG=3 ;;
- v|4) ARG=4 ;;
- b|5) ARG=5 ;;
- a|6) ARG=6 ;;
- s|7) ARG=7 ;;
- d|8) ARG=8 ;;
- f|9) ARG=9 ;;
- g|10) ARG=10 ;;
- q|11) ARG=11 ;;
+ z) ARG=1 ;;
+ x) ARG=2 ;;
+ c) ARG=3 ;;
+ v) ARG=4 ;;
+ b) ARG=5 ;;
+ a) ARG=6 ;;
+ s) ARG=7 ;;
+ d) ARG=8 ;;
+ f) ARG=9 ;;
+ g) ARG=10 ;;
+ q) ARG=11 ;;
*) printf "Unknown scratchpad $i!\n" ; exit 1 ;;
esac
- if pgrep -x "sp_$OPTARG"; then
+ if pgrep -x "sp_$i"; then
riverctl toggle-focused-tags $((1 << ($ARG + 9)))
else
riverctl toggle-focused-tags $(( 1 << ($ARG + 9)))