From 233a15530c9ff89d19ddf77593960aa1481a38ea Mon Sep 17 00:00:00 2001 From: notgne2 Date: Mon, 12 Dec 2022 09:34:36 -0700 Subject: [PATCH] make a new rofi theme --- home-manager/modules/colors.nix | 37 +------------------- home-manager/modules/rofi.css | 60 +++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 36 deletions(-) create mode 100644 home-manager/modules/rofi.css diff --git a/home-manager/modules/colors.nix b/home-manager/modules/colors.nix index f848fd7..982716c 100644 --- a/home-manager/modules/colors.nix +++ b/home-manager/modules/colors.nix @@ -309,42 +309,7 @@ in { # programs.rofi.theme = "${genTheme inputs.base16-rofi}"; programs.rofi.theme = "${pkgs.writeText "theme.rasi" '' ${builtins.readFile (mustache scheme "${inputs.base16-rofi}/templates/colors.mustache")} - * { - background-color: @background; - border-color: @border-color; - text-color: @foreground; - } - - #window { - anchor: north; - location: north; - width: 100%; - padding: 4px; - children: [ horibox ]; - } - - #horibox { - orientation: horizontal; - children: [ prompt, entry, listview ]; - } - - #listview { - layout: horizontal; - spacing: 5px; - lines: 100; - } - - #entry { - expand: false; - width: 10em; - } - - #element { - padding: 0px 2px; - } - #element selected { - background-color: @selected-normal-background; - } + ${builtins.readFile ./rofi.css} ''}"; # Kitty diff --git a/home-manager/modules/rofi.css b/home-manager/modules/rofi.css new file mode 100644 index 0000000..a51ee14 --- /dev/null +++ b/home-manager/modules/rofi.css @@ -0,0 +1,60 @@ +* { + background-color: transparent; + text-color: @foreground; + margin: 0; + padding: 0; + spacing: 0; +} + +window { + location: center; + width: 700px; + background-color: @background; + border: 2px solid; + border-color: @border-color; +} + +inputbar { + padding: 8px; + spacing: 4px; + background-color: @alternate-normal-background; + color: @alternate-normal-foreground; +} + +textbox { + padding: 4px 8px; + background-color: @alternate-normal-background; +} + +listview { + columns: 1; + spacing: 8px; + fixed-columns: true; +} + +element { + spacing: 1em; + padding: 4px; +} + +element normal urgent { + text-color: @urgent-foreground; +} + +element normal active { + text-color: @active-foreground; +} + +element selected { + background-color: @selected-normal-background; + color: @selected-normal-foreground; +} + +element selected urgent { + background-color: @selected-urgent-background; + color: @selected-urgent-foreground; +} + +element-text { + text-color: inherit; +}