init
This commit is contained in:
113
home/rofi.nix
Normal file
113
home/rofi.nix
Normal file
@@ -0,0 +1,113 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi;
|
||||
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;
|
||||
text-color: @fg0;
|
||||
font: "JetBrainsMono Nerd Font 11";
|
||||
}
|
||||
|
||||
window {
|
||||
width: 100% ;
|
||||
padding: 4px ;
|
||||
anchor: north;
|
||||
location: north;
|
||||
y-offset: -30px;
|
||||
children: [ "horibox" ];
|
||||
background-color: @bg0;
|
||||
}
|
||||
|
||||
horibox {
|
||||
orientation: horizontal;
|
||||
children: [ "container-left", "container-right" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
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 {
|
||||
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: 0px 5px;
|
||||
border-radius: 4px;
|
||||
background-color: transparent;
|
||||
text-color: @fg0;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @bg2;
|
||||
text-color: @fg0;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
size: 1.0em;
|
||||
}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user