From dda4a1f00f96eec09fb249a7ca163dc1bf95e11f Mon Sep 17 00:00:00 2001 From: Don Harper Date: Sun, 8 Mar 2026 17:15:32 -0500 Subject: [PATCH] Chore | replace light with brightnessctl --- home/gui/sway.nix | 12 ++++++------ hosts/workstation/default.nix | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/home/gui/sway.nix b/home/gui/sway.nix index 058075a..abb27bf 100644 --- a/home/gui/sway.nix +++ b/home/gui/sway.nix @@ -46,10 +46,10 @@ bindsym Control+Shift+F1 exec --no-startup-id control-music --prev # Brightness - bindsym XF86MonBrightnessDown exec light -U 10 - bindsym XF86MonBrightnessUp exec light -A 10 - bindsym Control+Shift+F5 exec light -U 10 - bindsym Control+Shift+F6 exec light -A 10 + bindsym XF86MonBrightnessDown exec brightnessctl set 10- + bindsym XF86MonBrightnessUp exec brightnessctl set +10 + bindsym Control+Shift+F5 exec brightnessctl set 10- + bindsym Control+Shift+F6 exec brightnessctl set +10 # Volume bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% @@ -373,8 +373,8 @@ device = "intel_backlight"; format = "{icon} {percent}%"; format-alt-click = "click-right"; - on-scroll-down = "${pkgs.light}/bin/light -A 1"; - on-scroll-up = "${pkgs.light}/bin/light -U 1"; + on-scroll-down = "${pkgs.brightnessctl}/bin/brightnessctl set +1"; + on-scroll-up = "${pkgs.brightnessctl}/bin/brightnessctl set 1-"; }; "custom/toggle-sink" = { format = "sink"; diff --git a/hosts/workstation/default.nix b/hosts/workstation/default.nix index aa47d06..98efa66 100644 --- a/hosts/workstation/default.nix +++ b/hosts/workstation/default.nix @@ -363,7 +363,6 @@ in { programs = { dconf = {enable = true;}; - light = {enable = true;}; mtr = {enable = true;}; kdeconnect = {enable = true;}; gnupg = {