man I am so fucking bored right now
This commit is contained in:
parent
56660b4f35
commit
07d71eefdf
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue