2023-03-06 19:08:25 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-03-07 14:01:29 +01:00
|
|
|
## rename terminals ##
|
|
|
|
|
2023-08-08 04:42:24 +02:00
|
|
|
. /tmp/wms_var
|
2023-03-06 19:08:25 +01:00
|
|
|
|
|
|
|
TARGET=$(pfw) # focused window
|
2023-03-20 02:46:41 +01:00
|
|
|
NAMES="$HOME/.config/wms/wms_names"
|
2023-03-06 19:08:25 +01:00
|
|
|
|
|
|
|
if [ "$(atomx WM_CLASS $TARGET)" = "$TERMINAL" ]; then # if any terminal is focused
|
2023-03-09 05:41:12 +01:00
|
|
|
atomx WM_NAME="$($XMENU < $NAMES)" $TARGET # change atom name
|
2023-03-06 19:08:25 +01:00
|
|
|
|
|
|
|
fi
|
|
|
|
|