wms/opt/wms_termrename.sh
2024-02-26 01:32:24 -03:00

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