Notify when battery monitor script fails

This commit is contained in:
M1dgard 2018-04-06 18:52:08 +02:00
parent a0bac51c81
commit 0c7b6a86c1
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -240,7 +240,8 @@ exec --no-startup-id nextcloud
exec --no-startup-id unclutter -idle 3 exec --no-startup-id unclutter -idle 3
# battery monitor script # battery monitor script
exec --no-startup-id $HOME/Programs/own/battery/monitor.py exec --no-startup-id $HOME/Programs/own/battery/monitor.py || notify-send -u critical -i battery -a i3 "Failed to start battery monitor" "Battery monitor had a non-zero exit code."
# set background # set background
exec_always --no-startup-id feh --bg-fill $HOME/Pictures/background/Red-billed_streamertail_Trochilus_polytmus_female_in_flight_2_modified_colours.jpg exec_always --no-startup-id feh --bg-fill $HOME/Pictures/background/Red-billed_streamertail_Trochilus_polytmus_female_in_flight_2_modified_colours.jpg