Skip to content

Commit

Permalink
Auto-lock on sleep service
Browse files Browse the repository at this point in the history
  • Loading branch information
eXeC64 committed Nov 21, 2015
1 parent dda6a9e commit 4e88d31
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions services/lock.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=i3lock
Before=sleep.target

[Service]
User=harry
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/bin/i3lock -c 000000

[Install]
WantedBy=sleep.target

0 comments on commit 4e88d31

Please sign in to comment.