wms/wms_termrename.sh
2024-01-21 00:05:04 -03:00

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