This commit is contained in:
2020-09-23 12:02:22 +02:00
parent 3ac9106f1d
commit 973e95d9d3
7 changed files with 153 additions and 0 deletions

11
bin/menu_workspace_name Executable file
View File

@@ -0,0 +1,11 @@
#! /bin/bash
NEW_NAME=$(rofi -p "Tag name" -lines 1 -dmenu)
OLD_NAME=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).name')
WORKSPACE_NUMBER=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).num')
if [ "${NEW_NAME}" == "" ]; then
i3-msg "rename workspace ${OLD_NAME} to ${WORKSPACE_NUMBER}"
else
i3-msg "rename workspace ${OLD_NAME} to \"${WORKSPACE_NUMBER}: ${NEW_NAME}\""
fi