From 865728068c965e066d0f8971c5b5ba26e12e7dce Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 24 Dec 2020 00:06:27 +0530 Subject: Adds scripts and links scripts and wallpapers --- scripts/notify.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scripts/notify.sh (limited to 'scripts/notify.sh') diff --git a/scripts/notify.sh b/scripts/notify.sh new file mode 100755 index 0000000..5111b87 --- /dev/null +++ b/scripts/notify.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# All the wrapping wierdness to add support for cron +# https://wiki.archlinux.org/index.php/Desktop_notifications#Usage_in_programming + +user=$(whoami); + +sudo -u $user DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $user)/dbus-1 notify-send "$@"; + -- cgit v1.3.1