Testing release

This commit is contained in:
toloveru
2017-04-03 19:45:41 +02:00
parent e9909cb6aa
commit 21d8d38284
4 changed files with 135 additions and 1 deletions

13
notify_all Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
PATH=/usr/bin
XUSERS=($(who|egrep "\(:[0-9](\.[0-9])*\)"|awk '{print $1$5}'|sort -u))
for XUSER in $XUSERS; do
NAME=(${XUSER/(/ })
DISPLAY=${NAME[1]/)/}
DBUS_ADDRESS=unix:path=/run/user/$(id -u ${NAME[0]})/bus
sudo -u ${NAME[0]} DISPLAY=${DISPLAY} \
DBUS_SESSION_BUS_ADDRESS=${DBUS_ADDRESS} \
PATH=${PATH} \
notify-send "$@"
done