From: Siraaj Khandkar Date: Thu, 5 Nov 2020 10:21:08 +0000 (-0500) Subject: Add key binding for status notification X-Git-Url: https://git.xandkar.net/?p=khome.git;a=commitdiff_plain;h=90b88aefe4b6379c2784bab381749f84970cf737 Add key binding for status notification --- diff --git a/home/.xbindkeysrc b/home/.xbindkeysrc index da2890a..2d5eec3 100644 --- a/home/.xbindkeysrc +++ b/home/.xbindkeysrc @@ -159,3 +159,7 @@ # Calendar "notify_cal" Mod4 + c + +# Status +"notify_status" + Mod4 + s diff --git a/home/bin/notify_status b/home/bin/notify_status new file mode 100755 index 0000000..afd0d9c --- /dev/null +++ b/home/bin/notify_status @@ -0,0 +1,10 @@ +#! /bin/bash + +# The status is a function which calls other functions which use variables... +# load 'em all: +for file in ~/lib/login_*.sh +do + . "$file" +done + +notify-send "$(status)" -u low