rofi angepasst
This commit is contained in:
+36
-76
@@ -7,107 +7,67 @@
|
|||||||
extraConfig = {
|
extraConfig = {
|
||||||
modes = "window,run,ssh,drun";
|
modes = "window,run,ssh,drun";
|
||||||
show-icons = true;
|
show-icons = true;
|
||||||
drun-display-format = "{name}";
|
|
||||||
display-drun = "Apps:";
|
display-drun = "Apps:";
|
||||||
terminal = "alacritty";
|
terminal = "alacritty";
|
||||||
};
|
};
|
||||||
theme = "${config.home.homeDirectory}/.config/rofi/main-theme.rasi";
|
theme = "${config.home.homeDirectory}/.config/rofi/main-theme.rasi";
|
||||||
};
|
};
|
||||||
xdg.configFile."rofi/main-theme.rasi".text = ''
|
|
||||||
/* Importiert die von Matugen generierten Farben */
|
xdg.configFile."rofi/main-theme.rasi".text = ''
|
||||||
@import "${config.home.homeDirectory}/.config/rofi/matugen-colors.rasi"
|
@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;
|
font: "JetBrainsMono Nerd Font 12";
|
||||||
border-color: @fg0;
|
background-color: transparent;
|
||||||
text-color: @fg0;
|
text-color: @fg0;
|
||||||
font: "JetBrainsMono Nerd Font 11";
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
spacing: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
window {
|
window {
|
||||||
width: 100% ;
|
location: center;
|
||||||
padding: 4px ;
|
width: 680;
|
||||||
anchor: north;
|
border-radius: 20px;
|
||||||
location: north;
|
border: 2px;
|
||||||
y-offset: -30px;
|
border-color: @blue; /* Hier wird jetzt die Matugen-Farbe genutzt */
|
||||||
children: [ "horibox" ];
|
|
||||||
background-color: @bg0;
|
background-color: @bg0;
|
||||||
}
|
}
|
||||||
|
|
||||||
horibox {
|
mainbox { padding: 12px; }
|
||||||
orientation: horizontal;
|
|
||||||
children: [ "container-left", "container-right" ];
|
inputbar {
|
||||||
background-color: transparent;
|
background-color: @bg1;
|
||||||
|
border-color: @bg3;
|
||||||
|
border-radius: 12px;
|
||||||
|
border: 2px;
|
||||||
|
padding: 8px 16px;
|
||||||
|
spacing: 8px;
|
||||||
|
children: [ prompt, entry ];
|
||||||
}
|
}
|
||||||
|
|
||||||
container-left {
|
prompt { text-color: @blue; }
|
||||||
orientation: horizontal;
|
entry { placeholder: "Search..."; placeholder-color: @fg2; text-color: @fg0; }
|
||||||
expand: true;
|
|
||||||
children: [ "dummy", "inputbar" ];
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
container-right {
|
|
||||||
orientation: horizontal;
|
|
||||||
expand: true;
|
|
||||||
children: [ "listview", "dummy" ];
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
listview {
|
listview {
|
||||||
layout: horizontal;
|
margin: 12px 0 0;
|
||||||
horizontal-align: 0.5;
|
lines: 8;
|
||||||
spacing: 15px ;
|
columns: 1;
|
||||||
lines: 100;
|
fixed-height: false;
|
||||||
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 {
|
element {
|
||||||
padding: 0px 5px;
|
padding: 8px 16px;
|
||||||
border-radius: 4px;
|
spacing: 12px;
|
||||||
background-color: transparent;
|
border-radius: 10px;
|
||||||
text-color: @fg0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
element selected {
|
element selected normal {
|
||||||
background-color: @bg2;
|
background-color: @bg2;
|
||||||
text-color: @fg0;
|
text-color: @blue;
|
||||||
}
|
}
|
||||||
|
|
||||||
element-text {
|
element-icon { size: 1.5em; }
|
||||||
background-color: transparent;
|
element-text { text-color: inherit; vertical-align: 0.5; }
|
||||||
text-color: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-icon {
|
|
||||||
background-color: transparent;
|
|
||||||
text-color: inherit;
|
|
||||||
size: 1.0em;
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
+76
-36
@@ -7,67 +7,107 @@
|
|||||||
extraConfig = {
|
extraConfig = {
|
||||||
modes = "window,run,ssh,drun";
|
modes = "window,run,ssh,drun";
|
||||||
show-icons = true;
|
show-icons = true;
|
||||||
|
drun-display-format = "{name}";
|
||||||
display-drun = "Apps:";
|
display-drun = "Apps:";
|
||||||
terminal = "alacritty";
|
terminal = "alacritty";
|
||||||
};
|
};
|
||||||
theme = "${config.home.homeDirectory}/.config/rofi/main-theme.rasi";
|
theme = "${config.home.homeDirectory}/.config/rofi/main-theme.rasi";
|
||||||
};
|
};
|
||||||
|
xdg.configFile."rofi/main-theme.rasi".text = ''
|
||||||
xdg.configFile."rofi/main-theme.rasi".text = ''
|
/* Importiert die von Matugen generierten Farben */
|
||||||
@import "${config.home.homeDirectory}/.config/rofi/matugen-colors.rasi"
|
@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: @bg0;
|
||||||
background-color: transparent;
|
border-color: @fg0;
|
||||||
text-color: @fg0;
|
text-color: @fg0;
|
||||||
margin: 0px;
|
font: "JetBrainsMono Nerd Font 11";
|
||||||
padding: 0px;
|
|
||||||
spacing: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
window {
|
window {
|
||||||
location: center;
|
width: 100% ;
|
||||||
width: 680;
|
padding: 4px ;
|
||||||
border-radius: 20px;
|
anchor: north;
|
||||||
border: 2px;
|
location: north;
|
||||||
border-color: @blue; /* Hier wird jetzt die Matugen-Farbe genutzt */
|
y-offset: -30px;
|
||||||
|
children: [ "horibox" ];
|
||||||
background-color: @bg0;
|
background-color: @bg0;
|
||||||
}
|
}
|
||||||
|
|
||||||
mainbox { padding: 12px; }
|
horibox {
|
||||||
|
orientation: horizontal;
|
||||||
inputbar {
|
children: [ "container-left", "container-right" ];
|
||||||
background-color: @bg1;
|
background-color: transparent;
|
||||||
border-color: @bg3;
|
|
||||||
border-radius: 12px;
|
|
||||||
border: 2px;
|
|
||||||
padding: 8px 16px;
|
|
||||||
spacing: 8px;
|
|
||||||
children: [ prompt, entry ];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt { text-color: @blue; }
|
container-left {
|
||||||
entry { placeholder: "Search..."; placeholder-color: @fg2; text-color: @fg0; }
|
orientation: horizontal;
|
||||||
|
expand: true;
|
||||||
|
children: [ "dummy", "inputbar" ];
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
container-right {
|
||||||
|
orientation: horizontal;
|
||||||
|
expand: true;
|
||||||
|
children: [ "listview", "dummy" ];
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
listview {
|
listview {
|
||||||
margin: 12px 0 0;
|
layout: horizontal;
|
||||||
lines: 8;
|
horizontal-align: 0.5;
|
||||||
columns: 1;
|
spacing: 15px ;
|
||||||
fixed-height: false;
|
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 {
|
element {
|
||||||
padding: 8px 16px;
|
padding: 0px 5px;
|
||||||
spacing: 12px;
|
border-radius: 4px;
|
||||||
border-radius: 10px;
|
background-color: transparent;
|
||||||
|
text-color: @fg0;
|
||||||
}
|
}
|
||||||
|
|
||||||
element selected normal {
|
element selected {
|
||||||
background-color: @bg2;
|
background-color: @bg2;
|
||||||
text-color: @blue;
|
text-color: @fg0;
|
||||||
}
|
}
|
||||||
|
|
||||||
element-icon { size: 1.5em; }
|
element-text {
|
||||||
element-text { text-color: inherit; vertical-align: 0.5; }
|
background-color: transparent;
|
||||||
|
text-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-icon {
|
||||||
|
background-color: transparent;
|
||||||
|
text-color: inherit;
|
||||||
|
size: 1.0em;
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user