Add time-in-zones script and notification key bindings
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 6 Nov 2020 14:57:16 +0000 (09:57 -0500)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 6 Nov 2020 14:57:16 +0000 (09:57 -0500)
home/.xbindkeysrc
home/bin/notify_time-in-zones [new file with mode: 0755]
home/bin/time-in-zones [new file with mode: 0755]

index ac751f3..ebf8c14 100644 (file)
 # Status
 "notify_status"
     Mod4 + s
+
+"notify_time-in-zones"
+    Mod4 + z
diff --git a/home/bin/notify_time-in-zones b/home/bin/notify_time-in-zones
new file mode 100755 (executable)
index 0000000..0d73edc
--- /dev/null
@@ -0,0 +1,3 @@
+#! /bin/sh
+
+notify-send "$(time-in-zones)" -u low
diff --git a/home/bin/time-in-zones b/home/bin/time-in-zones
new file mode 100755 (executable)
index 0000000..6428f8d
--- /dev/null
@@ -0,0 +1,12 @@
+#! /bin/bash
+
+set -e
+
+ZONES='US/Eastern Europe/Rome Poland NZ'
+
+for tz in $ZONES
+do
+    printf '%s ' "$tz"
+    TZ="$tz" date '+%a %b %d %H:%M:%S'
+done \
+| column -t
This page took 0.032786 seconds and 4 git commands to generate.