Skip to content

Commit

Permalink
systemd: xscreensaver on sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotebush committed May 2, 2015
1 parent f252772 commit ebdf755
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions systemd/system/xscreensaver.service
@@ -0,0 +1,12 @@
[Unit]
Description=Lock X session using xscreensaver
Before=sleep.target

[Service]
User=corey
Type=oneshot
Environment=DISPLAY=:0
ExecStart=/usr/bin/xscreensaver-command -lock

[Install]
WantedBy=sleep.target

0 comments on commit ebdf755

Please sign in to comment.