Notify when i3lock fails

This commit is contained in:
M1dgard 2018-04-05 14:12:44 +02:00
parent 82ba588faf
commit e1a3523dc3
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -75,10 +75,10 @@ bindsym $mod+space exec --no-startup-id "$launcher"
exec --no-startup-id $launcher exec --no-startup-id $launcher
# lock the screen # lock the screen
bindsym Mod1+l exec --no-startup-id i3lock --image="$HOME/Pictures/background/Red-billed_streamertail_Trochilus_polytmus_female_in_flight_2_lock.png" bindsym Mod1+l exec --no-startup-id i3lock --image="$HOME/Pictures/background/Red-billed_streamertail_Trochilus_polytmus_female_in_flight_2_lock.png" || notify-send -u normal -i lock -a i3 "Failed to lock screen" "i3lock had a non-zero exit code."
# start a terminal # start a terminal
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
bindsym $mod+KP_Enter exec $term bindsym $mod+KP_Enter exec $term
# start web browser # start web browser