From 3c43c86150e7e58be6f024c8f5d320c3b810fc04 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Mon, 30 Jan 2012 00:34:38 +0100 Subject: Added some WM functions --- bin/switch_tags | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/switch_tags (limited to 'bin/switch_tags') diff --git a/bin/switch_tags b/bin/switch_tags new file mode 100755 index 0000000..55eda0a --- /dev/null +++ b/bin/switch_tags @@ -0,0 +1,10 @@ +#!/bin/zsh + +TAGS=( $(herbstclient tag_status 0 | tr ":\!.+#" " ") ) +FOO=$(for i in "${TAGS[@]}"; do echo $i; done | dmenu) + +if [[ "${TAGS[@]}" != *"$FOO"* ]]; then + herbstclient add $FOO +fi + +herbstclient use $FOO -- cgit v1.2.3-54-g00ecf