Add three `systemd` user units that reset volume, screen brightness, and keyboard backlight, so that every session starts from a known state. Values come from ~/.config/environment.d/50-defaults.conf, and can be overridden per machine via an untracked 90-local.conf
13 lines
294 B
Desktop File
13 lines
294 B
Desktop File
[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
|