aboutsummaryrefslogtreecommitdiff
path: root/xalarm
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2025-10-24 20:17:12 -0300
committerSilvio Rhatto <rhatto@riseup.net>2025-10-24 20:17:12 -0300
commit20d82d28756d4dfaca7f846a74c461731cf2cfeb (patch)
treecae836d7efa8a396b977498bb5bed892280b5dad /xalarm
parentae63e4af22c743624d85ba5056a0b9027d4b1243 (diff)
downloadutils-x11-master.tar.gz
utils-x11-master.tar.bz2
Feat: xalarm: Awesome VM integration to gently inform before blocking the screenHEADmaster
Diffstat (limited to 'xalarm')
-rwxr-xr-xxalarm7
1 files changed, 7 insertions, 0 deletions
diff --git a/xalarm b/xalarm
index 63baf43..0d999f3 100755
--- a/xalarm
+++ b/xalarm
@@ -54,6 +54,13 @@ function xalarm_set {
echo "Resetting alarm..."
xalarm_set $DELAY $MESSAGE
else
+ # Integration with Awesome VM
+ if which awesome-client &> /dev/null; then
+ echo "naughty.notify({title = \"X Alarm:\", text =\"The following alarm will block the screen soon: $MESSAGE\", timeout = 5})" | awesome-client
+ sleep 5
+ fi
+
+ # Integration with SM(6)
if which sm &> /dev/null; then
#sm -f '#ffffff' -b '#1c1c1c' $MESSAGE
(timer=0; while sleep 1; do let timer++; echo $MESSAGE - $timer; echo -e '\f'; done) | sm -f '#ffffff' -b '#1c1c1c' -