13 lines
230 B
Bash
Executable file
13 lines
230 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
dm-tool lock
|
|
if [ $? -ne 0 ]; then
|
|
revert() {
|
|
xset dpms 0 0 0
|
|
}
|
|
trap revert SIGHUP SIGINT SIGTERM
|
|
xset dpms 5 5 5
|
|
i3lock --nofork --color 648901 --ignore-empty-password
|
|
revert
|
|
fi
|