Replace light with brightnessctl
This commit is contained in:
@@ -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%
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user