[FEATURE REQUEST] Add --sticky flag
nikitabobko opened this issue · 1 comments
nikitabobko commented
I wish dragon
stayed on top even when I switch workspaces
nikitabobko commented
Workaround for ones who are interested in it. I created a wrapper script that makes dragon
window sticky:
#!/usr/bin/env bash
set -e # Exit if one of commands exit with non-zero exit code
set -u # Treat unset variables and parameters other than the special parameters ‘@’ or ‘*’ as an error
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
dragon-drop "$@"
exit 0
fi
make_dnd_window_sticky_once_it_appear() {
while [ "$(xdotool getwindowfocus getwindowname)" != "dragon" ]; do
true # just wait
done
wmctrl -i -r "$(xdotool getwindowfocus)" -b add,sticky
}
make_dnd_window_sticky_once_it_appear &
dragon-drop "$@"