home/rofi: vendor theme

This commit is contained in:
Oystein Kristoffer Tveit 2025-03-15 01:43:28 +01:00
parent cce75f872f
commit f80069b1a0
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
3 changed files with 148 additions and 3 deletions

@ -60,7 +60,7 @@ in {
./programs/newsboat
./programs/obs-studio.nix
./programs/qutebrowser.nix
./programs/rofi.nix
./programs/rofi
./programs/taskwarrior.nix
./programs/vscode
./programs/zathura.nix

@ -0,0 +1,145 @@
// Based on the glorious dotfiles:
// https://github.com/manilarome/the-glorious-dotfiles/blob/master/config/awesome/surreal/configuration/rofi/global/rofi.rasi
* {
transparent: #00000000;
foreground: #F2F2F2EE;
background-selected: #F2F2F245;
background-active: #F2F2F230;
background-white: #F2F2F211;
background-black: #00000066;
urgent: #E91E6366;
urgent-selected: #E91E6377;
}
window {
transparency: "real";
background-color: @transparent;
location: center;
anchor: center;
x-offset: 0px;
height: 500px;
width: 750px;
orientation: vertical;
border-radius: 12px;
}
prompt {
enabled: false;
}
button {
action: "ok";
str: " ";
font: "Droid Sans 12";
expand: false;
text-color: @foreground;
background-color: @transparent;
vertical-align: 0.7;
horizontal-align: 0.5;
}
entry {
font: "Droid Sans 12";
background-color: @transparent;
text-color: @foreground;
expand: true;
vertical-align: 0.5;
horizontal-align: 0.5;
placeholder: "Type to search";
placeholder-color: @foreground;
blink: true;
}
case-indicator {
background-color: @transparent;
text-color: @foreground;
vertical-align: 0.5;
horizontal-align: 0.5;
}
entry-wrapper {
orientation: horizontal;
vertical-align: 0.5;
spacing: 4px;
background-color: @transparent;
children: [ button, entry, case-indicator ];
}
inputbar {
background-color: @background-white;
text-color: @foreground;
expand: false;
border-radius: 24px;
margin: 0px 225px 0px 225px;
padding: 10px 10px 10px 10px;
position: north;
children: [ entry-wrapper ];
}
listview {
background-color: @transparent;
columns: 2;
spacing: 5px;
cycle: false;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @background-black;
children: [ inputbar, listview ];
spacing: 25px;
padding: 40px 25px 25px 25px;
}
element {
background-color: @transparent;
text-color: @foreground;
orientation: horizontal;
border-radius: 6px;
padding: 5px 10px 5px 10px;
}
element-icon {
background-color: @transparent;
size: 46px;
border: 0;
}
element-text {
background-color: @transparent;
text-color: @foreground;
expand: true;
horizontal-align: 0;
vertical-align: 0.5;
margin: 0 10px 0 10px;
}
element normal.urgent,
element alternate.urgent {
background-color: @urgent;
text-color: @foreground;
border-radius: 9px;
}
element normal.active,
element alternate.active {
background-color: @background-active;
text-color: @foreground;
}
element selected {
background-color: @background-selected;
text-color: @foreground;
}
element selected.urgent {
background-color: @urgent-selected;
text-color: @foreground;
}
element selected.active {
background-color: @background-active;
color: @foreground-selected;
}

@ -1,4 +1,4 @@
{pkgs, inputs, ...}:
{ pkgs, ... }:
{
programs.rofi = {
enable = true;
@ -14,7 +14,7 @@
# ];
font = "Droid Sans 12";
theme = "${inputs.dotfiles}/general/.config/rofi/themes/blank.rasi";
theme = ./blank.rasi;
extraConfig = {
modi = "window,run,drun,ssh,windowcd";