Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
my lock screen mechanism(change paths accordingly)
#!/usr/bin/env bash
/run/current-system/sw/bin/xautolock -time 30 -locker '/home/matej/sync/bin/lockscreen' &
#!/usr/bin/env bash
/run/current-system/sw/bin/scrot /tmp/screen_locked.png
/run/current-system/sw/bin/convert /tmp/screen_locked.png -scale 10% -scale 1000% /tmp/screen_locked.png
/run/current-system/sw/bin/notify-send DUNST_COMMAND_PAUSE
/run/current-system/sw/bin/i3lock -i /tmp/screen_locked.png --nofork
/run/current-system/sw/bin/notify-send DUNST_COMMAND_RESUME
#!/usr/bin/env bash
/home/matej/sync/bin/i3lock-wrapper &
/run/current-system/sw/bin/sleep 1
/run/current-system/sw/bin/xset dpms force off
#!/run/current-system/sw/bin/bash
env DISPLAY=:0 USER=matejc XAUTHORITY=/home/matejc/.Xauthority "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.