A simple application which locks the screen using i3lock with lock/unlock hooks.
feh
Used to fetch the current wallpaperi3lock
Used as the lockerimagemagick
Used to convert the image in to a pixelated version of the background.
The user defined hooks are located under ~/.config/locker.d
.
The hooks are run in a lexicographical order.
When the locker is started it will create an example-hook.sh
and place in the locker.d
directory.
It will be regenerated whenever it is not found, but never executed.
This file can be used to build upon by adding commands to run on_lock
/ on_unlock
, then renaming it.
The example-hook.sh file looks like the following.
#!/bin/bash
on_lock() {
# Commands to run when locking
}
on_unlock() {
# Commands to run when unlocking
}
[[ "${BASH_SOURCE[0]}" == "${0}" ]] && on_$1