rofi: Major improvements

This commit is contained in:
Mr Hedgehog 2022-03-29 12:27:07 -04:00
parent b736a86bf0
commit f356e20804
No known key found for this signature in database
GPG key ID: A5F69F6C161FDA7E

View file

@ -1,9 +1,9 @@
{pkgs, ...}: {
{pkgs, config, ...}: {
programs.rofi = {
enable = true;
package = pkgs.rofi-wayland;
cycle = true;
font = "FuraMono Nerd Font Mono 13";
font = "Input Mono 13";
location = "center";
# pass = {
# enable = true;
@ -15,5 +15,110 @@
modi = "run,ssh,drun,filebrowser";
};
terminal = "${pkgs.kitty}/bin/kitty";
theme = let
inherit (config.lib.formats.rasi) mkLiteral;
in {
"*" = {
accent-color = mkLiteral "#bb9af7ff";
background-color = mkLiteral "#1a1b26ff";
blue = mkLiteral "#7aa2f7ff";
border-color = mkLiteral "#cfc9c2ff";
font = "FiraCode Nerd Font Mono 12";
foreground-color = mkLiteral "#a9b1d6ff";
green = mkLiteral "#73dacaff";
height = 752;
lightfg = mkLiteral "#414868ff";
red = mkLiteral "#f7768eff";
show-icons = true;
width = 500;
display-drun = "";
};
"#button selected" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#entry" = {
text-color = mkLiteral "@foreground-color";
spacing = mkLiteral "1";
};
"#element-icon" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@foreground-color";
};
"#element-text" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@foreground-color";
};
"#element alternate" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#element alternate.active" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#element alternate.normal" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#element alternate.urgent" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#element normal" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#element normal.normal" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#element normal.active" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#element normal.urgent" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#element selected" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#element selected.normal" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#element selected.active" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#element selected.urgent" = {
background-color = mkLiteral "@background-color";
text-color = mkLiteral "@accent-color";
};
"#inputbar" = {
children = map mkLiteral [ "prompt" "entry" ];
};
"#prompt" = {
text-color = mkLiteral "@accent-color";
};
"#textbox" = {
text-color = mkLiteral "@foreground-color";
};
"#textbox-prompt-colon" = {
expand = true;
str = ":";
margin = mkLiteral "0px 0.3em 0em 0em";
text-color = mkLiteral "@lightfg";
};
"#window" = {
border = mkLiteral "2px";
border-color = mkLiteral "@border-color";
padding = 25;
width = 500;
height = 752;
};
};
};
}