wms/opt/wms_termrename.sh

19 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