Evie Litherland-Smith
a4ab3c7288
Added most config, at least enough to get by for now Update waybar config to remove hyprland-specific things Misc updates to rofi, swaylock Set greetd to start sway on machines by default now
119 lines
3.4 KiB
Nix
119 lines
3.4 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
fonts,
|
|
scheme,
|
|
accentColour ? "base07",
|
|
...
|
|
}: {
|
|
imports = [../desktop.nix];
|
|
wayland.windowManager.sway = {
|
|
enable = true;
|
|
swaynag.enable = true;
|
|
systemd.enable = true;
|
|
wrapperFeatures.gtk = true;
|
|
xwayland = true;
|
|
config = {
|
|
input = {
|
|
"*" = {
|
|
xkb_layout = "gb";
|
|
xkb_options = "ctrl:nocaps";
|
|
};
|
|
};
|
|
modifier = "Mod4";
|
|
terminal = "${config.programs.alacritty.package}/bin/alacritty";
|
|
menu = "${config.programs.rofi.finalPackage}/bin/rofi -show drun";
|
|
workspaceAutoBackAndForth = true;
|
|
bars = [];
|
|
gaps = {
|
|
inner = 5;
|
|
outer = 10;
|
|
};
|
|
fonts = {
|
|
names = [fonts.monospace.name fonts.emoji.name];
|
|
style = "regular";
|
|
size = 12.0; # fonts.sizes.desktop;
|
|
};
|
|
colors = with scheme.withHashtag; let
|
|
text = toString base05;
|
|
indicator = toString cyan;
|
|
in rec {
|
|
background = toString base00;
|
|
focused = rec {
|
|
inherit background text indicator;
|
|
border = toString scheme.withHashtag.${accentColour};
|
|
childBorder = border;
|
|
};
|
|
focusedInactive = rec {
|
|
inherit background text indicator;
|
|
border = toString scheme.withHashtag.${accentColour};
|
|
childBorder = border;
|
|
};
|
|
unfocused = rec {
|
|
inherit background text indicator;
|
|
border = toString base03;
|
|
childBorder = border;
|
|
};
|
|
};
|
|
startup = [
|
|
{command = "${pkgs.swaynotificationcenter}/bin/swaync";}
|
|
{command = "${pkgs.swaybg}/bin/swaybg -i ${../../wallpapers/waves/cat-waves.png}";}
|
|
{command = "${pkgs.waybar}/bin/waybar";}
|
|
{command = "${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";}
|
|
{command = "${pkgs.protonmail-bridge}/bin/protonmail-bridge -n";}
|
|
];
|
|
assigns = {
|
|
"3: Files" = [
|
|
{class = "^(libreoffice|soffice)(.*)$";}
|
|
];
|
|
"4: Chat" = [
|
|
{class = "^WebCord$";}
|
|
{class = "^Signal$";}
|
|
];
|
|
"5: Games" = [
|
|
{class = "^steam$";}
|
|
{class = "^org.prismlauncher.PrismLauncher$";}
|
|
];
|
|
};
|
|
window = {
|
|
commands = [
|
|
{
|
|
command = "floating enable";
|
|
criteria = {app_id = "org.kde.polkit-kde-authentication-agent-1";};
|
|
}
|
|
{
|
|
command = "floating enable";
|
|
criteria = {app_id = "Pinentry";};
|
|
}
|
|
{
|
|
command = "floating enable";
|
|
criteria = {app_id = "pavucontrol";};
|
|
}
|
|
{
|
|
command = "floating enable";
|
|
criteria = {app_id = ".blueman-manager-wrapped";};
|
|
}
|
|
{
|
|
command = "floating enable";
|
|
criteria = {app_id = "nm-connection-editor";};
|
|
}
|
|
{
|
|
command = "floating enable";
|
|
criteria = {app_id = "org.prismlauncher.PrismLauncher";};
|
|
}
|
|
];
|
|
};
|
|
keybindings = let
|
|
modifier = config.wayland.windowManager.sway.config.modifier;
|
|
in
|
|
lib.mkOptionDefault {
|
|
"${modifier}+F1" = "exec swaylock";
|
|
"${modifier}+e" = "exec emacsclient -c";
|
|
"${modifier}+w" = "exec firefox";
|
|
"${modifier}+f" = "exec thunar";
|
|
};
|
|
};
|
|
};
|
|
}
|