wms/wms_termrename.sh
rootniformaticaservice 583f0a44fc new sensible name
2023-03-19 22:46:41 -03:00

14 lines
297 B
Bash
Executable file

#!/bin/sh
## rename terminals ##
. $HOME/.config/wms/wms_var
TARGET=$(pfw) # focused window
NAMES="$HOME/.config/wms/wms_names"
if [ "$(atomx WM_CLASS $TARGET)" = "$TERMINAL" ]; then # if any terminal is focused
atomx WM_NAME="$($XMENU < $NAMES)" $TARGET # change atom name
fi