aboutsummaryrefslogtreecommitdiffhomepage
path: root/X11/rename_current_window.sh
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-03-15 12:15:16 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-03-15 12:22:28 +0800
commitfdd98ab4a3c75f9351ced33ad494df3694309dc1 (patch)
tree0fc5dcf73ad04f0dd306287da72714c34dd2350a /X11/rename_current_window.sh
parent4a298221c91c4d80b836ece4c2e85bd4cea2b67c (diff)
Use @ as prefix to prevent window got killed
Diffstat (limited to 'X11/rename_current_window.sh')
-rwxr-xr-xX11/rename_current_window.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/X11/rename_current_window.sh b/X11/rename_current_window.sh
index d686ba4..59caa26 100755
--- a/X11/rename_current_window.sh
+++ b/X11/rename_current_window.sh
@@ -1,3 +1,3 @@
1#! /bin/sh 1#! /bin/sh
2 2
3xdotool set_window --name "$1" --class CONFIRM_BEFORE_CLOSE "$(xdotool getactivewindow)" 3xdotool set_window --name "@${1##@}" "$(xdotool getactivewindow)"