Skip to content

Instantly share code, notes, and snippets.

@raphapr
Created December 20, 2016 05:11
Show Gist options
  • Save raphapr/57a47c8c9d5e721b459619467e3a2e78 to your computer and use it in GitHub Desktop.
Save raphapr/57a47c8c9d5e721b459619467e3a2e78 to your computer and use it in GitHub Desktop.

Revisions

  1. raphapr created this gist Dec 20, 2016.
    13 changes: 13 additions & 0 deletions suspend.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    [Unit]
    Description=Starts i3lock at suspend time
    Before=sleep.target

    [Service]
    User=raphael
    Type=forking
    Environment=DISPLAY=:0
    ExecStartPre=
    ExecStart=/usr/bin/xflock4

    [Install]
    WantedBy=sleep.target