aboutsummaryrefslogtreecommitdiffhomepage
path: root/X11
diff options
context:
space:
mode:
Diffstat (limited to 'X11')
-rw-r--r--X11/openbox/rc.xml4
-rwxr-xr-xX11/rename_current_window.sh3
2 files changed, 7 insertions, 0 deletions
diff --git a/X11/openbox/rc.xml b/X11/openbox/rc.xml
index 96e271e..9ce6e2f 100644
--- a/X11/openbox/rc.xml
+++ b/X11/openbox/rc.xml
@@ -516,6 +516,10 @@
516 <keybind key="W-S-t"> 516 <keybind key="W-S-t">
517 <action name="Execute"> 517 <action name="Execute">
518 <command> 518 <command>
519 rofi
520 -theme-str '#window { children: [inputbar]; }'
521 -show rename
522 -modes rename:~/helper/X11/rename_current_window.sh
519 </command> 523 </command>
520 </action> 524 </action>
521 </keybind> 525 </keybind>
diff --git a/X11/rename_current_window.sh b/X11/rename_current_window.sh
new file mode 100755
index 0000000..c66c86b
--- /dev/null
+++ b/X11/rename_current_window.sh
@@ -0,0 +1,3 @@
1#! /bin/sh
2
3xdotool set_window --name "$1" "$(xdotool getactivewindow)"