format
This commit is contained in:
parent
27a77c6ddd
commit
fc366d7bf2
2 changed files with 41 additions and 40 deletions
|
@ -70,7 +70,8 @@
|
||||||
sudo = "/run/wrappers/bin/sudo";
|
sudo = "/run/wrappers/bin/sudo";
|
||||||
cpupower = "${osConfig.boot.kernelPackages.cpupower}/bin/cpupower";
|
cpupower = "${osConfig.boot.kernelPackages.cpupower}/bin/cpupower";
|
||||||
powerprofilesctl = "${pkgs.power-profiles-daemon}/bin/powerprofilesctl";
|
powerprofilesctl = "${pkgs.power-profiles-daemon}/bin/powerprofilesctl";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
executable = true;
|
executable = true;
|
||||||
text = ''
|
text = ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
@ -107,7 +108,6 @@
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -91,7 +91,8 @@
|
||||||
"custom/power_profile" =
|
"custom/power_profile" =
|
||||||
let
|
let
|
||||||
script = "${config.xdg.configHome}/scripts/power_profile.sh";
|
script = "${config.xdg.configHome}/scripts/power_profile.sh";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
exec = "${script} icon";
|
exec = "${script} icon";
|
||||||
on-click = "${script} toggle";
|
on-click = "${script} toggle";
|
||||||
format = "{}";
|
format = "{}";
|
||||||
|
|
Loading…
Reference in a new issue