14 lines
297 B
Bash
Executable file
14 lines
297 B
Bash
Executable file
#!/bin/sh
|
|
|
|
## rename terminals ##
|
|
|
|
. $HOME/.config/wms/wms_var
|
|
|
|
TARGET=$(pfw) # focused window
|
|
NAMES="$HOME/.config/wms/wms_names"
|
|
|
|
if [ "$(atomx WM_CLASS $TARGET)" = "$TERMINAL" ]; then # if any terminal is focused
|
|
atomx WM_NAME="$($XMENU < $NAMES)" $TARGET # change atom name
|
|
|
|
fi
|
|
|