Skip to content

Instantly share code, notes, and snippets.

@matejc
Last active August 20, 2016 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matejc/6044416 to your computer and use it in GitHub Desktop.
Save matejc/6044416 to your computer and use it in GitHub Desktop.
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