#!/bin/sh ## rename terminals ## . /tmp/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