rofi angepasst

This commit is contained in:
2026-01-09 09:15:15 +01:00
parent 693184e68e
commit 0f3aa402ee
2 changed files with 112 additions and 112 deletions
+34 -74
View File
@@ -7,107 +7,67 @@
extraConfig = {
modes = "window,run,ssh,drun";
show-icons = true;
drun-display-format = "{name}";
display-drun = "Apps:";
terminal = "alacritty";
};
theme = "${config.home.homeDirectory}/.config/rofi/main-theme.rasi";
};
xdg.configFile."rofi/main-theme.rasi".text = ''
/* Importiert die von Matugen generierten Farben */
@import "${config.home.homeDirectory}/.config/rofi/matugen-colors.rasi"
configuration {
wayland-layer: "overlay";
//display-drun: "";
//display-run: "";
//display-window: "";
//display-ssh: "";
show-icons: true;
}
* {
background-color: @bg0;
border-color: @fg0;
font: "JetBrainsMono Nerd Font 12";
background-color: transparent;
text-color: @fg0;
font: "JetBrainsMono Nerd Font 11";
margin: 0px;
padding: 0px;
spacing: 0px;
}
window {
width: 100% ;
padding: 4px ;
anchor: north;
location: north;
y-offset: -30px;
children: [ "horibox" ];
location: center;
width: 680;
border-radius: 20px;
border: 2px;
border-color: @blue; /* Hier wird jetzt die Matugen-Farbe genutzt */
background-color: @bg0;
}
horibox {
orientation: horizontal;
children: [ "container-left", "container-right" ];
background-color: transparent;
mainbox { padding: 12px; }
inputbar {
background-color: @bg1;
border-color: @bg3;
border-radius: 12px;
border: 2px;
padding: 8px 16px;
spacing: 8px;
children: [ prompt, entry ];
}
container-left {
orientation: horizontal;
expand: true;
children: [ "dummy", "inputbar" ];
background-color: transparent;
}
container-right {
orientation: horizontal;
expand: true;
children: [ "listview", "dummy" ];
background-color: transparent;
}
prompt { text-color: @blue; }
entry { placeholder: "Search..."; placeholder-color: @fg2; text-color: @fg0; }
listview {
layout: horizontal;
horizontal-align: 0.5;
spacing: 15px ;
lines: 100;
background-color: transparent;
}
entry {
enabled: true;
width: 5em ;
expand: false;
background-color: transparent;
text-color: @fg0;
placeholder: "Suche...";
placeholder-color: @fg1;
}
prompt {
background-color: transparent;
text-color: @blue;
margin: 0 10px 0 0;
margin: 12px 0 0;
lines: 8;
columns: 1;
fixed-height: false;
}
element {
padding: 0px 5px;
border-radius: 4px;
background-color: transparent;
text-color: @fg0;
padding: 8px 16px;
spacing: 12px;
border-radius: 10px;
}
element selected {
element selected normal {
background-color: @bg2;
text-color: @fg0;
text-color: @blue;
}
element-text {
background-color: transparent;
text-color: inherit;
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 1.0em;
}
element-icon { size: 1.5em; }
element-text { text-color: inherit; vertical-align: 0.5; }
'';
}
+74 -34
View File
@@ -7,67 +7,107 @@
extraConfig = {
modes = "window,run,ssh,drun";
show-icons = true;
drun-display-format = "{name}";
display-drun = "Apps:";
terminal = "alacritty";
};
theme = "${config.home.homeDirectory}/.config/rofi/main-theme.rasi";
};
xdg.configFile."rofi/main-theme.rasi".text = ''
/* Importiert die von Matugen generierten Farben */
@import "${config.home.homeDirectory}/.config/rofi/matugen-colors.rasi"
configuration {
wayland-layer: "overlay";
//display-drun: "";
//display-run: "";
//display-window: "";
//display-ssh: "";
show-icons: true;
}
* {
font: "JetBrainsMono Nerd Font 12";
background-color: transparent;
background-color: @bg0;
border-color: @fg0;
text-color: @fg0;
margin: 0px;
padding: 0px;
spacing: 0px;
font: "JetBrainsMono Nerd Font 11";
}
window {
location: center;
width: 680;
border-radius: 20px;
border: 2px;
border-color: @blue; /* Hier wird jetzt die Matugen-Farbe genutzt */
width: 100% ;
padding: 4px ;
anchor: north;
location: north;
y-offset: -30px;
children: [ "horibox" ];
background-color: @bg0;
}
mainbox { padding: 12px; }
inputbar {
background-color: @bg1;
border-color: @bg3;
border-radius: 12px;
border: 2px;
padding: 8px 16px;
spacing: 8px;
children: [ prompt, entry ];
horibox {
orientation: horizontal;
children: [ "container-left", "container-right" ];
background-color: transparent;
}
prompt { text-color: @blue; }
entry { placeholder: "Search..."; placeholder-color: @fg2; text-color: @fg0; }
container-left {
orientation: horizontal;
expand: true;
children: [ "dummy", "inputbar" ];
background-color: transparent;
}
container-right {
orientation: horizontal;
expand: true;
children: [ "listview", "dummy" ];
background-color: transparent;
}
listview {
margin: 12px 0 0;
lines: 8;
columns: 1;
fixed-height: false;
layout: horizontal;
horizontal-align: 0.5;
spacing: 15px ;
lines: 100;
background-color: transparent;
}
entry {
enabled: true;
width: 5em ;
expand: false;
background-color: transparent;
text-color: @fg0;
placeholder: "Suche...";
placeholder-color: @fg1;
}
prompt {
background-color: transparent;
text-color: @blue;
margin: 0 10px 0 0;
}
element {
padding: 8px 16px;
spacing: 12px;
border-radius: 10px;
padding: 0px 5px;
border-radius: 4px;
background-color: transparent;
text-color: @fg0;
}
element selected normal {
element selected {
background-color: @bg2;
text-color: @blue;
text-color: @fg0;
}
element-icon { size: 1.5em; }
element-text { text-color: inherit; vertical-align: 0.5; }
element-text {
background-color: transparent;
text-color: inherit;
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 1.0em;
}
'';
}