From 6c646d43094fdb13030afd9d12877d32e3a31c2c Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Mon, 8 Apr 2019 13:16:22 -0400 Subject: work with new default i3 location i3 config is now in ~/.config/i3/ so update the path to make this work again OOTB --- rename_workspace | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rename_workspace b/rename_workspace index adfda65..75bdea6 100755 --- a/rename_workspace +++ b/rename_workspace @@ -2,5 +2,5 @@ OLD=$(i3-msg -t 'get_workspaces' | sed -e 's/{"num/\n{"num/g' | grep \"focused\":true | sed -e 's/,"/\n/g' | grep name | cut -d\" -f 3) NEW=$(zenity --text="Enter new name:" --entry --title="Rename workspace $OLD" --entry-text="$OLD") i3-msg "rename workspace \"$OLD\" to \"$NEW\"" -sed ~/.i3/config -i -e "s,^set \$\(ws[0-9]\+\) \"$OLD\",set \$\1 \"$NEW\"," +sed ~/.config/i3/config -i -e "s,^set \$\(ws[0-9]\+\) \"$OLD\",set \$\1 \"$NEW\"," i3-msg reload -- cgit v1.2.1