From 570ecc674e6caca7b3dd3efcdf07196daeeba90d Mon Sep 17 00:00:00 2001 From: Matthew Ess Date: Thu, 2 Jan 2020 00:04:49 -0500 Subject: [PATCH] Use xbacklight --- configuration.nix | 1 - home.nix | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 1fb593f..48c69ae 100644 --- a/configuration.nix +++ b/configuration.nix @@ -84,7 +84,6 @@ programs = { fish.enable = true; seahorse.enable = true; - light.enable = true; }; # List services that you want to enable: diff --git a/home.nix b/home.nix index b8740b5..9083490 100644 --- a/home.nix +++ b/home.nix @@ -31,6 +31,7 @@ in { clipnotify dmenu i3lock-fancy + xorg.xbacklight ]; file = { ".background-image".source = ./assets/background-image; @@ -260,6 +261,10 @@ in { "${modifier}+7" = "workspace number 7"; "${modifier}+8" = "workspace number 8"; "${modifier}+9" = "workspace number 9"; + "XF86AudioRaiseVolume" = "exec --no-startup-id amixer sset Master 5%+"; + "XF86AudioLowerVolume" = "exec --no-startup-id amixer sset Master 5%-"; + "XF86MonBrightnessUp" = "exec xbacklight -inc 20"; + "XF86MonBrightnessDown" = "exec xbacklight -dec 20"; }; workspaceLayout = "tabbed"; };