summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-07-21 07:59:00 +0200
committerAlex Auvolat <alex@adnab.me>2023-07-21 07:59:00 +0200
commit5da3532a9a30616d43492ed2ef9ea07394d7722f (patch)
treedb16f1285d53b6b96f86ce46bcafc3c94bbb9fee
parentc865834d3bace7b5b66cdb4618c776e5e7233586 (diff)
downloaduser-config-5da3532a9a30616d43492ed2ef9ea07394d7722f.tar.gz
user-config-5da3532a9a30616d43492ed2ef9ea07394d7722f.zip
use brightnessctl instead of xbacklight
-rw-r--r--icewm/keys4
-rw-r--r--nixos/icewm.nix2
2 files changed, 3 insertions, 3 deletions
diff --git a/icewm/keys b/icewm/keys
index 547c1aa..875040f 100644
--- a/icewm/keys
+++ b/icewm/keys
@@ -3,8 +3,8 @@ key "Super+p" dmenu_run
key "Super+Shift+r" icewm --restart
key "Super+Shift+x" i3lock -c 000000
-key "XF86MonBrightnessDown" xbacklight -dec 10
-key "XF86MonBrightnessUp" xbacklight -inc 10
+key "XF86MonBrightnessDown" brightnessctl set +10%
+key "XF86MonBrightnessUp" brightnessctl set 10%-
key "XF86AudioMute" pactl set-sink-mute @DEFAULT_SINK@ toggle
key "XF86AudioRaiseVolume" sh -c "pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ +5%"
diff --git a/nixos/icewm.nix b/nixos/icewm.nix
index cf02cc1..6ecd806 100644
--- a/nixos/icewm.nix
+++ b/nixos/icewm.nix
@@ -5,7 +5,7 @@
environment.systemPackages = with pkgs; [
i3lock
- xorg.xbacklight
+ brightnessctl
pulseaudio
pavucontrol
networkmanagerapplet