2021-06-06 13:22:44 +00:00
|
|
|
### Input configuration
|
|
|
|
#
|
|
|
|
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
|
|
|
# Read `man 5 sway-input` for more information about this section.
|
|
|
|
|
|
|
|
input "type:keyboard" {
|
2022-08-09 21:14:25 +00:00
|
|
|
xkb_layout us(intl),de
|
2021-06-06 13:22:44 +00:00
|
|
|
xkb_model pc105
|
2022-08-09 21:14:25 +00:00
|
|
|
xkb_options ctrl:nocaps
|
2021-06-06 13:22:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input "type:touchpad" {
|
|
|
|
tap enabled
|
|
|
|
natural_scroll enabled
|
2024-02-02 22:31:41 +00:00
|
|
|
# Disable while typing
|
|
|
|
dwt enabled
|
2021-06-06 13:22:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Touchpad controls
|
|
|
|
#bindsym XF86TouchpadToggle exec $HOME/Workspace/ben/toggletouchpad.sh # toggle touchpad
|
|
|
|
|
|
|
|
# Screen brightness controls
|
2023-05-05 16:35:39 +00:00
|
|
|
bindsym XF86MonBrightnessUp exec "brightnessctl -d acpi_video0 set +10%"
|
|
|
|
bindsym XF86MonBrightnessDown exec "brightnessctl -d acpi_video0 set 10%-"
|
2021-06-06 13:22:44 +00:00
|
|
|
|
|
|
|
# Keyboard backlight brightness controls
|
2022-09-20 12:18:47 +00:00
|
|
|
bindsym XF86KbdBrightnessDown exec "brightnessctl -d smc::kbd_backlight set 10%-"
|
|
|
|
bindsym XF86KbdBrightnessUp exec "brightnessctl -d smc::kbd_backlight set +10%"
|
2021-06-06 13:22:44 +00:00
|
|
|
|
|
|
|
# Pulse Audio controls
|
2022-09-20 12:18:47 +00:00
|
|
|
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 #increase sound volume
|
|
|
|
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%; exec pactl set-sink-mute @DEFAULT_SINK@ 0 #decrease sound volume
|
|
|
|
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle # mute sound
|
2021-06-06 13:22:44 +00:00
|
|
|
# Media player controls
|
|
|
|
bindsym XF86AudioPlay exec "playerctl play-pause; notify-send 'Play/Pause'"
|
|
|
|
bindsym XF86AudioNext exec "playerctl next; notify-send 'Next'"
|
|
|
|
bindsym XF86AudioPrev exec "playerctl previous; notify-send 'Prev.'"
|