dotfiles/.bin/OLD/set_focus

7 lines
249 B
Plaintext
Raw Normal View History

#!/bin/sh
WINDOWID=$(xprop -root _NET_ACTIVE_WINDOW | grep -o "0x.*")
GEOMETRY=$(xdpyinfo | grep dimensions | awk -F"[ x]" '{ printf("0,80,80,%s,%s\n", $7 - 160, $8 - 160) }')
wmctrl -i -r $WINDOWID -b add,above
wmctrl -i -r $WINDOWID -e $GEOMETRY