summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarth ŠČ! <jerko.cilas@outlook.com>2024-09-07 17:14:23 +0200
committerGitHub <noreply@github.com>2024-09-07 16:14:23 +0100
commit5ca48231287d67e75a3f21dbdbc47d6dc65752c4 (patch)
tree36908803ff18d9d68c1b79d79aa9fa616fd790fe /src
parent0500213086f8402ccbdb2acb4748dbc6d22e21f6 (diff)
config: Added default button mapping for xf86 keys (#7672)
* Added default button mapping for laptop multimedia keys for volume and brightness * Added default button mapping for laptop multimedia keys for volume and brightness into example config
Diffstat (limited to 'src')
-rw-r--r--src/config/defaultConfig.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config/defaultConfig.hpp b/src/config/defaultConfig.hpp
index 59265fee..b8d215d1 100644
--- a/src/config/defaultConfig.hpp
+++ b/src/config/defaultConfig.hpp
@@ -241,6 +241,13 @@ bind = $mainMod, mouse_up, workspace, e-1
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
+# Laptop multimedia keys for volume and LCD brightness
+bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
+bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
+bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
+bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
+bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
+bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
##############################
### WINDOWS AND WORKSPACES ###