From 90b88aefe4b6379c2784bab381749f84970cf737 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Thu, 5 Nov 2020 05:21:08 -0500 Subject: [PATCH] Add key binding for status notification --- home/.xbindkeysrc | 4 ++++ home/bin/notify_status | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100755 home/bin/notify_status 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 -- 2.20.1