From 3437dd6ab00d59ae96fc193a9a4024aacc04138e Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 21 Apr 2016 16:09:53 +0100 Subject: Fix mistake in colorscheme function --- bin/bin/rename_workspace | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/bin/rename_workspace b/bin/bin/rename_workspace index 7636fd2..61fffd3 100755 --- a/bin/bin/rename_workspace +++ b/bin/bin/rename_workspace @@ -1,7 +1,7 @@ #!/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]}") +workspace=$(i3-msg -t get_workspaces | grep -Po '{[^}]*"focused":true[^}]*}' | sed 's/.*"name":"\([^"]*\)".*$/\1/g') +number=$(i3-msg -t get_workspaces | grep -Po '{[^}]*"focused":true[^}]*}' | sed 's/{"num":\([^,]*\),.*$/\1/g') new_name=$(zenity --entry --title="Rename workspace" --entry-text "$workspace") if [[ "$new_name" != *:* ]]; then -- cgit v1.2.3