You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
527 B
Plaintext
16 lines
527 B
Plaintext
4 years ago
|
#!/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
|