summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-12-16 19:31:15 +0000
committerUrbain Vaes <urbain@vaes.uk>2015-12-16 19:31:15 +0000
commit9e9ff053904aec6303c025041cd469d05dd82dcf (patch)
tree141fed2799a74fdec1a9fc1863661c8d2829766c /bin
parent726c6e17a355bec252ffa1ac33cdef4adc79e700 (diff)
Add script to create/change workspace
Diffstat (limited to 'bin')
-rwxr-xr-xbin/workspace5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/workspace b/bin/workspace
new file mode 100755
index 0000000..9082f39
--- /dev/null
+++ b/bin/workspace
@@ -0,0 +1,5 @@
+#!/bin/zsh
+
+workspaces=$(i3-msg -t get_workspaces | grep -Po '"name":.*?[^\\]"' | sed 's/"name":"\([0-9a-zA-Z]\+\)"/\1/g')
+target=$(echo $workspaces | dmenu -i -p "Go to workspace:")
+exec i3-msg workspace $target