proper user id
This commit is contained in:
Luke Smith
2020-11-14 15:09:25 -05:00
parent 340995f6f9
commit 11d4f16fb4
2 changed files with 2 additions and 2 deletions

View File

@@ -5,5 +5,5 @@
[ "$(cat /sys/class/power_supply/BAT0/status)" = "Charging" ] && exit
[ "$(cat /sys/class/power_supply/BAT0/capacity)" -lt 25 ] &&
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus &&
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u $USER)/bus &&
notify-send -u critical "Battery critically low."