1
0
mirror of https://github.com/alrayyes/dwm synced 2023-11-14 15:56:31 +00:00
dwm/lock

12 lines
214 B
Plaintext
Raw Normal View History

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