Evie Litherland-Smith
ecc9fae75a
Motivated by the xz backdoor bug, switch NixOS system to track 23.11 instead of unstable, and will bump version numbers as they come along rather than do rolling release. Reverted a couple of changes that were introduced in recent nixpkgs versions, only major one was switching back to swaylock as hyprlock isn't in nixpkgs 23.11 Remove stylix and replace with lower-level base16.nix, partly because stylix was doing something strange pulling in extra flakes (and breaking on 23.11), partly because I was most of the way there anyway. Remove last references to stylix in config, mostly just changing stylix.colors to scheme (from base16) and defining fonts in specialArgs to be used in the same way as before.
138 lines
3.3 KiB
Nix
138 lines
3.3 KiB
Nix
{
|
|
config,
|
|
fonts,
|
|
scheme,
|
|
accentColour ? "base07",
|
|
...
|
|
}: {
|
|
programs.rofi = {
|
|
enable = true;
|
|
font = fonts.monospace.name;
|
|
location = "center";
|
|
pass = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
USERNAME_field='login'
|
|
'';
|
|
};
|
|
extraConfig = {
|
|
modi = "drun,ssh,window,combi";
|
|
combi-modi = "window,drun,ssh";
|
|
sidebar-mode = true;
|
|
sort = true;
|
|
sorting-method = "fzf";
|
|
matching = "fuzzy";
|
|
icon-theme = config.gtk.iconTheme.name;
|
|
show-icons = true;
|
|
application-fallback-icon = " ";
|
|
drun-display-format = "{icon} {name} ({categories})";
|
|
disable-history = false;
|
|
hide-scrollbar = true;
|
|
display-window = " Move ";
|
|
display-run = " Run ";
|
|
display-drun = " Apps ";
|
|
display-ssh = " SSH ";
|
|
display-combi = " Combi ";
|
|
};
|
|
theme = with builtins;
|
|
with scheme; let
|
|
inherit (config.lib.formats.rasi) mkLiteral;
|
|
bg = mkLiteral "rgba (${base00-rgb-r}, ${base00-rgb-g}, ${base00-rgb-b}, 80%)";
|
|
bg2 = mkLiteral "rgba (${base01-rgb-r}, ${base01-rgb-g}, ${base01-rgb-b}, 100%)";
|
|
fg = mkLiteral withHashtag.base05;
|
|
fg2 = mkLiteral withHashtag.base04;
|
|
border = mkLiteral withHashtag.${accentColour};
|
|
blue = mkLiteral withHashtag.blue;
|
|
in {
|
|
"*" = {
|
|
background-color = mkLiteral "transparent";
|
|
text-color = fg;
|
|
font = with fonts; "${monospace.name} ${toString sizes.popups}";
|
|
};
|
|
|
|
window = {
|
|
height = mkLiteral "75%";
|
|
width = mkLiteral "75%";
|
|
border = mkLiteral "1px";
|
|
border-color = border;
|
|
border-radius = mkLiteral "10px";
|
|
background-color = bg;
|
|
};
|
|
|
|
inputbar = {
|
|
children = map mkLiteral ["prompt" "entry"];
|
|
padding = mkLiteral "2px";
|
|
};
|
|
|
|
prompt = {
|
|
background-color = bg2;
|
|
padding = mkLiteral "6px";
|
|
text-color = blue;
|
|
border-radius = mkLiteral "10px";
|
|
margin = mkLiteral "20px 0px 0px 20px";
|
|
};
|
|
|
|
textbox-prompt-colon = {
|
|
expand = false;
|
|
str = "=";
|
|
};
|
|
|
|
entry = {
|
|
padding = mkLiteral "6px";
|
|
margin = mkLiteral "20px 0px 0px 10px";
|
|
};
|
|
|
|
listview = {
|
|
border = mkLiteral "0px 0px 0px";
|
|
padding = mkLiteral "6px 0px 0px";
|
|
margin = mkLiteral "10px 0px 0px 20px";
|
|
columns = 2;
|
|
lines = 5;
|
|
};
|
|
|
|
element = {
|
|
padding = mkLiteral "5px";
|
|
};
|
|
|
|
"element-icon" = {
|
|
size = mkLiteral "25px";
|
|
};
|
|
|
|
"element selected" = {
|
|
background-color = bg2;
|
|
text-color = blue;
|
|
border-radius = mkLiteral "10px";
|
|
};
|
|
|
|
mode-switcher = {
|
|
spacing = 0;
|
|
};
|
|
|
|
button = {
|
|
padding = mkLiteral "10px";
|
|
text-color = fg2;
|
|
border-radius = mkLiteral "10px";
|
|
vertical-align = mkLiteral "0.5";
|
|
horizontal-align = mkLiteral "0.5";
|
|
};
|
|
|
|
"button selected" = {
|
|
background-color = bg2;
|
|
text-color = blue;
|
|
};
|
|
|
|
message = {
|
|
margin = mkLiteral "2px";
|
|
padding = mkLiteral "2px";
|
|
border-radius = mkLiteral "5px";
|
|
};
|
|
|
|
textbox = {
|
|
padding = mkLiteral "6px";
|
|
margin = mkLiteral "20px 0px 0px 20px";
|
|
text-color = blue;
|
|
};
|
|
};
|
|
};
|
|
}
|