18 lines
342 B
Bash
Executable file
18 lines
342 B
Bash
Executable file
#!/bin/sh
|
|
|
|
## rename terminals ##
|
|
# wms_termrename.sh by @root_informatica.
|
|
|
|
. /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
|
|
|