refactor: complete rewrite
This commit is contained in:
parent
19a4bbda3c
commit
8e81943cf9
399 changed files with 3396 additions and 8042 deletions
82
modules/home/workstation/hyprland/components/rofi.nix
Normal file
82
modules/home/workstation/hyprland/components/rofi.nix
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig.ooknet.appearance) colorscheme fonts;
|
||||
inherit (colorscheme) palette;
|
||||
inherit (osConfig.ooknet.workstation) environment;
|
||||
inherit (config.lib.formats.rasi) mkLiteral;
|
||||
in {
|
||||
config = mkIf (environment == "hyprland") {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
font = "${fonts.monospace.family}";
|
||||
package = pkgs.rofi-wayland;
|
||||
terminal = "${config.home.sessionVariables.TERMINAL}";
|
||||
theme = {
|
||||
"*" = {
|
||||
background = mkLiteral "#${palette.base00}";
|
||||
foreground = mkLiteral "#${palette.base05}";
|
||||
selected = mkLiteral "#${palette.base0B}";
|
||||
message = mkLiteral "#${palette.base0D}";
|
||||
|
||||
background-color = mkLiteral "@background";
|
||||
border-color = mkLiteral "@foreground";
|
||||
text-color = mkLiteral "@foreground";
|
||||
font = mkLiteral "'${fonts.monospace.family} 14'";
|
||||
};
|
||||
|
||||
"window" = {
|
||||
width = mkLiteral "15%";
|
||||
border = mkLiteral "2";
|
||||
padding = mkLiteral "10";
|
||||
children = mkLiteral "[message,listview,inputbar]";
|
||||
};
|
||||
|
||||
"message" = {
|
||||
children = mkLiteral "[textbox]";
|
||||
};
|
||||
|
||||
"textbox" = {
|
||||
text-color = mkLiteral "@message";
|
||||
horizontal-align = mkLiteral "0.50";
|
||||
};
|
||||
|
||||
"inputbar" = {
|
||||
cursor = mkLiteral "pointer";
|
||||
border = mkLiteral "2";
|
||||
children = mkLiteral "[textbox-prompt-colon,entry]";
|
||||
};
|
||||
|
||||
"entry" = {
|
||||
cursor = mkLiteral "false";
|
||||
};
|
||||
|
||||
"textbox-prompt-colon" = {
|
||||
text-color = mkLiteral "@selected";
|
||||
expand = mkLiteral "false";
|
||||
margin = mkLiteral "0 0.3em 0em 0em";
|
||||
str = mkLiteral "' '";
|
||||
};
|
||||
|
||||
"listview" = {
|
||||
scrollbar = mkLiteral "true";
|
||||
fixed-height = mkLiteral "false";
|
||||
dynamic = mkLiteral "true";
|
||||
};
|
||||
|
||||
"element-text" = {
|
||||
horizontal-align = mkLiteral "0.50";
|
||||
};
|
||||
|
||||
"element-text selected" = {
|
||||
text-color = mkLiteral "@selected";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue