From f2875caabb152b47d619098561bc63be922e6ad8 Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Tue, 20 May 2025 17:50:49 -0700 Subject: [PATCH] [Rofi] Fixes rendering and updates styles --- .../features/rofi/config/colors/tokyonight.rasi | 2 +- .../features/rofi/config/launcher/colors.rasi | 2 +- .../features/rofi/config/launcher/style.rasi | 8 ++++---- .../features/rofi/config/powermenu/colors.rasi | 2 +- .../features/rofi/config/powermenu/style.rasi | 4 ++-- system/hosts/altair/drew.nix | 12 +++++++++--- 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/home-manager/features/rofi/config/colors/tokyonight.rasi b/home-manager/features/rofi/config/colors/tokyonight.rasi index 1145cbd..ccaa94f 100644 --- a/home-manager/features/rofi/config/colors/tokyonight.rasi +++ b/home-manager/features/rofi/config/colors/tokyonight.rasi @@ -7,7 +7,7 @@ **/ * { - background: #15161EFF; + background: #15161ECC; background-alt: #1A1B26FF; foreground: #C0CAF5FF; selected: #33467CFF; diff --git a/home-manager/features/rofi/config/launcher/colors.rasi b/home-manager/features/rofi/config/launcher/colors.rasi index 103ad63..e021107 100644 --- a/home-manager/features/rofi/config/launcher/colors.rasi +++ b/home-manager/features/rofi/config/launcher/colors.rasi @@ -15,4 +15,4 @@ /* Import color-scheme from `colors` directory */ -@import "~/.config/rofi/colors/onedark.rasi" +@import "~/.config/rofi/colors/tokyonight.rasi" diff --git a/home-manager/features/rofi/config/launcher/style.rasi b/home-manager/features/rofi/config/launcher/style.rasi index 598fdd1..2ececa9 100644 --- a/home-manager/features/rofi/config/launcher/style.rasi +++ b/home-manager/features/rofi/config/launcher/style.rasi @@ -10,8 +10,8 @@ /*****----- Configuration -----*****/ configuration { modi: "drun"; - show-icons: true; - display-drun: ""; + show-icons: true; + display-drun: ""; drun-display-format: "{name}"; } @@ -32,8 +32,8 @@ window { enabled: true; margin: 0px; padding: 0px; - border: 0px solid; - border-radius: 0px; + border: 2px solid; + border-radius: 5px; border-color: @selected; background-color: @background; cursor: "default"; diff --git a/home-manager/features/rofi/config/powermenu/colors.rasi b/home-manager/features/rofi/config/powermenu/colors.rasi index 103ad63..e021107 100644 --- a/home-manager/features/rofi/config/powermenu/colors.rasi +++ b/home-manager/features/rofi/config/powermenu/colors.rasi @@ -15,4 +15,4 @@ /* Import color-scheme from `colors` directory */ -@import "~/.config/rofi/colors/onedark.rasi" +@import "~/.config/rofi/colors/tokyonight.rasi" diff --git a/home-manager/features/rofi/config/powermenu/style.rasi b/home-manager/features/rofi/config/powermenu/style.rasi index 2af0333..d2a0301 100644 --- a/home-manager/features/rofi/config/powermenu/style.rasi +++ b/home-manager/features/rofi/config/powermenu/style.rasi @@ -35,8 +35,8 @@ window { enabled: true; margin: 0px; padding: 0px; - border: 0px solid; - border-radius: 0px; + border: 2px solid; + border-radius: 5px; border-color: @selected; cursor: "default"; background-color: @background; diff --git a/system/hosts/altair/drew.nix b/system/hosts/altair/drew.nix index 42dfb86..b384515 100644 --- a/system/hosts/altair/drew.nix +++ b/system/hosts/altair/drew.nix @@ -40,7 +40,13 @@ in }; # Set up eww here because it's based on the monitor configuration - wayland.windowManager.hyprland.settings.exec-once = [ - "sleep 2 && eww open-many primary-statusbar secondary-statusbar launcher" - ]; + wayland.windowManager.hyprland.settings = { + exec-once = [ + "sleep 2 && eww open-many primary-statusbar secondary-statusbar launcher" + ]; + windowrulev2 = [ + # Rofi doesn't center properly when I have the two asymetric monitors + "center, class:Rofi" + ]; + }; }