###############################
#                             #
#        INPUT DEVICES        #
#                             #
###############################

input type:keyboard {
    xkb_layout dk
}

input type:touchpad {
    drag enabled
    natural_scroll enabled
    scroll_factor 0.5
    tap enabled
}

input type:pointer {
    accel_profile flat  # I hate mouse acceleration
    natural_scroll disabled
}

### DEVICE SPECIFIC ###

input 6940:6958:Corsair_Corsair_Gaming_M65_Pro_RGB_Mouse {
    pointer_accel -0.5
}

### KEYBINDS ###

# PipeWire controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +2%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -2%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute 0 toggle

# Media player controls
bindsym XF86AudioPlay exec playerctl play-pause
bindsym XF86AudioStop exec playerctl stop
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous

# Sreen brightness controls
bindsym XF86MonBrightnessUp exec light -A 5
bindsym XF86MonBrightnessDown exec light -U 5
