Skip to content

Instantly share code, notes, and snippets.

notifyosd-init() {
if [ -n "$DISPLAY" -a -z "$notifyosd_initialized" ]; then
notifyosd_initialized=yes
function notifyosd-active-window-id {
xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}'
}
# end and compare timer, notify-send if needed
function notifyosd-precmd() {