dwm/lock

12 lines
214 B
Text
Raw Normal View History

2019-03-22 16:17:02 +01:00
#!/bin/sh
2019-03-24 14:54:22 +01:00
NUMBER_OF_SCREENS="$(xrandr | grep -c '\*')"
2019-03-24 14:54:22 +01:00
if [ "$NUMBER_OF_SCREENS" -gt 1 ]
then
2019-05-31 17:10:27 +02:00
maim ~/.cache/lock.png
2019-03-24 14:54:22 +01:00
corrupter ~/.cache/lock.png ~/.cache/lock.png
fi
2019-03-24 14:54:22 +01:00
i3lock -e -b -f -i ~/.cache/lock.png