computer doesn't lock anymore
by charbelsako from LinuxQuestions.org on (#5B245)
I have this line in my .dwm/autostart script
Code:xss-lock --transfer-sleep-lock -- lock --no-fork &and this is the lock file
Code:if [ $(displaycount) -gt 1 ]; then
lock_multiple
else
lock_single
filock single file
Code:#! /bin/bash
ICON=$HOME/Pictures/lock.png
scrot /tmp/lockscreen.png
convert /tmp/lockscreen.png -scale 10% -scale 1000% /tmp/lockscreen.png
convert /tmp/lockscreen.png $ICON -gravity center -composite -matte /tmp/lockscreen.png
i3lock -i /tmp/lockscreen.png
rm /tmp/lockscreen.pngEven the keybinding in dwm doesn't work. but the command works by itself
running xss-lock in a terminal achieves the required result (i.e the computer locking after a timeout).


Code:xss-lock --transfer-sleep-lock -- lock --no-fork &and this is the lock file
Code:if [ $(displaycount) -gt 1 ]; then
lock_multiple
else
lock_single
filock single file
Code:#! /bin/bash
ICON=$HOME/Pictures/lock.png
scrot /tmp/lockscreen.png
convert /tmp/lockscreen.png -scale 10% -scale 1000% /tmp/lockscreen.png
convert /tmp/lockscreen.png $ICON -gravity center -composite -matte /tmp/lockscreen.png
i3lock -i /tmp/lockscreen.png
rm /tmp/lockscreen.pngEven the keybinding in dwm doesn't work. but the command works by itself
running xss-lock in a terminal achieves the required result (i.e the computer locking after a timeout).