Fix bug brightness and volume hotkeys + notification
This commit is contained in:
parent
a4a43bb5e3
commit
a6de51570d
@ -130,13 +130,13 @@ mode "resize" {
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Audio
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound
|
||||
bindsym F3 exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||
bindsym F2 exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||
bindsym F4 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
|
||||
#Brightness
|
||||
bindsym XF86MonBrightnessUp exec brightnessctl s 10%+
|
||||
bindsym XF86MonBrightnessDown exec brightnessctl s 10%-
|
||||
bindsym F6 exec --no-startup-id brightnessctl set 10%+; exec notify-send --expire-time=100 "LCD Backlight $(printf %.0f%% $(brightnessctl g))"
|
||||
bindsym F5 exec --no-startup-id brightnessctl set 10%-; exec notify-send --expire-time=100 "LCD Backlight $(printf %.0f%% $(brightnessctl g))"
|
||||
|
||||
# Capture d'écran
|
||||
bindsym Print exec flameshot gui
|
||||
|
@ -9,6 +9,7 @@ order += "memory"
|
||||
order += "load"
|
||||
order += "tztime local"
|
||||
order += "battery 0"
|
||||
order += "volume master"
|
||||
|
||||
|
||||
tztime local {
|
||||
@ -53,3 +54,9 @@ read_file uptime {
|
||||
path = "/proc/uptime"
|
||||
separator = true
|
||||
}
|
||||
|
||||
volume master {
|
||||
format = "♪: %volume"
|
||||
format_muted = "♪: muted (%volume)"
|
||||
device = "pulse:1"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user