Last active
August 20, 2016 17:17
-
-
Save matejc/6044416 to your computer and use it in GitHub Desktop.
my lock screen mechanism(change paths accordingly)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
/run/current-system/sw/bin/xautolock -time 30 -locker '/home/matej/sync/bin/lockscreen' & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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