wms/rwm_termbaptist.sh
rootniformaticaservice 51d458a88b other shit
2023-03-07 10:01:29 -03:00

14 lines
306 B
Bash
Executable file

#!/bin/sh
## rename terminals ##
. $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