33 lines
1.1 KiB
Nix
33 lines
1.1 KiB
Nix
{ pkgs, ... }:
|
|
{
|
|
wayland.windowManager.sway = {
|
|
enable = true;
|
|
wrapperFeatures.gtk = true; # Fixes common issues with GTK 3 apps
|
|
config = rec {
|
|
modifier = "Mod4";
|
|
# Use kitty as default terminal
|
|
terminal = "foot";
|
|
keybindings = {
|
|
# Brightness Controls
|
|
"XF86MonBrightnessDown" = "exec light -U 10";
|
|
"XF86MonBrightnessUp" = "exec light -A 10";
|
|
|
|
# Volume Controls
|
|
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +1%";
|
|
"XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -1%";
|
|
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
|
|
};
|
|
input = {
|
|
"type:touchpad" = {
|
|
# Enables or disables tap for specified input device.
|
|
tap = "enabled";
|
|
# Enables or disables natural (inverted) scrolling for the specified input device.
|
|
natural_scroll = "enabled";
|
|
# Enables or disables disable-while-typing for the specified input device.
|
|
dwt = "enabled";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|