feat(hypr): add media key bindings
This commit is contained in:
@@ -6,5 +6,6 @@
|
||||
source = ~/.config/hypr/bindings/tiling.conf
|
||||
source = ~/.config/hypr/bindings/hyprshot.conf
|
||||
source = ~/.config/hypr/bindings/randrwall.conf
|
||||
source = ~/.config/hypr/bindings/media.conf
|
||||
|
||||
|
||||
|
||||
19
hypr/bindings/media.conf
Normal file
19
hypr/bindings/media.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
# Only display the OSD on the currently focused monitor
|
||||
$osdclient = swayosd-client --monitor "$(hyprctl monitors -j | jq -r '.[] | select(.focused == true).name')"
|
||||
|
||||
# Laptop multimedia keys for volume and LCD brightness (with OSD)
|
||||
bindeld = ,XF86AudioRaiseVolume, Volume up, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
||||
bindeld = ,XF86AudioLowerVolume, Volume down, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
bindeld = ,XF86AudioMute, Mute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
bindeld = ,XF86AudioMicMute, Mute microphone, exec, $osdclient --input-volume mute-toggle
|
||||
bindeld = ,XF86MonBrightnessUp, Brightness up, exec, brightnessctl set +5%
|
||||
bindeld = ,XF86MonBrightnessDown, Brightness down, exec, brightnessctl set 5%-
|
||||
|
||||
# Requires playerctl
|
||||
bindld = , XF86AudioNext, Next track, exec, playerctl next
|
||||
bindld = , XF86AudioPause, Pause, exec, playerctl play-pause
|
||||
bindld = , XF86AudioPlay, Play, exec, playerctl play-pause
|
||||
bindld = , XF86AudioPrev, Previous track, exec, playerctl previous
|
||||
|
||||
# Switch audio output with Super + Mute
|
||||
bindld = SUPER, XF86AudioMute, Switch audio output, exec, omarchy-cmd-audio-switch
|
||||
Reference in New Issue
Block a user