user/rofi-wayland: use catppuccin colours
This commit is contained in:
parent
06c3f076a4
commit
db469ad58f
2 changed files with 23 additions and 7 deletions
|
|
@ -1,8 +1,23 @@
|
|||
{ config, pkgs, ... }: {
|
||||
{ config, pkgs, ... }:
|
||||
let
|
||||
theme = pkgs.stdenvNoCC.mkDerivation {
|
||||
pname = "rofi-theme";
|
||||
version = "1.0.0";
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
cp ${../../res/theme.rasi} $out
|
||||
substituteInPlace $out \
|
||||
--replace-fail "CAT_BACKGROUND" "${config.catppuccin.hexcolors.crust}" \
|
||||
--replace-fail "CAT_TEXT" "${config.catppuccin.hexcolors.text}" \
|
||||
--replace-fail "CAT_ACCENT" "${config.catppuccin.hexcolors.${config.catppuccin.accent}}" \
|
||||
--replace-fail "CAT_PLACEHOLDER" "${config.catppuccin.hexcolors.overlay1}"
|
||||
'';
|
||||
};
|
||||
in {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
theme = "theme";
|
||||
};
|
||||
xdg.configFile."rofi/theme.rasi".source = ../../res/theme.rasi;
|
||||
xdg.configFile."rofi/theme.rasi".source = theme;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ configuration {
|
|||
@theme "/dev/null"
|
||||
|
||||
* {
|
||||
bg: #12131b;
|
||||
fg: #f3f6ff;
|
||||
button: #ae58c8;
|
||||
bg: CAT_BACKGROUND;
|
||||
fg: CAT_TEXT;
|
||||
button: CAT_ACCENT;
|
||||
|
||||
background-color: @bg;
|
||||
text-color: @fg;
|
||||
|
|
@ -30,7 +30,7 @@ prompt { enabled: false; }
|
|||
|
||||
entry {
|
||||
placeholder: "Search";
|
||||
placeholder-color: #f3f6ff90;
|
||||
placeholder-color: CAT_PLACEHOLDER;
|
||||
transparency: "real";
|
||||
expand: true;
|
||||
font: "Noto Sans 32";
|
||||
|
|
@ -70,7 +70,7 @@ element-text {
|
|||
margin: 0% 3% 0.5% 3%;
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
font: "Noto Sans 12";
|
||||
font: "Noto Sans Medium 12";
|
||||
}
|
||||
|
||||
element-icon {
|
||||
|
|
@ -85,4 +85,5 @@ element-icon {
|
|||
element selected {
|
||||
background-color: @button;
|
||||
border-radius: 8px;
|
||||
text-color: @bg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue