FrameworkNix/programs/sway/sway.nix

78 lines
2.5 KiB
Nix
Raw Normal View History

2024-02-21 14:21:46 +00:00
{ pkgs, config, ... }:
2024-02-19 23:19:01 +00:00
let
modifierKey = config.wayland.windowManager.sway.config.modifier;
in
{
wayland.windowManager.sway = {
enable = true;
wrapperFeatures.gtk = true;
config = rec {
modifier = "Mod4";
terminal = "alacritty";
menu = "wofi --show drun";
startup = [
{command = "exec --no-startup-id /usr/lib/xdg-desktop-portal -r";}
{command = "export XDG_CURRENT_DESKTOP=sway";}
{command = "export QT_QPA_PLATFORM=wayland";}
{command = "swaybg -i /etc/nixos/theming/background.svg";}
{command = "keepassxc /home/hertog/Documents/Belangrijk/Wachtwoorden.kdbx";}
];
2024-02-21 13:11:02 +00:00
keybindings = pkgs.lib.mkOptionDefault {
2024-02-23 10:58:06 +00:00
"Print" = ''exec grim -g "$(slurp)"'';
2024-02-19 23:19:01 +00:00
"XF86MonBrightnessUp" = "exec light -A 5";
"XF86MonBrightnessDown" = "exec light -U 5";
"XF86AudioMute" = "exec pamixer -t";
"XF86AudioRaiseVolume" = "exec pamixer -i 5";
"XF86AudioLowerVolume" = "exec pamixer -d 5";
};
colors = {
background = "#${config.colorScheme.palette.base00}";
2024-02-19 23:19:01 +00:00
focused = {
indicator = "#${config.colorScheme.palette.base06}";
background = "#${config.colorScheme.palette.base06}";
border = "#${config.colorScheme.palette.base06}";
2024-02-21 12:20:21 +00:00
childBorder = "${config.colorScheme.palette.base06}";
text = "#${config.colorScheme.palette.base09}";
2024-02-19 23:19:01 +00:00
};
focusedInactive = {
indicator = "#${config.colorScheme.palette.base05}";
background = "#${config.colorScheme.palette.base05}";
border = "#${config.colorScheme.palette.base05}";
childBorder = "#${config.colorScheme.palette.base05}";
text = "#${config.colorScheme.palette.base09}";
2024-02-19 23:19:01 +00:00
};
unfocused = {
indicator = "#${config.colorScheme.palette.base04}";
background = "#${config.colorScheme.palette.base04}";
border = "#${config.colorScheme.palette.base04}";
childBorder = "#${config.colorScheme.palette.base04}";
text = "#${config.colorScheme.palette.base09}";
2024-02-19 23:19:01 +00:00
};
};
2024-04-08 18:22:35 +00:00
fonts = {
names = [ "Anton" ];
};
2024-02-19 23:19:01 +00:00
bars = [
{
command = "waybar";
}
];
window = {
titlebar = false;
};
input = {
"type:touchpad" = {
dwt = "enabled";
tap = "enabled";
middle_emulation = "enabled";
};
};
output = {
eDP-1 = {
scale = "1";
};
};
};
};
}