2024-09-14 15:30:50 -04:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
2024-09-07 22:22:12 -04:00
|
|
|
dirs = {
|
2024-09-09 09:27:52 -04:00
|
|
|
defaults = ../defaults;
|
2024-09-07 22:22:12 -04:00
|
|
|
};
|
|
|
|
in {
|
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = pkgs.stdenv.isLinux;
|
|
|
|
extraOptions = []; # Extra arguments to pass into sway. If sway goes haywire, we might need something in here
|
|
|
|
xwayland = true;
|
2024-09-07 23:20:24 -04:00
|
|
|
systemd.enable = true;
|
2024-09-07 22:22:12 -04:00
|
|
|
|
|
|
|
wrapperFeatures = {
|
|
|
|
gtk = true;
|
|
|
|
};
|
|
|
|
};
|
2025-09-04 08:17:42 -04:00
|
|
|
xdg = {
|
|
|
|
configFile = {
|
|
|
|
"sway/config".source = lib.mkForce (dirs.defaults + /sway/config);
|
|
|
|
"waybar/config".source = lib.mkForce (dirs.defaults + /waybar/config);
|
|
|
|
"waybar/style.css".source = lib.mkForce (dirs.defaults + /waybar/style.css);
|
2025-07-09 20:08:16 -04:00
|
|
|
};
|
|
|
|
};
|
2025-09-04 08:17:42 -04:00
|
|
|
|
2025-07-08 23:40:02 -04:00
|
|
|
services.mako = {
|
|
|
|
enable = pkgs.stdenv.isLinux;
|
|
|
|
settings = {
|
2025-09-04 08:17:42 -04:00
|
|
|
text-color = "#cad3f5";
|
|
|
|
border-color = "#c6d0f5";
|
|
|
|
background-color = "#24273a";
|
|
|
|
width = 420;
|
|
|
|
height = 110;
|
|
|
|
padding = 10;
|
|
|
|
border-size = 2;
|
|
|
|
font = "Monaspace Krypton 9";
|
|
|
|
anchor = "top-right";
|
|
|
|
default-timeout = 5000;
|
|
|
|
max-icon-size = 32;
|
2025-07-08 23:40:02 -04:00
|
|
|
};
|
|
|
|
};
|
2025-09-04 08:17:42 -04:00
|
|
|
programs = {
|
|
|
|
wofi = {
|
|
|
|
enable = pkgs.stdenv.isLinux;
|
|
|
|
settings = {
|
|
|
|
width = 600;
|
|
|
|
height = 350;
|
|
|
|
location = "center";
|
|
|
|
show = "drun";
|
|
|
|
prompt = "Search...";
|
|
|
|
filter_rate = 100;
|
|
|
|
allow_markup = true;
|
|
|
|
no_actions = true;
|
|
|
|
halign = "fill";
|
|
|
|
orientation = "vertical";
|
|
|
|
content_halign = "fill";
|
|
|
|
insensitive = true;
|
|
|
|
allow_images = true;
|
|
|
|
image_size = 40;
|
|
|
|
gtk_dark = true;
|
2025-05-29 12:53:25 -04:00
|
|
|
};
|
2025-09-04 08:17:42 -04:00
|
|
|
style = ''
|
|
|
|
@define-color selected-text #8caaee;
|
|
|
|
@define-color text #c6d0f5;
|
|
|
|
@define-color base #24273a;
|
|
|
|
|
|
|
|
* {
|
|
|
|
font-family: 'Monaspace Krypton 9', monospace;
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
|
|
|
|
window {
|
|
|
|
margin: 0px;
|
|
|
|
padding: 20px;
|
|
|
|
background-color: @base;
|
|
|
|
opacity: 0.95;
|
|
|
|
}
|
|
|
|
|
|
|
|
#inner-box {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
background-color: @base;
|
|
|
|
}
|
|
|
|
|
|
|
|
#outer-box {
|
|
|
|
margin: 0;
|
|
|
|
padding: 20px;
|
|
|
|
border: none;
|
|
|
|
background-color: @base;
|
|
|
|
}
|
|
|
|
|
|
|
|
#scroll {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
background-color: @base;
|
|
|
|
}
|
|
|
|
|
|
|
|
#input {
|
|
|
|
margin: 0;
|
|
|
|
padding: 10px;
|
|
|
|
border: none;
|
|
|
|
background-color: @base;
|
|
|
|
color: @text;
|
|
|
|
}
|
|
|
|
|
|
|
|
#input:focus {
|
|
|
|
outline: none;
|
|
|
|
box-shadow: none;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#text {
|
|
|
|
margin: 5px;
|
|
|
|
border: none;
|
|
|
|
color: @text;
|
|
|
|
}
|
|
|
|
|
|
|
|
#entry {
|
|
|
|
background-color: @base;
|
|
|
|
}
|
|
|
|
|
|
|
|
#entry:selected {
|
|
|
|
outline: none;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#entry:selected #text {
|
|
|
|
color: @selected-text;
|
|
|
|
}
|
|
|
|
|
|
|
|
#entry image {
|
|
|
|
-gtk-icon-transform: scale(0.7);
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
swaylock.enable = pkgs.stdenv.isLinux;
|
2025-05-29 12:53:25 -04:00
|
|
|
|
2025-09-04 08:17:42 -04:00
|
|
|
waybar = {
|
|
|
|
enable = pkgs.stdenv.isLinux;
|
|
|
|
systemd.enable = true;
|
|
|
|
};
|
2024-09-07 23:20:24 -04:00
|
|
|
};
|
2024-09-07 22:22:12 -04:00
|
|
|
}
|