dotfiles/.config/systemd/user/set-brightness-default.service

13 lines
294 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Set default screen brightness
After=graphical-session.target
ConditionPathExistsGlob=/sys/class/backlight/*
PartOf=graphical-session.target
[Service]
Type=oneshot
ExecStart=%h/.local/bin/set-brightness-default
TimeoutStartSec=30
[Install]
WantedBy=graphical-session.target