From 0f3aa402ee48f0aa017e6ad073251b939b1eada9 Mon Sep 17 00:00:00 2001 From: Nils Walther Date: Fri, 9 Jan 2026 09:15:15 +0100 Subject: [PATCH] rofi angepasst --- home/rofi.nix | 112 ++++++++++++-------------------------- home/rofi_alternative.nix | 112 ++++++++++++++++++++++++++------------ 2 files changed, 112 insertions(+), 112 deletions(-) diff --git a/home/rofi.nix b/home/rofi.nix index e151eef..44a54e5 100644 --- a/home/rofi.nix +++ b/home/rofi.nix @@ -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 */ + + xdg.configFile."rofi/main-theme.rasi".text = '' @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"; + font: "JetBrainsMono Nerd Font 12"; + background-color: transparent; + text-color: @fg0; + 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; } ''; } diff --git a/home/rofi_alternative.nix b/home/rofi_alternative.nix index 44a54e5..e151eef 100644 --- a/home/rofi_alternative.nix +++ b/home/rofi_alternative.nix @@ -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 = '' + 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; - text-color: @fg0; - margin: 0px; - padding: 0px; - spacing: 0px; + background-color: @bg0; + border-color: @fg0; + text-color: @fg0; + 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; + } ''; }