mirror of
https://github.com/larstvei/nix-config.git
synced 2025-12-31 12:10:12 +00:00
Try disabling the red dot and powerbutton led at all times
This commit is contained in:
parent
ddf23300b4
commit
90aa1d170d
@ -18,6 +18,29 @@
|
||||
hyprlock.fprintAuth = true;
|
||||
};
|
||||
|
||||
systemd.services.disable-thinkpad-leds = {
|
||||
description = "Disable ThinkPad lid logo LED and power button led";
|
||||
wantedBy = [
|
||||
"basic.target"
|
||||
"suspend.target"
|
||||
];
|
||||
after = [
|
||||
"hibernate.target"
|
||||
"hybrid-sleep.target"
|
||||
"suspend-then-hibernate.target"
|
||||
"suspend.target"
|
||||
"sysinit.target"
|
||||
];
|
||||
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = [
|
||||
"/bin/sh -c 'echo 0 > /sys/class/leds/tpacpi::power/brightness'"
|
||||
"/bin/sh -c 'echo 0 > /sys/class/leds/tpacpi::lid_logo_dot/brightness'"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
networking.hostName = "larstvei-think";
|
||||
|
||||
# Bootloader.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user