FrameworkNix/programs/sway/sway.nix

75 lines
2.1 KiB
Nix
Raw Normal View History

2024-02-19 23:19:01 +00:00
{ config, nix-colors, lib }:
let
config = import ../../theming/colorScheme.nix;
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";}
];
keybindings = lib.mkOptionDefault {
"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}";
focused = {
indicator = "#b30000";
background = "#b30000";
border = "#b30000";
childBorder = "#b30000";
text = "${config.colorScheme.pallete.base09}";
};
focusedInactive = {
indicator = "#303030";
background = "#303030";
border = "#303030";
childBorder = "#303030";
text = "${config.colorScheme.pallete.base09}";
};
unfocused = {
indicator = "#1e1e1e";
background = "#1e1e1e";
border = "#1e1e1e";
childBorder = "#1e1e1e";
text = "${config.colorScheme.pallete.base09}";
};
};
bars = [
{
command = "waybar";
}
];
window = {
titlebar = false;
};
input = {
"type:touchpad" = {
dwt = "enabled";
tap = "enabled";
middle_emulation = "enabled";
};
};
output = {
eDP-1 = {
scale = "1";
};
};
};
};
}