Running Manjaro with i3wm, and my .i3/config
has the following related to locking the screen:
# Lock screen
exec --no-startup-id xss-lock -- ~/.i3/lock.sh
bindsym $mod+Ctrl+l exec --no-startup-id i3exit lock
bindsym $mod+9 exec --no-startup-id blurlock
The script lock.sh
is:
#!/bin/sh
set -e
xset s off dpms 0 10 0
i3lock --color=4c7899 --ignore-empty-password --show-failed-attempts --nofork
xset s off -dpms
Similar to this post I want to have a picture taken via a script every time the screen is unlocked. I've written a script that captures a picture from the local webcam, and this works perfectly fine - how do I alter the above setup to have the script run after unlocking my screen?
I hope this can be done at the level of the .i3/config
rather than messing with pam.d
files like the answer in the linked post.