Keep a Zenity dialog box always-on-top in foreground
#!/bin/bash
# This will wait one second and then steal focus and make the Zenity dialog box always-on-top (aka. 'above').
(sleep 1 && wmctrl -F -a "I am on top" -b add,above) &
(zenity --info --title="I am on top" --text="How to help Zenity to get focus and be always on top")
Source:
- http://wp.shaibn.com/how-to-help-zenity-to-get-focus-and-be-always-on-top
- and http://pastebin.com/VUsBevqy