nix-dotfiles/wayland/sway.nix
2024-01-05 22:16:35 -05:00

38 lines
1 KiB
Nix

{ config, lib, pkgs, ... }:
{
enable = true;
config = rec {
terminal = "kitty";
modifier = "Mod4";
fonts = {
names = [ "Red Hat Display" ];
style = "Regular";
size = 12.0;
};
input = { "type:touchpad" = { natural_scroll = "enabled"; }; };
bars = let config = config; in [{
position = "top";
inherit fonts;
statusCommand = "${pkgs.i3status}/bin/i3status";
}];
window = {
border = 2;
titlebar = true;
};
menu = "j4-dmenu-desktop --no-generic --term=kitty --dmenu='bemenu -i --fn Red Hat Display 12 -H 24 -p \"\" -B 2 --hp 5'"; # I don't like hardcoding kitty here, TODO think of better way to do it
focus.followMouse = false;
};
extraConfig =
''
output 'eDP-1' scale 1.50
'' + # Fractional scaling to 1.50
''
input type:touchpad {
natural_scroll disabled
dwt disabled
click_method clickfinger
}
''; # Disable fake scroll direction and disabling touchpad while typing, enable multi finger clicking
}