wms/rwm_termbaptist.sh

15 lines
301 B
Bash
Raw Normal View History

2023-03-06 19:08:25 +01:00
#!/bin/sh
2023-03-07 14:01:29 +01:00
## rename terminals ##
2023-03-06 19:08:25 +01:00
. $HOME/.config/rootwm/rwm_var
TARGET=$(pfw) # focused window
2023-03-08 13:20:19 +01:00
NAMES="$HOME/.config/rootwm/names"
2023-03-06 19:08:25 +01:00
if [ "$(atomx WM_CLASS $TARGET)" = "$TERMINAL" ]; then # if any terminal is focused
atomx WM_NAME="_>$($XMENU < $NAMES)" $TARGET # change atom name
fi