diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-02-17 15:46:33 -0600 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-02-17 15:46:53 -0600 |
commit | 947bb19828c0a667003acd0f6e1e564eccea7992 (patch) | |
tree | fae5bbf21e64ee5aadfd975bb587fe2290ba10d8 /brightnessctl/.config/systemd | |
parent | 77fa5d6ee258c50991d4c641f561cc739251a517 (diff) |
feat(brightnessctl): add backlight idle service
Diffstat (limited to 'brightnessctl/.config/systemd')
-rw-r--r-- | brightnessctl/.config/systemd/user/backlight@.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/brightnessctl/.config/systemd/user/backlight@.service b/brightnessctl/.config/systemd/user/backlight@.service new file mode 100644 index 0000000..4e9d67c --- /dev/null +++ b/brightnessctl/.config/systemd/user/backlight@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Set backlight to %i idle +Conflicts=physlock.service +PartOf=idle.target +Before=idle.target + +[Service] +Type=oneshot +ExecStartPre=/usr/bin/brightnessctl --class=backlight --save +ExecStart=/usr/bin/brightnessctl --class=backlight set %i +ExecStopPost=/usr/bin/brightnessctl --class=backlight --restore +RemainAfterExit=yes + +[Install] +WantedBy=idle.target |