summaryrefslogtreecommitdiff
path: root/river
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-24 11:35:00 -0600
committerzachir <zachir@librem.one>2023-02-24 11:35:00 -0600
commitb9429bab03c5a9b9b867259322f77a6bec0d3eeb (patch)
tree4c5f92f645b5b622564e9e90d48b65ed9d7391e4 /river
parentb14a3e0bd1e9fc36ca9b8cb2945edf1f254cc091 (diff)
update river_sp
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)))