gentoo-legion/system/udev/99-power-profile.rules
Damien Coles 585ff542f2 changed hyprland from GCC to clang;
fixed hyprland.desktop with emerge hook for custom hyprland-start wrapper
2026-01-26 16:11:07 -05:00

4 lines
322 B
Plaintext

# Automatic power profile switching based on AC state
ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", ATTR{online}=="1", RUN+="/usr/bin/powerprofilesctl set performance"
ACTION=="change", SUBSYSTEM=="power_supply", ATTR{type}=="Mains", ATTR{online}=="0", RUN+="/usr/bin/powerprofilesctl set power-saver"