diff --git a/wrappers/rofi/config.rasi b/wrappers/rofi/config.rasi index c4c698b..bf83ce3 100644 --- a/wrappers/rofi/config.rasi +++ b/wrappers/rofi/config.rasi @@ -1,12 +1,3 @@ -* { - background: #1E2127FF; - background-alt: #282B31FF; - foreground: #FFFFFFFF; - selected: #61AFEFFF; - active: #98C379FF; - urgent: #E06C75FF; -} - /*****----- Configuration -----*****/ configuration { modi: "drun,run,filebrowser,window"; diff --git a/wrappers/rofi/dark.rasi b/wrappers/rofi/dark.rasi deleted file mode 100644 index 593f2e5..0000000 --- a/wrappers/rofi/dark.rasi +++ /dev/null @@ -1,8 +0,0 @@ -* { - 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 cbf9082..fc6f988 100644 --- a/wrappers/rofi/default.nix +++ b/wrappers/rofi/default.nix @@ -1,6 +1,6 @@ { assembleWrapper, moduleArgs, ... }: let - inherit (moduleArgs) pkgs; + inherit (moduleArgs) pkgs lib; in { theme ? "dark", @@ -10,16 +10,36 @@ assembleWrapper { flags = let - color-file = + theming = { - dark = ./dark.rasi; - light = ./light.rasi; + 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; + } + ''; } .${theme}; - rofi-config = pkgs.concatText "rofi-config" [ - ./config.rasi - color-file - ]; + rofi-config = pkgs.writeText "rofi-config" ( + lib.concatLines [ + theming + (builtins.readFile ./config.rasi) + ] + ); in [ "-config" diff --git a/wrappers/rofi/light.rasi b/wrappers/rofi/light.rasi deleted file mode 100644 index c3a8f1a..0000000 --- a/wrappers/rofi/light.rasi +++ /dev/null @@ -1,8 +0,0 @@ -* { - background: #F1F1F1FF; - background-alt: #E0E0E0FF; - foreground: #252525FF; - selected: #008EC4FF; - active: #10A778FF; - urgent: #C30771FF; -} \ No newline at end of file