initial commit
This commit is contained in:
25
home/programs/rofi/config.rasi
Normal file
25
home/programs/rofi/config.rasi
Normal file
@@ -0,0 +1,25 @@
|
||||
configuration {
|
||||
show-icons: true;
|
||||
display-drun: "";
|
||||
display-run: "";
|
||||
display-window: " ";
|
||||
display-combi: " ";
|
||||
kb-remove-char-back: "BackSpace";
|
||||
kb-remove-to-eol: "Control+Shift+e";
|
||||
kb-accept-entry: "Control+m,Return,KP_Enter";
|
||||
kb-mode-next: "Shift+Right,Control+Tab,Control+l";
|
||||
kb-mode-previous: "Shift+Left,Control+Shift+Tab,Control+h";
|
||||
kb-mode-complete: "Control+p";
|
||||
kb-row-up: "Up,Control+k,Shift+Tab,Shift+ISO_Left_Tab";
|
||||
kb-row-down: "Down,Control+j";
|
||||
timeout {
|
||||
action: "kb-cancel";
|
||||
delay: 0;
|
||||
}
|
||||
filebrowser {
|
||||
directories-first: true;
|
||||
sorting-method: "name";
|
||||
}
|
||||
}
|
||||
|
||||
@theme "./styles/main.rasi"
|
||||
18
home/programs/rofi/default.nix
Normal file
18
home/programs/rofi/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
# programs.rofi = {
|
||||
# enable = true;
|
||||
# configPath = "./config.rasi";
|
||||
# };
|
||||
|
||||
home.file.".config/rofi/config.rasi".source = ./config.rasi;
|
||||
|
||||
home.activation.copyRofiDir = lib.mkAfter ''
|
||||
mkdir -p ~/.config/rofi/styles
|
||||
cp -r ${./styles}/* ~/.config/rofi/styles/
|
||||
chmod -R u+w ~/.config/rofi/styles/
|
||||
'';
|
||||
}
|
||||
27
home/programs/rofi/styles/colors.rasi
Normal file
27
home/programs/rofi/styles/colors.rasi
Normal file
@@ -0,0 +1,27 @@
|
||||
configuration {
|
||||
font: "Liga SFMono Nerd Font 13";
|
||||
}
|
||||
|
||||
* {
|
||||
base00: #161616;
|
||||
base01: #262626;
|
||||
base02: #393939;
|
||||
base03: #525252;
|
||||
base04: #dde1e6;
|
||||
base05: #f2f4f8;
|
||||
base06: #ffffff;
|
||||
base07: #08bdba;
|
||||
base08: #3ddbd9;
|
||||
base09: #78a9ff;
|
||||
base0A: #ee5396;
|
||||
base0B: #33b1ff;
|
||||
base0C: #ff7eb6;
|
||||
base0D: #42be65;
|
||||
base0E: #be95ff;
|
||||
base0F: #82cfff;
|
||||
|
||||
background: @base01;
|
||||
prompt: @base00;
|
||||
text: @base04;
|
||||
select: @base00;
|
||||
}
|
||||
91
home/programs/rofi/styles/main.rasi
Normal file
91
home/programs/rofi/styles/main.rasi
Normal file
@@ -0,0 +1,91 @@
|
||||
@import "./colors.rasi"
|
||||
|
||||
configuration {
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
* {
|
||||
pink: @base0C;
|
||||
cyan: @base0F;
|
||||
green: #9ece6a;
|
||||
|
||||
accent-color: @base06;
|
||||
urgent-color: @base0A;
|
||||
|
||||
background-color: transparent;
|
||||
text-color: @text;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
window {
|
||||
location: center;
|
||||
anchor: center;
|
||||
fullscreen: false;
|
||||
y-offset: 0px;
|
||||
|
||||
enabled: true;
|
||||
background-color: @background;
|
||||
cursor: "default";
|
||||
border: 1px;
|
||||
border-color: #565657;
|
||||
width: 700px;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
enabled: true;
|
||||
background-color: @prompt;
|
||||
padding: 10px;
|
||||
children: ["entry"];
|
||||
}
|
||||
|
||||
entry {
|
||||
enabled: true;
|
||||
padding: 0.75em 1.25em;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
listview {
|
||||
enabled: true;
|
||||
columns: 1;
|
||||
lines: 6;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
margin: 0.5em 0 0.75em;
|
||||
cursor: "default";
|
||||
}
|
||||
|
||||
prompt {
|
||||
text-color: @accent-color;
|
||||
|
||||
}
|
||||
|
||||
textbox {
|
||||
padding: 0.5em 1.5em;
|
||||
background-color: @prompt;
|
||||
}
|
||||
|
||||
element {
|
||||
enabled: true;
|
||||
margin: 0 0.25em;
|
||||
padding: 0.5em 0.75em;
|
||||
cursor: pointer;
|
||||
orientation: vertical;
|
||||
}
|
||||
|
||||
element-text {
|
||||
highlight: @green;
|
||||
cursor: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
font: "Liga SFMono Nerd Font 14";
|
||||
}
|
||||
|
||||
element-text selected {
|
||||
text-color: @cyan;
|
||||
}
|
||||
Reference in New Issue
Block a user