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