aboutsummaryrefslogtreecommitdiff
path: root/scripts/scripts/wscycle.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/scripts/wscycle.sh')
-rwxr-xr-xscripts/scripts/wscycle.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/scripts/scripts/wscycle.sh b/scripts/scripts/wscycle.sh
deleted file mode 100755
index 7ea608d..0000000
--- a/scripts/scripts/wscycle.sh
+++ /dev/null
@@ -1,30 +0,0 @@
1#!/usr/bin/env bash
2# cycle through workspaces
3
4# get the current ws
5ws=$( xprop -root _NET_CURRENT_DESKTOP | sed -e 's/_NET_CURRENT_DESKTOP(CARDINAL) = //' )
6total=5
7
8while getopts fr options
9do
10 case $options in
11 f)
12 if [[ $ws -eq $total ]]
13 then
14 wmctrl -s 0
15 else
16 ws=$(( $ws + 1 ))
17 wmctrl -s $ws
18 fi
19 ;;
20 r)
21 if [[ $ws -eq 0 ]]
22 then
23 wmctrl -s $total
24 else
25 ws=$(( $ws - 1 ))
26 wmctrl -s $ws
27 fi
28 ;;
29 esac
30done