man I am so fucking bored right now

This commit is contained in:
jacekpoz 2024-08-30 20:41:42 +02:00
parent 56660b4f35
commit 07d71eefdf
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -10,19 +10,19 @@
asusctl = getExe' config.services.asusd.package "asusctl"; asusctl = getExe' config.services.asusd.package "asusctl";
supergfxctl = getExe' config.services.asusd.package "supergfxctl"; supergfxctl = getExe' config.services.asusd.package "supergfxctl";
cpupower = getExe config.boot.kernelPackages.cpupower; cpupower = getExe config.boot.kernelPackages.cpupower;
hyprctl = getExe' inputs.hyprland.packages.${pkgs.system} "hyprctl";
inherit (inputs.hyprland.packages.${pkgs.system}) hyprland; inherit (pkgs) writeShellScript;
hyprctl = getExe' hyprland "hyprctl";
in { in {
services.udev.extraRules = let services.udev.extraRules = let
power_supply = pkgs.writeShellScript "on_power_supply" '' power_supply = writeShellScript "on_power_supply" ''
${asusctl} profile -P Performance ${asusctl} profile -P Performance
#${supergfxctl} -m Hybrid #${supergfxctl} -m Hybrid
${cpupower} frequency-set -g performance ${cpupower} frequency-set -g performance
${hyprctl} keyword decoration:blur:enabled true ${hyprctl} keyword decoration:blur:enabled true
${hyprctl} keyword animations:enabled true ${hyprctl} keyword animations:enabled true
''; '';
battery = pkgs.writeShellScript "on_battery" '' battery = writeShellScript "on_battery" ''
${asusctl} profile -P Quiet ${asusctl} profile -P Quiet
#${supergfxctl} -m Integrated #${supergfxctl} -m Integrated
${cpupower} frequency-set -g powersave ${cpupower} frequency-set -g powersave