From 9e9ff053904aec6303c025041cd469d05dd82dcf Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 16 Dec 2015 19:31:15 +0000 Subject: Add script to create/change workspace --- bin/workspace | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/workspace (limited to 'bin') 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 -- cgit v1.2.3