diff --git a/wrappers/rofi/dark-theme.rasi b/wrappers/rofi/dark-theme.rasi new file mode 100644 index 0000000..593f2e5 --- /dev/null +++ b/wrappers/rofi/dark-theme.rasi @@ -0,0 +1,8 @@ +* { + background: #1E2127FF; + background-alt: #282B31FF; + foreground: #FFFFFFFF; + selected: #61AFEFFF; + active: #98C379FF; + urgent: #E06C75FF; +} \ No newline at end of file diff --git a/wrappers/rofi/default.nix b/wrappers/rofi/default.nix index 495bf80..cff0c8a 100644 --- a/wrappers/rofi/default.nix +++ b/wrappers/rofi/default.nix @@ -17,38 +17,17 @@ let theming = { - dark = '' - * { - background: #1E2127FF; - background-alt: #282B31FF; - foreground: #FFFFFFFF; - selected: #61AFEFFF; - active: #98C379FF; - urgent: #E06C75FF; - } - ''; - light = '' - * { - background: #F1F1F1FF; - background-alt: #E0E0E0FF; - foreground: #252525FF; - selected: #008EC4FF; - active: #10A778FF; - urgent: #C30771FF; - } - ''; + dark = ./dark-theme.rasi; + light = ./light-theme.rasi; } .${theme}; - rofi-config = pkgs.writeText "rofi-config" ( - lib.concatLines [ - theming - (builtins.readFile ./config.rasi) - ] - ); in [ "-config" - rofi-config + (pkgs.concatText "rofi-config" [ + ./config.rasi + theming + ]) ]; }; } diff --git a/wrappers/rofi/light-theme.rasi b/wrappers/rofi/light-theme.rasi new file mode 100644 index 0000000..c3a8f1a --- /dev/null +++ b/wrappers/rofi/light-theme.rasi @@ -0,0 +1,8 @@ +* { + background: #F1F1F1FF; + background-alt: #E0E0E0FF; + foreground: #252525FF; + selected: #008EC4FF; + active: #10A778FF; + urgent: #C30771FF; +} \ No newline at end of file