diff options
| author | Alexander Kassouni <alex@kassouni.net> | 2026-08-30 22:42:35 -0700 |
|---|---|---|
| committer | Alexander Kassouni <alex@kassouni.net> | 2026-08-30 22:42:35 -0700 |
| commit | 02f1cb4dae4f466d79e102f890f093fb9e97e7f7 (patch) | |
| tree | 112cdebf1c19f853dc8cea54b994d030236155ba /users/kassouni/palette/kbd-backlight.nix | |
| parent | af99b4960a9bf1043234354d685ed23818c14aaa (diff) | |
power settings, palette cleanup
Diffstat (limited to 'users/kassouni/palette/kbd-backlight.nix')
| -rw-r--r-- | users/kassouni/palette/kbd-backlight.nix | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/users/kassouni/palette/kbd-backlight.nix b/users/kassouni/palette/kbd-backlight.nix deleted file mode 100644 index 9da0fb9..0000000 --- a/users/kassouni/palette/kbd-backlight.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ pkgs, ... }: -{ - kassouni.palette.commands = [ - { - name = "toggle keyboard backlight"; - icon = ""; - # The leds sysfs node is group-writable by `video`, which kassouni is in, so - # this needs no root. Toggle between off and full rather than cycling levels. - exe = pkgs.writers.writeBash "kbd-backlight" '' - set -eu - dev=framework_laptop::kbd_backlight - if [ "$(${pkgs.brightnessctl}/bin/brightnessctl -d "$dev" get)" -gt 0 ]; then - ${pkgs.brightnessctl}/bin/brightnessctl -d "$dev" set 0 - else - ${pkgs.brightnessctl}/bin/brightnessctl -d "$dev" set 100% - fi - ''; - } - ]; -} |
