aboutsummaryrefslogtreecommitdiff
path: root/home/bin/sw
diff options
context:
space:
mode:
Diffstat (limited to 'home/bin/sw')
-rwxr-xr-xhome/bin/sw15
1 files changed, 0 insertions, 15 deletions
diff --git a/home/bin/sw b/home/bin/sw
deleted file mode 100755
index f021d7f..0000000
--- a/home/bin/sw
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash
-# Switch workspace between a specified primary one and the current one.
-
-PRIMARY=0
-CURRENT=$(wmctrl -d | grep \* | cut -d " " -f1)
-
-SAVE_FILE=/tmp/current-workspace
-
-if [ "$CURRENT" = "$PRIMARY" ] && [ -e "$SAVE_FILE" ]; then
- wmctrl -s $(cat "$SAVE_FILE")
-else
- echo "$CURRENT" > "$SAVE_FILE"
- wmctrl -s $PRIMARY
-fi
-