(rofi) config clean up

This commit is contained in:
2026-06-16 23:16:39 +02:00
parent 7965c3bb31
commit fc4bcb1f0b
3 changed files with 63 additions and 42 deletions
+15 -4
View File
@@ -1,25 +1,36 @@
@theme "~/.config/rofi/themes/zegonix-blue.rasi" @theme "~/.config/rofi/themes/zegonix-blue.rasi"
//@theme "~/.config/rofi/themes/zegonix-black.rasi" // @theme "~/.config/rofi/themes/zegonix-black.rasi"
configuration { configuration {
modes: "combi,window,run"; // mode
modes: "combi,run";
combi-modes: "drun,run"; combi-modes: "drun,run";
drun-match-fields: "name,generic,keywords"; drun-match-fields: "name,generic,keywords";
matching: "fuzzy";
// blargh?
monitor: -1; monitor: -1;
terminal: "ghostty"; terminal: "ghostty";
no-plugins: true;
// matching
matching: "fuzzy";
case-sensitive: false; case-sensitive: false;
// keybindings
kb-row-up: "Up,Control+k"; kb-row-up: "Up,Control+k";
kb-row-down: "Down,Control+j"; kb-row-down: "Down,Control+j";
kb-accept-entry: "Return,Control+m"; kb-accept-entry: "Return";
kb-remove-to-eol: ""; kb-remove-to-eol: "";
kb-clear-line: ""; kb-clear-line: "";
kb-remove-word-back: "Control+BackSpace,Control+w"; kb-remove-word-back: "Control+BackSpace,Control+w";
// do not cancel me!
timeout { timeout {
action: "kb-cancel"; action: "kb-cancel";
delay: 0; delay: 0;
} }
// ??
filebrowser { filebrowser {
directories-first: true; directories-first: true;
sorting-method: "name"; sorting-method: "name";
+27 -14
View File
@@ -1,18 +1,18 @@
* { * {
font: "Victor Mono Nerd Font 13"; font: "JetBrains Mono Nerd Font 14";
zx-transparent: transparent; zx-transparent: transparent;
zx-white: #C8C8C8FF; zx-white: #C8C8C8FF;
zx-dark-blue: #080C1CEA; zx-dark-blue: #000010EA;
zx-blue: #203050C8; zx-blue: #203050C8;
zx-light-blue: #6bceffff; zx-light-blue: #5BB8FFFF;
zx-cyan: #15D7E5FF; zx-cyan: #15D7E5FF;
zx-light-grey: #A0A0ADFF; zx-light-grey: #A0A0ADFF;
zx-dark-grey: #202028C8; zx-dark-grey: #202028C8;
zx-black: #000000EA; zx-black: #000000EA;
zx-background: @zx-black; zx-background: @zx-black;
zx-secondary: @zx-dark-grey; zx-secondary: @zx-dark-grey;
zx-accent: @zx-white; zx-accent: @zx-light-grey;
zx-text: @zx-white; zx-text: @zx-white;
background-color: transparent; background-color: transparent;
@@ -20,16 +20,14 @@
window { window {
location: center; location: center;
width: 35%; width: 30%;
background-color: @zx-background; background-color: @zx-background;
border: 0; border: 0;
border-color: @zx-accent; border-color: @zx-accent;
padding: 2 12 8 12; children: [ mainbox ];
children: [mainbox];
} }
mainbox { mainbox {
@@ -37,7 +35,7 @@ mainbox {
border: 0px; border: 0px;
spacing: 8px; spacing: 8px;
children: [inputbar, listview]; children: [ inputbar, listview, mode-switcher ];
} }
inputbar { inputbar {
@@ -50,7 +48,7 @@ inputbar {
border: 0 0 1px 0; border: 0 0 1px 0;
border-color: @zx-accent; border-color: @zx-accent;
children: [prompt, entry]; children: [ entry ];
} }
prompt { prompt {
@@ -72,17 +70,17 @@ listview {
spacing: 5px; spacing: 5px;
border: 0px; border: 0px;
background-color: @transparent; //@zx-background; background-color: @zx-transparent;
children: [element]; children: [ element ];
} }
element { element {
background-color: transparent; background-color: @zx-transparent;
text-color: inherit; text-color: inherit;
border: 0; border: 0;
children: [element-text]; children: [ element-text ];
} }
element-text { element-text {
@@ -107,3 +105,18 @@ element-text.selected {
prompt, entry, element-text { prompt, entry, element-text {
vertical-align: 0.5; vertical-align: 0.5;
} }
mode-switcher {
children: [ button ];
}
button {
padding: 4 0 4 0;
text-color: @zx-text;
text-transform: bold;
}
button.selected {
text-color: @zx-background;
background-color: @zx-accent;
}
+2 -5
View File
@@ -20,15 +20,13 @@
window { window {
location: center; location: center;
width: 25%; width: 30%;
background-color: @zx-background; background-color: @zx-background;
border: 0; border: 0;
border-color: @zx-accent; border-color: @zx-accent;
//padding: 2 12 8 12;
children: [mainbox]; children: [mainbox];
} }
@@ -44,7 +42,6 @@ inputbar {
spacing: 40px; spacing: 40px;
padding: 10px; padding: 10px;
//background-color: @zx-secondary;
text-color: @zx-text; text-color: @zx-text;
border: 0 0 1px 0; border: 0 0 1px 0;
@@ -72,7 +69,7 @@ listview {
spacing: 5px; spacing: 5px;
border: 0px; border: 0px;
background-color: @zx-transparent; //@zx-background; background-color: @zx-transparent;
children: [element]; children: [element];
} }