Skip to content

Commit

Permalink
Bind keys to change audio volume
Browse files Browse the repository at this point in the history
  • Loading branch information
spikespaz committed Aug 31, 2022
1 parent d0b3663 commit b44f6af
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions users/jacob/configs/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,22 @@ dwindle {
bind = SUPER,Space,exec,rofi -show drun
bind = SUPER,R,exec,rofi -show run

#####################
### FUNCTION KEYS ###
#####################

# <https://github.com/xkbcommon/libxkbcommon/blob/master/include/xkbcommon/xkbcommon-keysyms.h>

# toggle mute default sink
bind = ,XF86AudioMute,exec,wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle

# raise and lower default sink
bind = ,XF86AudioRaiseVolume,exec,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bind = ,XF86AudioLowerVolume,exec,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-

# mute default source
bind = ,XF86AudioMicMute,exec,wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle

##########################
### ESSENTIAL PROGRAMS ###
##########################
Expand Down

0 comments on commit b44f6af

Please sign in to comment.