1
0
mirror of https://github.com/alrayyes/dwm synced 2023-11-14 15:56:31 +00:00
dwm/lock
2019-03-24 14:57:44 +01:00

12 lines
229 B
Bash
Executable File

#!/bin/sh
NUMBER_OF_SCREENS="$(xrandr | grep -c '\*')"
if [ "$NUMBER_OF_SCREENS" -gt 1 ]
then
scrot "lock.png" -e 'mv $f ~/.cache/'
corrupter ~/.cache/lock.png ~/.cache/lock.png
fi
i3lock -e -b -f -i ~/.cache/lock.png