Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save hajlaoui-nader/9be8ec7c671ba02786237baafddcdf6e to your computer and use it in GitHub Desktop.

Select an option

Save hajlaoui-nader/9be8ec7c671ba02786237baafddcdf6e to your computer and use it in GitHub Desktop.
i3wm
# Volume controls
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ +5% && notify-send -u low -i audio-volume-high 'Volume' 'Volume raised to $(pamixer --get-volume)%'"
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ -5% && notify-send -u low -i audio-volume-low 'Volume' 'Volume lowered to $(pamixer --get-volume)%'"
bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute @DEFAULT_SINK@ toggle && notify-send -u low -i audio-volume-muted 'Volume' 'Mute toggled'"
# Brightness controls
bindsym XF86MonBrightnessUp exec --no-startup-id "brightnessctl set +5% && notify-send -u low -i display-brightness 'Brightness' 'Brightness increased to $(brightnessctl get)'"
bindsym XF86MonBrightnessDown exec --no-startup-id "brightnessctl set 5%- && notify-send -u low -i display-brightness 'Brightness' 'Brightness decreased to $(brightnessctl get)'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment