From b0953e37d5e44b14a7aaa06e0b058603348d2db7 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 28 Feb 2023 14:53:07 +0800 Subject: Add keybind of rename window --- X11/openbox/rc.xml | 4 ++++ X11/rename_current_window.sh | 3 +++ 2 files changed, 7 insertions(+) create mode 100755 X11/rename_current_window.sh (limited to 'X11') 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 @@ + rofi + -theme-str '#window { children: [inputbar]; }' + -show rename + -modes rename:~/helper/X11/rename_current_window.sh 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 @@ +#! /bin/sh + +xdotool set_window --name "$1" "$(xdotool getactivewindow)" -- cgit v1.2.3-70-g09d2