#!/bin/bash
/usr/bin/skippy-xd >/dev/null
IFS='x' read sw sh < <(xdpyinfo | grep dimensions | grep -o '[0-9x]*' | head -n1)
WINDOW_ID=$(xdotool getactivewindow)
#read wx wy ww wh < <(wmctrl -lG | grep $(printf 0x%x $WINDOW_ID | cut -d'x' -f2) | sed 's/^[^ ]* *[^ ]* //;s/[^0-9 ].*//;')
#wmctrl -r :ACTIVE: -e 0,$(($sw/2-$ww/2)),$(($sh/2-$wh/2)),$ww,$wh
wmctrl -i -a :ACTIVE:
:
