diff --git a/flake.lock b/flake.lock index 07d05f9..e34a589 100644 --- a/flake.lock +++ b/flake.lock @@ -41,11 +41,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1640592198, - "narHash": "sha256-F5dWVGQMscmGyLTzNLocPB1v8Ijp8ONx8Nq9Dmi5PSw=", + "lastModified": 1640770690, + "narHash": "sha256-Rl2cD8yspug7sPRXXJkVvmjLFS8i9g04iNDzohMEuyg=", "owner": "nix-community", "repo": "home-manager", - "rev": "0b197562ab7bf114dd5f6716f41d4b5be6ccd357", + "rev": "2f40cd05dc0ffe3ba69a94e9e76e0357c5b9a0b8", "type": "github" }, "original": { diff --git a/home/sway/sway.nix b/home/sway/sway.nix index 7395483..d50dfc2 100644 --- a/home/sway/sway.nix +++ b/home/sway/sway.nix @@ -140,8 +140,8 @@ "exec pactl set-sink-mute $(pacmd list-sinks |awk '/* index:/{print $3}') toggle"; "XF86AudioMicMute" = "exec pactl set-source-mute $(pacmd list-sources |awk '/* index:/{print $3}') toggle"; - "XF86MonBrightnessDown" = "exec ${pkgs.light}/bin/light -U 5"; - "XF86MonBrightnessUp" = "exec ${pkgs.light}/bin/light -A 5"; + "XF86MonBrightnessDown" = "exec sudo xbacklight -time 1 -dec +5"; + "XF86MonBrightnessUp" = "exec sudo xbacklight -time 1 -inc +5"; "Print" = "exec ${pkgs.grim}/bin/grim -t png - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png"; "Shift+Print" = '' diff --git a/profiles/laptop/default.nix b/profiles/laptop/default.nix index 2910c5e..2e3d4a4 100644 --- a/profiles/laptop/default.nix +++ b/profiles/laptop/default.nix @@ -3,5 +3,5 @@ services.tlp.enable = true; powerManagement.enable = true; powerManagement.powertop.enable = true; - programs.light.enable = true; + hardware.acpilight.enable = true; }