Replace light with brightnessctl

This commit is contained in:
2026-03-09 19:22:14 +01:00
parent 3e76f139a4
commit cc9309a795
2 changed files with 7 additions and 7 deletions

View File

@@ -5,8 +5,8 @@ profile multihead-dock {
exec swaymsg workspace "3: ", move workspace to eDP-1
exec swaymsg workspace "2: ", move workspace to DP-1
exec swaymsg workspace "4: 󱓷", move workspace to DP-1
exec light -S 100
exec light -s sysfs/leds/tpacpi::kbd_backlight -S 0
exec brightnessctl set 100%
exec brightnessctl --device=tpacpi::kbd_backlight set 0
}
profile multihead-HDMI {
@@ -16,11 +16,11 @@ profile multihead-HDMI {
exec swaymsg workspace "3: ", move workspace to eDP-1
exec swaymsg workspace "2: ", move workspace to HDMI-A-2
exec swaymsg workspace "4: 󱓷", move workspace to HDMI-A-2
exec light -S 100
exec light -s sysfs/leds/tpacpi::kbd_backlight -S 0
exec brightnessctl set 100%
exec brightnessctl --device=tpacpi::kbd_backlight set 0
}
profile nomad {
output eDP-1 enable
exec light -S 50
exec brightnessctl set 50%
}

View File

@@ -271,8 +271,8 @@ bindsym XF86AudioLowerVolume exec pulsemixer --change-volume -5
bindsym XF86AudioMute exec pulsemixer --toggle-mute
bindsym XF86AudioMicMute exec ~/.local/share/scripts/pulseaudio-mic-mute
# Brightness
bindsym XF86MonBrightnessUp exec light -A 10
bindsym XF86MonBrightnessDown exec light -U 10
bindsym XF86MonBrightnessUp exec brightnessctl set 10%+
bindsym XF86MonBrightnessDown exec brightnessctl set 10%-
# Media control
bindsym XF86Messenger exec playerctl play-pause
bindsym XF86AudioPlay exec playerctl play-pause