Random code snippets used in my environments (mostly i3)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
234 B

#!/bin/bash
UPDT=$(pacman -Qu | wc -l)
eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME plasma)/environ)";
if [ $UPDT -gt 0 ] ;
then
export DISPLAY=:0 && notify-send "Pacman Updates" "$UPDT"
else
:
fi