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 = {
|
programs.rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.rofi-wayland;
|
package = pkgs.rofi-wayland;
|
||||||
theme = "theme";
|
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"
|
@theme "/dev/null"
|
||||||
|
|
||||||
* {
|
* {
|
||||||
bg: #12131b;
|
bg: CAT_BACKGROUND;
|
||||||
fg: #f3f6ff;
|
fg: CAT_TEXT;
|
||||||
button: #ae58c8;
|
button: CAT_ACCENT;
|
||||||
|
|
||||||
background-color: @bg;
|
background-color: @bg;
|
||||||
text-color: @fg;
|
text-color: @fg;
|
||||||
|
|
@ -30,7 +30,7 @@ prompt { enabled: false; }
|
||||||
|
|
||||||
entry {
|
entry {
|
||||||
placeholder: "Search";
|
placeholder: "Search";
|
||||||
placeholder-color: #f3f6ff90;
|
placeholder-color: CAT_PLACEHOLDER;
|
||||||
transparency: "real";
|
transparency: "real";
|
||||||
expand: true;
|
expand: true;
|
||||||
font: "Noto Sans 32";
|
font: "Noto Sans 32";
|
||||||
|
|
@ -70,7 +70,7 @@ element-text {
|
||||||
margin: 0% 3% 0.5% 3%;
|
margin: 0% 3% 0.5% 3%;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
text-color: inherit;
|
text-color: inherit;
|
||||||
font: "Noto Sans 12";
|
font: "Noto Sans Medium 12";
|
||||||
}
|
}
|
||||||
|
|
||||||
element-icon {
|
element-icon {
|
||||||
|
|
@ -85,4 +85,5 @@ element-icon {
|
||||||
element selected {
|
element selected {
|
||||||
background-color: @button;
|
background-color: @button;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
text-color: @bg;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue