summaryrefslogtreecommitdiff
path: root/bin/rename_workspace
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-04-19 15:24:25 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-04-19 15:24:25 +0100
commite146e947c52ac4adbe426b3f893faff1e46ed5f8 (patch)
tree1605bf4eb78cc619988c92632f3cee2a56143fd5 /bin/rename_workspace
parent83bd503208d45fa837348441196dd07223b13e3e (diff)
Use GNU stow for dotfiles management
Diffstat (limited to 'bin/rename_workspace')
-rwxr-xr-xbin/rename_workspace12
1 files changed, 0 insertions, 12 deletions
diff --git a/bin/rename_workspace b/bin/rename_workspace
deleted file mode 100755
index 7636fd2..0000000
--- a/bin/rename_workspace
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-
-workspace=$(i3-msg -t get_outputs | grep -Po '"current_workspace":"[^\"]*"' | sed 's/"current_workspace":"\([^"]\+\)"/\1/g')
-number=$(echo "${workspace//[!0-9]}")
-
-new_name=$(zenity --entry --title="Rename workspace" --entry-text "$workspace")
-if [[ "$new_name" != *:* ]]; then
- new_name="$number:$new_name"
-fi
-
-echo $new_name
-exec i3-msg rename workspace to "$new_name"