From 5db037c897d976d44c3b0d2c3a1020f9094f5e68 Mon Sep 17 00:00:00 2001 From: Ethan Simmons Date: Fri, 15 May 2026 15:45:51 -0500 Subject: [PATCH] Minor changes to alpheratz --- flake.nix | 1 + hosts/alpheratz/system.nix | 1 + modules/home/sway.nix | 8 ++++++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 7f391d6..dc48c0a 100644 --- a/flake.nix +++ b/flake.nix @@ -141,6 +141,7 @@ options = { laptop = { enable = true; + backlight.enable = true; powersave.enable = true; }; diff --git a/hosts/alpheratz/system.nix b/hosts/alpheratz/system.nix index cf70978..2fdfbf3 100644 --- a/hosts/alpheratz/system.nix +++ b/hosts/alpheratz/system.nix @@ -69,6 +69,7 @@ wine matlab-language-server zoom-us + calibre ]; services.printing.enable = false; diff --git a/modules/home/sway.nix b/modules/home/sway.nix index f82c50c..2f0bb7e 100644 --- a/modules/home/sway.nix +++ b/modules/home/sway.nix @@ -131,8 +131,10 @@ in "${modifier}+Control+x" = "exec feishin"; }) (mkIf laptop.backlight.enable { - "XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 5"; - "XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 5"; + "XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +5%"; + "XF86MonBrightnessDown" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 5%-"; + "${modifier}+XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +1%"; + "${modifier}+XF86MonBrightnessDown" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 1%-"; }) ]; @@ -145,6 +147,8 @@ in { command = "--no-startup-id openrgb --startminimized"; } { command = "--no-startup-id easyeffects --gapplication-service"; } { command = "--no-startup-id wayland-pipewire-idle-inhibit"; } + ] ++ optionals gui.protonmail + [ { command = "--no-startup-id protonmail-bridge --noninteractive"; } ];