Skip to content

Commit

Permalink
add lightson systemd service
Browse files Browse the repository at this point in the history
  • Loading branch information
majutsushi committed Sep 2, 2017
1 parent dd28edc commit c06cf9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/etc-install
Expand Up @@ -212,6 +212,7 @@ merge less/lesskey target=/tmp/lesskey$$
lesskey /tmp/lesskey$$
rm /tmp/lesskey$$

xlink systemd/lightson@.service target=.config/systemd/user/lightson@.service

if command -v X >/dev/null; then
xlink xorg/fontconfig target=.config/fontconfig
Expand Down
9 changes: 9 additions & 0 deletions systemd/lightson@.service
@@ -0,0 +1,9 @@
[Unit]
Description=Lights On

[Service]
Environment=DISPLAY=%I
ExecStart=/bin/bash %h/.bin/lightson

[Install]
WantedBy=default.target

0 comments on commit c06cf9e

Please sign in to comment.