From 92d55e266e7cf90fc49f75a88ad3b0385a3be945 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 12 Nov 2023 14:35:23 +0000 Subject: [PATCH] Add rofi custom theme back but not used yet, needs some work --- flake.nix | 2 +- home/hyprland/default.nix | 2 +- home/hyprland/{rofi.nix => rofi/default.nix} | 1 + home/hyprland/rofi/theme.rasi | 103 +++++++++++++++++++ 4 files changed, 106 insertions(+), 2 deletions(-) rename home/hyprland/{rofi.nix => rofi/default.nix} (97%) create mode 100644 home/hyprland/rofi/theme.rasi diff --git a/flake.nix b/flake.nix index a411aa68..ae857d02 100644 --- a/flake.nix +++ b/flake.nix @@ -121,7 +121,7 @@ networking = { inherit hostName; }; stylix = { autoEnable = false; - target = { + targets = { console.enable = true; lightdm.enable = true; }; diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index b2f176cc..7ab23061 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -1,7 +1,7 @@ { config, lib, pkgs, ... }: { - imports = [ ./waybar/default.nix ./gtk.nix ./mako.nix ./rofi.nix ]; + imports = [ ./waybar/default.nix ./rofi/default.nix ./gtk.nix ./mako.nix ]; services = { avizo.enable = true; syncthing.enable = true; diff --git a/home/hyprland/rofi.nix b/home/hyprland/rofi/default.nix similarity index 97% rename from home/hyprland/rofi.nix rename to home/hyprland/rofi/default.nix index 76db909c..63ddb5bf 100644 --- a/home/hyprland/rofi.nix +++ b/home/hyprland/rofi/default.nix @@ -39,5 +39,6 @@ in { display-calc = " 󰪚 Calculator "; display-combi = " 󰛡 Combi "; }; + # theme = ./theme.rasi; }; } diff --git a/home/hyprland/rofi/theme.rasi b/home/hyprland/rofi/theme.rasi new file mode 100644 index 00000000..ce7e2f0b --- /dev/null +++ b/home/hyprland/rofi/theme.rasi @@ -0,0 +1,103 @@ +* { + width: 75%; + font: "Fira Sans 18"; +} + +element-text, element-icon , mode-switcher { + background-color: inherit; + text-color: inherit; +} + +window { + height: 75%; + border: 1px; + border-radius: 10px; + border-color: #bb9af7; + background-color: alpha(#1a1b26, 0.8); +} + +mainbox { + background-color: #1a1b26; +} + +inputbar { + children: [prompt,entry]; + background-color: #1a1b26; + border-radius: 5px; + padding: 2px; +} + +prompt { + background-color: #c0caf5; + padding: 6px; + text-color: #1a1b26; + border-radius: 3px; + margin: 20px 0px 0px 20px; +} + +textbox-prompt-colon { + expand: false; + str: ":"; +} + +entry { + padding: 6px; + margin: 20px 0px 0px 10px; + text-color: #c0caf5; + background-color: #1a1b26; +} + +listview { + border: 0px 0px 0px; + padding: 6px 0px 0px; + margin: 10px 0px 0px 20px; + columns: 2; + lines: 5; + background-color: #1a1b26; +} + +element { + padding: 5px; + background-color: #1a1b26; + text-color: #c0caf5; +} + +element-icon { + size: 25px; +} + +element selected { + background-color: #414868; + text-color: #bb9af7; +} + +mode-switcher { + spacing: 5%; + } + +button { + padding: 10px; + background-color: #1a1b26; + text-color: #a9b1d6; + vertical-align: 0.5; + horizontal-align: 0.5; +} + +button selected { + background-color: #1a1b26; + text-color: #7aa2f7; +} + +message { + background-color: #1a1b26; + margin: 2px; + padding: 2px; + border-radius: 5px; +} + +textbox { + padding: 6px; + margin: 20px 0px 0px 20px; + text-color: #7aa2f7; + background-color: #1a1b26; +}