This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-05-01 23:05:33 +02:00
parent dd3d1f6b96
commit 5f467f5108
2 changed files with 56 additions and 58 deletions

View File

@@ -1,4 +1,4 @@
{ config, pkgs, rice, ... }: { config, pkgs, rice, ... }:
let let
trdr = "${rice.lib.float-to-drune rice.transparency}"; trdr = "${rice.lib.float-to-drune rice.transparency}";
in in
@@ -7,54 +7,52 @@ in
rofi-wayland rofi-wayland
]; ];
home.file.".config/rofi/config.rasi".text = '' home.file.".config/rofi/config.rasi".text = ''
/*Based on the Purple official rofi theme*/
configuration { configuration {
show-icons: false; show-icons: false;
display-drun: ""; display-drun: "";
disable-history: false; disable-history: false;
drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>] [<span weight='light' size='small'><i>({exec})</i></span>]"; drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>] [<span weight='light' size='small'><i>({exec})</i></span>]";
} }
* { * {
font: "${rice.font.code.name2} 12"; font: "${rice.font.code.name2} 12";
foreground: ${rice.color.foreground}; foreground: ${rice.color.foreground};
background-color: ${rice.color.background}${trdr}; background-color: ${rice.color.background}${trdr};
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
spacing: 0px; spacing: 0px;
border-width: 0px; border-width: 0px;
} }
#window { #window {
background-color: ${rice.color.background}${trdr}; background-color: ${rice.color.background}${trdr};
border: ${builtins.toString rice.border-width}px; border: ${builtins.toString rice.border-width}px;
border-radius: ${builtins.toString rice.rounding}; border-radius: ${builtins.toString rice.rounding};
border-color: ${rice.color.blue}; border-color: ${rice.color.blue};
} }
#mainbox { #mainbox {
border: 0; border: 0;
padding: 0; padding: 0;
} }
#message { #message {
border: 0px; border: 0px;
} }
#textbox { #textbox {
text-color: ${rice.color.foreground}; text-color: ${rice.color.foreground};
} }
#listview { #listview {
fixed-height: 0; fixed-height: 0;
border: 0px; border: 0px;
spacing: 0px ; spacing: 0px ;
scrollbar: false; scrollbar: false;
padding: 0px; padding: 0px;
} }
#element { #element {
border: 0; border: 0;
padding: 0px ; padding: 0px ;
} }
#element.normal.normal { background-color: ${rice.color.background}${trdr}; text-color: ${rice.color.foreground}; } #element.normal.normal { background-color: ${rice.color.background}${trdr}; text-color: ${rice.color.foreground}; }
@@ -63,51 +61,51 @@ in
#scrollbar { #scrollbar {
width: ${builtins.toString rice.border-width}px ; width: ${builtins.toString rice.border-width}px ;
border: 0; border: 0;
handle-width: 8px ; handle-width: 8px ;
padding: 0; padding: 0;
} }
#sidebar { #sidebar {
border: ${builtins.toString rice.border-width}px dash; border: ${builtins.toString rice.border-width}px dash;
} }
#button.selected { #button.selected {
text-color: ${rice.color.foreground}; text-color: ${rice.color.foreground};
} }
#inputbar { #inputbar {
spacing: 0; spacing: 0;
text-color: ${rice.color.background}; text-color: ${rice.color.background};
background-color: ${rice.color.red}${trdr}; background-color: ${rice.color.red}${trdr};
padding: 0; padding: 0;
children: [ prompt,textbox-prompt-colon,entry,case-indicator ]; children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
} }
#prompt { #prompt {
spacing: 0; spacing: 0;
background-color: transparent; background-color: transparent;
text-color: ${rice.color.foreground}; text-color: ${rice.color.foreground};
} }
#textbox-prompt-colon { #textbox-prompt-colon {
expand: false; expand: false;
str: ">"; str: ">";
margin: 0px 0.3em 0em 0em ; margin: 0px 0.3em 0em 0em ;
text-color: ${rice.color.background}; text-color: ${rice.color.background};
background-color: transparent; background-color: transparent;
} }
#case-indicator { #case-indicator {
spacing: 0; spacing: 0;
text-color: ${rice.color.foreground}; text-color: ${rice.color.foreground};
background-color: transparent; background-color: transparent;
} }
#entry { #entry {
spacing: 0; spacing: 0;
text-color: ${rice.color.background}; text-color: ${rice.color.background};
background-color: transparent; background-color: transparent;
placeholder: ""; placeholder: "";
} }
element-text, element-icon { element-text, element-icon {
background-color: inherit; background-color: inherit;
text-color: inherit; text-color: inherit;
} }
''; '';
} }

View File

@@ -63,7 +63,7 @@
spotify spicetify-cli spotify spicetify-cli
obs-studio obs-studio
waybar swww rofi playerctl waybar swww playerctl
imv mpv mediainfo exiftool ffmpeg imv mpv mediainfo exiftool ffmpeg
pavucontrol fontpreview gtk2fontsel pavucontrol fontpreview gtk2fontsel