#------------------------------------------------
#
# multimedia keys and audio/video players bindings
#
#------------------------------------------------

# Pulse Audio controls (debian), the VOLCTL_SINK_NUM selects sink starting from the most recent one connected
bindsym XF86AudioRaiseVolume exec --no-startup-id (VOLCTL_SINK_NUM=1 $scriptsDir/volctl up)
bindsym XF86AudioLowerVolume exec --no-startup-id (VOLCTL_SINK_NUM=1 $scriptsDir/volctl down)
bindsym XF86AudioMute exec --no-startup-id (VOLCTL_SINK_NUM=1 $scriptsDir/volctl toggle)

bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id (VOLCTL_SINK_NUM=2 $scriptsDir/volctl up)
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id (VOLCTL_SINK_NUM=2 $scriptsDir/volctl down)
bindsym Shift+XF86AudioMute exec --no-startup-id (VOLCTL_SINK_NUM=2 $scriptsDir/volctl toggle)

# Sreen brightness controls
#bindsym XF86MonBrightnessUp exec xbacklight -inc 20 # increase screen brightness
#bindsym XF86MonBrightnessDown exec xbacklight -dec 20 # decrease screen brightness
bindsym XF86MonBrightnessUp exec $scriptsDir/backlight up
bindsym XF86MonBrightnessDown exec $scriptsDir/backlight down

# Media player controls
#bindsym XF86AudioPlay exec playerctl play
#bindsym XF86AudioPause exec playerctl pause
#bindsym XF86AudioNext exec playerctl next
#bindsym XF86AudioPrev exec playerctl previous

# Clementine player controls
bindsym XF86AudioPlay exec clementine --play-pause
bindsym XF86AudioPause exec clementine --pause
bindsym XF86AudioNext exec clementine --next
bindsym XF86AudioPrev exec clementine --previous
# bindsym Shift+XF86AudioRaiseVolume exec clementine --volume-up
# bindsym Shift+XF86AudioLowerVolume exec clementine --volume-down

