From 43c3cf6570cd46c33c797112828d43d3f30313f9 Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Fri, 9 Nov 2018 09:12:44 +0100 Subject: [PATCH] New packages and aliases to manage keyboard backlight --- home.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home.nix b/home.nix index b10c7bc..d035b23 100644 --- a/home.nix +++ b/home.nix @@ -28,6 +28,7 @@ network = "traefik" latest.wget latest.curl latest.httpie + latest.bind latest.pavucontrol @@ -41,6 +42,7 @@ network = "traefik" latest.gnumake latest.file latest.bc + latest.sc-im latest.atool latest.unzip @@ -279,6 +281,10 @@ dcrefresh() { tgs = "tig status"; tgl = "tig status"; tgb = "tig blame -C"; + + # for some reasons `light -k -S 100` does not work for me… TODO find why, and uninstall upower + klon = "dbus-send --system --type=method_call --dest=\"org.freedesktop.UPower\" \"/org/freedesktop/UPower/KbdBacklight\" \"org.freedesktop.UPower.KbdBacklight.SetBrightness\" int32:100"; + kloff = "light -k -S 0"; }; };