rofi: modify theme
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
3304110242
commit
e9de99ad9f
2 changed files with 42 additions and 33 deletions
|
@ -1,5 +1,5 @@
|
||||||
/***
|
/***
|
||||||
https://github.com/lbonn/rofi/blob/wayland/doc/rofi-theme.5.markdown
|
https://davatorium.github.io/rofi/current/rofi-theme.5/
|
||||||
https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-common.rasi
|
https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-common.rasi
|
||||||
https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-pink-dark.rasi
|
https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-pink-dark.rasi
|
||||||
***/
|
***/
|
||||||
|
@ -11,52 +11,62 @@ https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-pi
|
||||||
padding: 0;
|
padding: 0;
|
||||||
spacing: 0;
|
spacing: 0;
|
||||||
text-color: #93a1a1;
|
text-color: #93a1a1;
|
||||||
|
vertical-align: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
window {
|
window {
|
||||||
background-color: #002b36;
|
background-color: #002b36;
|
||||||
border-color: #073642;
|
border-color: #073642;
|
||||||
border-radius: 30px;
|
border-radius: 32px;
|
||||||
location: north;
|
location: north;
|
||||||
width: 750;
|
width: 750;
|
||||||
y-offset: calc(50% - 25% / 2);
|
y-offset: calc(50% - 25% / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
mainbox {
|
mainbox {
|
||||||
|
children: [inputbox, listview];
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
inputbar {
|
inputbox {
|
||||||
background-color: #073642;
|
background-color: #073642;
|
||||||
|
border-radius: 24px;
|
||||||
|
children: [inputbar, message];
|
||||||
|
expand: false;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputbar {
|
||||||
|
background-color: #002b36;
|
||||||
border-color: #d33682;
|
border-color: #d33682;
|
||||||
border-radius: 30px;
|
border-radius: 32px;
|
||||||
padding: 8px 8px 8px 4px;
|
children: [entry, prompt];
|
||||||
spacing: 4px;
|
padding: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt {
|
prompt {
|
||||||
font: 'monospace 16';
|
background-color: #073642;
|
||||||
padding: 4px 4px 4px 8px;
|
border-radius: 32px;
|
||||||
|
font: 'monospace 18';
|
||||||
|
padding: 4px 18px;
|
||||||
text-color: #93a1a1;
|
text-color: #93a1a1;
|
||||||
vertical-align: 0.5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
entry {
|
entry {
|
||||||
font: 'monospace 18';
|
font: 'monospace 18';
|
||||||
|
margin: 4px 12px;
|
||||||
placeholder-color: #586e7580;
|
placeholder-color: #586e7580;
|
||||||
vertical-align: 0.5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message {
|
message {
|
||||||
padding: 8px 8px 4px 8px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
textbox {
|
textbox {
|
||||||
font: 'sans-serif 10';
|
font: 'monospace 16';
|
||||||
|
horizontal-align: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
listview {
|
listview {
|
||||||
background-color: transparent;
|
|
||||||
columns: 1;
|
columns: 1;
|
||||||
fixed-height: false;
|
fixed-height: false;
|
||||||
lines: 5;
|
lines: 5;
|
||||||
|
@ -64,9 +74,9 @@ listview {
|
||||||
}
|
}
|
||||||
|
|
||||||
element {
|
element {
|
||||||
border-radius: 30px;
|
border-radius: 32px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
spacing: 8px;
|
spacing: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
element selected normal,
|
element selected normal,
|
||||||
|
@ -76,10 +86,10 @@ element selected active {
|
||||||
|
|
||||||
element-icon {
|
element-icon {
|
||||||
size: 32px;
|
size: 32px;
|
||||||
vertical-align: 0.5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
element-text {
|
element-text {
|
||||||
text-color: inherit;
|
highlight: #d33682;
|
||||||
vertical-align: 0.5;
|
margin: 4px;
|
||||||
|
tab-stops: [700px];
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,10 +34,10 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
dmenu.show = "${quit} || ${rofi} -dmenu";
|
dmenu.show = "${quit} || ${rofi} -dmenu";
|
||||||
emoji.show = "${quit} || ${rofimoji} --prompt ";
|
emoji.show = "${quit} || ${rofimoji} --prompt ";
|
||||||
network.show = "${quit} || ${rofi} -dmenu -p ";
|
network.show = "${quit} || ${rofi} -dmenu -p ";
|
||||||
search.show = "";
|
search.show = "";
|
||||||
vault.show = "${quit} || ${rofi-rbw} --prompt ";
|
vault.show = "${quit} || ${rofi-rbw} --prompt ";
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
@ -58,36 +58,35 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# https://github.com/lbonn/rofi
|
# https://github.com/lbonn/rofi
|
||||||
# https://github.com/lbonn/rofi/tree/wayland/doc
|
|
||||||
package = pkgs.rofi-wayland; # Wayland fork
|
package = pkgs.rofi-wayland; # Wayland fork
|
||||||
|
|
||||||
plugins = with pkgs; [
|
plugins = with pkgs; [
|
||||||
rofi-calc # https://github.com/svenstaro/rofi-calc
|
rofi-calc # https://github.com/svenstaro/rofi-calc
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# https://davatorium.github.io/rofi/themes/themes/
|
||||||
#?? rofi-theme-selector
|
#?? rofi-theme-selector
|
||||||
theme = "custom";
|
theme = "custom";
|
||||||
|
|
||||||
# https://github.com/lbonn/rofi/blob/wayland/CONFIG.md
|
# https://davatorium.github.io/rofi/current/rofi.1/
|
||||||
# https://github.com/lbonn/rofi/blob/wayland/doc/rofi.1.markdown
|
|
||||||
# https://www.nerdfonts.com/cheat-sheet
|
# https://www.nerdfonts.com/cheat-sheet
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
combi-hide-mode-prefix = true;
|
combi-hide-mode-prefix = true;
|
||||||
combi-modes = ["drun" "run" "calc"];
|
combi-modes = ["drun" "run"];
|
||||||
cycle = false;
|
cycle = false;
|
||||||
display-calc = "";
|
display-calc = "";
|
||||||
display-clipboard = "";
|
display-clipboard = "";
|
||||||
display-combi = "";
|
display-combi = "";
|
||||||
display-dmenu = "";
|
display-dmenu = "";
|
||||||
display-drun = "";
|
display-drun = "";
|
||||||
display-keys = "";
|
display-keys = "";
|
||||||
display-run = "";
|
display-run = "";
|
||||||
display-ssh = "";
|
display-ssh = "";
|
||||||
drun-display-format = "{name}"; # Display only names
|
drun-display-format = "{name}"; # Display only names
|
||||||
drun-match-fields = "name"; # Disable matching of invisible desktop attributes
|
drun-match-fields = "name"; # Disable matching of invisible desktop attributes
|
||||||
matching = "prefix"; # Match beginning of words
|
matching = "prefix"; # Match beginning of words
|
||||||
|
|
||||||
# https://github.com/lbonn/rofi/blob/wayland/doc/rofi.1.markdown#available-modes
|
# https://davatorium.github.io/rofi/current/rofi.1/#available-modes
|
||||||
modes = [
|
modes = [
|
||||||
"calc"
|
"calc"
|
||||||
"clipboard"
|
"clipboard"
|
||||||
|
@ -101,7 +100,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
# https://github.com/lbonn/rofi/blob/wayland/doc/rofi-theme.5.markdown
|
# https://davatorium.github.io/rofi/current/rofi-theme.5/
|
||||||
"rofi/custom.rasi".text = ''
|
"rofi/custom.rasi".text = ''
|
||||||
${readFile ./custom.rasi}
|
${readFile ./custom.rasi}
|
||||||
|
|
||||||
|
@ -110,7 +109,7 @@ in {
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# https://github.com/lbonn/rofi/blob/wayland/doc/rofi-script.5.markdown
|
# https://davatorium.github.io/rofi/current/rofi-script.5/
|
||||||
# https://github.com/sentriz/cliphist?tab=readme-ov-file#picker-examples
|
# https://github.com/sentriz/cliphist?tab=readme-ov-file#picker-examples
|
||||||
"rofi/scripts/clipboard" = {
|
"rofi/scripts/clipboard" = {
|
||||||
#// source = getExe' hm.services.cliphist.package "cliphist-rofi-img";
|
#// source = getExe' hm.services.cliphist.package "cliphist-rofi-img";
|
||||||
|
|
Loading…
Add table
Reference in a new issue