150 lines
4.9 KiB
Nix
150 lines
4.9 KiB
Nix
{ pkgs, config, lib, ... }:
|
|
with import ../../support.nix { inherit lib config; }; {
|
|
home-manager.users.alukard.home.file.".config/rofi/custom.rasi".text = ''
|
|
* {
|
|
red: rgba ( ${thmDec.red}, 100 % );
|
|
blue: rgba ( ${thmDec.blue}, 100 % );
|
|
lightfg: rgba ( ${thmDec.cyan}, 100 % );
|
|
lightbg: rgba ( ${thmDec.dark}, 100 % );
|
|
foreground: rgba ( ${thmDec.purple}, 100 % );
|
|
background: rgba ( ${thmDec.bg}, 100 % );
|
|
background-color: rgba ( ${thmDec.bg}, 0 % );
|
|
separatorcolor: @foreground;
|
|
border-color: @foreground;
|
|
selected-normal-foreground: @background;
|
|
selected-normal-background: @blue;
|
|
selected-active-foreground: @lightbg;
|
|
selected-active-background: @lightfg;
|
|
selected-urgent-foreground: @background;
|
|
selected-urgent-background: @red;
|
|
normal-foreground: @foreground;
|
|
normal-background: @background;
|
|
active-foreground: @blue;
|
|
active-background: @background;
|
|
urgent-foreground: @red;
|
|
urgent-background: @background;
|
|
alternate-normal-foreground: @foreground;
|
|
alternate-normal-background: @lightbg;
|
|
alternate-active-foreground: @blue;
|
|
alternate-active-background: @lightbg;
|
|
alternate-urgent-foreground: @red;
|
|
alternate-urgent-background: @lightbg;
|
|
spacing: 2;
|
|
}
|
|
window {
|
|
background-color: @background;
|
|
border: 1;
|
|
padding: 5;
|
|
}
|
|
mainbox {
|
|
border: 0;
|
|
padding: 0;
|
|
}
|
|
message {
|
|
border: 1px dash 0px 0px ;
|
|
border-color: @separatorcolor;
|
|
padding: 1px ;
|
|
}
|
|
textbox {
|
|
text-color: @foreground;
|
|
}
|
|
listview {
|
|
fixed-height: 0;
|
|
border: 2px dash 0px 0px ;
|
|
border-color: @separatorcolor;
|
|
spacing: 2px ;
|
|
scrollbar: true;
|
|
padding: 2px 0px 0px ;
|
|
}
|
|
element {
|
|
border: 0;
|
|
padding: 1px ;
|
|
}
|
|
element normal.normal {
|
|
background-color: @normal-background;
|
|
text-color: @normal-foreground;
|
|
}
|
|
element normal.urgent {
|
|
background-color: @urgent-background;
|
|
text-color: @urgent-foreground;
|
|
}
|
|
element normal.active {
|
|
background-color: @active-background;
|
|
text-color: @active-foreground;
|
|
}
|
|
element selected.normal {
|
|
background-color: @selected-normal-background;
|
|
text-color: @selected-normal-foreground;
|
|
}
|
|
element selected.urgent {
|
|
background-color: @selected-urgent-background;
|
|
text-color: @selected-urgent-foreground;
|
|
}
|
|
element selected.active {
|
|
background-color: @selected-active-background;
|
|
text-color: @selected-active-foreground;
|
|
}
|
|
element alternate.normal {
|
|
background-color: @alternate-normal-background;
|
|
text-color: @alternate-normal-foreground;
|
|
}
|
|
element alternate.urgent {
|
|
background-color: @alternate-urgent-background;
|
|
text-color: @alternate-urgent-foreground;
|
|
}
|
|
element alternate.active {
|
|
background-color: @alternate-active-background;
|
|
text-color: @alternate-active-foreground;
|
|
}
|
|
scrollbar {
|
|
width: 4px ;
|
|
border: 0;
|
|
handle-color: @normal-foreground;
|
|
handle-width: 8px ;
|
|
padding: 0;
|
|
}
|
|
sidebar {
|
|
border: 2px dash 0px 0px ;
|
|
border-color: @separatorcolor;
|
|
}
|
|
button {
|
|
spacing: 0;
|
|
text-color: @normal-foreground;
|
|
}
|
|
button selected {
|
|
background-color: @selected-normal-background;
|
|
text-color: @selected-normal-foreground;
|
|
}
|
|
inputbar {
|
|
spacing: 0px;
|
|
text-color: @normal-foreground;
|
|
padding: 1px ;
|
|
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
|
}
|
|
case-indicator {
|
|
spacing: 0;
|
|
text-color: @normal-foreground;
|
|
}
|
|
entry {
|
|
spacing: 0;
|
|
text-color: @normal-foreground;
|
|
}
|
|
prompt {
|
|
spacing: 0;
|
|
text-color: @normal-foreground;
|
|
}
|
|
textbox-prompt-colon {
|
|
expand: false;
|
|
str: ":";
|
|
margin: 0px 0.3000em 0.0000em 0.0000em ;
|
|
text-color: inherit;
|
|
}
|
|
'';
|
|
# TODO: отвязать от абсолютного пути (/home/user/...)
|
|
home-manager.users.alukard.programs.rofi = {
|
|
enable = true;
|
|
font = "Roboto Mono 14";
|
|
terminal = "\${rxvt_unicode}/bin/urxvt";
|
|
theme = "custom.rasi";
|
|
};
|
|
} |