13 lines
282 B
Bash
13 lines
282 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
. $HOME/.config/rootwm/rwm_var
|
||
|
|
||
|
TARGET=$(pfw) # focused window
|
||
|
NAMES=$(cat $HOME/.config/rootwm/names)
|
||
|
|
||
|
if [ "$(atomx WM_CLASS $TARGET)" = "$TERMINAL" ]; then # if any terminal is focused
|
||
|
atomx WM_NAME="_>$($XMENU < $NAMES)" $TARGET # change atom name
|
||
|
|
||
|
fi
|
||
|
|