diff options
author | David Runge <dave@sleepmap.de> | 2018-02-03 11:46:00 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2018-02-03 11:46:00 +0100 |
commit | 9a6781956954bc8ff966697a8ea08de763754210 (patch) | |
tree | 46f0529962878f4bd3e30b6ec1db020bf2a9c84f | |
parent | ca2b8542faa8e062dc06969095eb3032fc1d811c (diff) | |
download | dotfiles-9a6781956954bc8ff966697a8ea08de763754210.tar.gz dotfiles-9a6781956954bc8ff966697a8ea08de763754210.tar.bz2 dotfiles-9a6781956954bc8ff966697a8ea08de763754210.tar.xz dotfiles-9a6781956954bc8ff966697a8ea08de763754210.zip |
.xprofile: Adding lock mechanism for sleep (using xss-lock). Fixing comment.
-rw-r--r-- | .xprofile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -21,11 +21,16 @@ if [ -x "$HOME/bin/setup_screens" ]; then $HOME/bin/setup_screens & fi -# start automatic lock based on xssstate and i3lock +# lock X automatically after inactivity if [ -x "$HOME/bin/xorg_autolock" ]; then $HOME/bin/xorg_autolock & fi +# lock X before going to sleep +if [ -x "/usr/bin/xss-lock" ]; then + /usr/bin/xss-lock xorg_lock & +fi + # start redshift if [ -x /usr/bin/redshift ]; then /usr/bin/redshift-gtk & |