dragon drag and drop always on top

pull/41/head
gotbletu 3 years ago
parent 2d7c9edda9
commit 98e28a7240

@ -0,0 +1,15 @@
#!/usr/bin/env sh
# AUTHOR: gotbletu (@gmail|twitter|youtube|github|lbry)
# https://www.youtube.com/user/gotbletu
# DESC: set dragon drag and drop program to be always on top
# DEMO: https://youtu.be/ukIG_OVXa3Q
# DEPEND: wmctrl sed gawk dragon (https://github.com/mwh/dragon)
# REFF:
if [ "$1" = -h ] || [ "$1" = --help ]; then
dragon --help | sed "s/dragon/${0##*/}/g"
exit 0
else
(sleep 1 && WIN_ID="$(wmctrl -l | awk '/dragon/ {print $1}')" && wmctrl -i -r "$WIN_ID" -b add,above) &
dragon "$@"
fi
Loading…
Cancel
Save