From 81477dcdaa93e2cb2cb35de91d8affefc4b39fd1 Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Mon, 15 Jan 2024 11:33:36 -0600 Subject: [PATCH] Rofi is being improved --- config/files.nix | 20 +++++++ config/{ => files}/emoji | 0 config/{ => files}/face.jpg | Bin config/{rofi => files}/rofi.jpg | Bin config/rofi.nix | 89 ++++++++++++++++++++++++++++++++ config/rofi/config.rasi | 81 ----------------------------- home.nix | 24 +-------- 7 files changed, 111 insertions(+), 103 deletions(-) create mode 100644 config/files.nix rename config/{ => files}/emoji (100%) rename config/{ => files}/face.jpg (100%) rename config/{rofi => files}/rofi.jpg (100%) create mode 100644 config/rofi.nix delete mode 100644 config/rofi/config.rasi diff --git a/config/files.nix b/config/files.nix new file mode 100644 index 0000000..0afdb48 --- /dev/null +++ b/config/files.nix @@ -0,0 +1,20 @@ +{ pkgs, config, ... }: + +{ + # Place Files Inside Home Directory + home.file.".config/zaney-stinger.mov".source = ./media/zaney-stinger.mov; + home.file.".emoji".source = ./config/files/emoji; + home.file.".face".source = ./config/files/face.jpg; + home.file.".config/pipewire/pipewire.conf".source = ./config/pipewire/pipewire.conf; + home.file."Pictures/Wallpapers" = { + source = ./media/Wallpapers; + recursive = true; + }; + home.file.".local/share/fonts" = { + source = ./fonts; + recursive = true; + }; + home.file.".config/swaync" = { + source = ./config/swaync; + recursive = true; + }; diff --git a/config/emoji b/config/files/emoji similarity index 100% rename from config/emoji rename to config/files/emoji diff --git a/config/face.jpg b/config/files/face.jpg similarity index 100% rename from config/face.jpg rename to config/files/face.jpg diff --git a/config/rofi/rofi.jpg b/config/files/rofi.jpg similarity index 100% rename from config/rofi/rofi.jpg rename to config/files/rofi.jpg diff --git a/config/rofi.nix b/config/rofi.nix new file mode 100644 index 0000000..4742b98 --- /dev/null +++ b/config/rofi.nix @@ -0,0 +1,89 @@ +{ pkgs, config, ... }: + +{ + home.file.".config/rofi/config.rasi".text = '' + @theme "/dev/null" + + * { + bg: #181E27; + background-color: @bg; + } + + configuration { + show-icons: true; + icon-theme: "Papirus"; + location: 0; + font: "JetBrainsMono Nerd Font 12"; + display-drun: "Launch:"; + } + + window { + width: 35%; + transparency: "real"; + orientation: vertical; + border-color: #74adc0; + } + + mainbox { + children: [inputbar, listview]; + } + + + // ELEMENT + // ----------------------------------- + + element { + padding: 4 12; + text-color: #EFE7DD; + } + + element selected { + background-color: #74adc0; + } + + element-text { + background-color: inherit; + text-color: inherit; + } + + element-icon { + size: 16 px; + background-color: inherit; + padding: 0 6 0 0; + alignment: vertical; + } + + listview { + columns: 2; + lines: 9; + padding: 8 0; + fixed-height: true; + fixed-columns: true; + fixed-lines: true; + border: 0 10 6 10; + } + + // INPUT BAR + //------------------------------------------------ + + entry { + text-color: #EFE7DD; + padding: 10 10 0 0; + margin: 0 -2 0 0; + } + + inputbar { + background-image: url("~/.config/rofi/rofi.jpg", width); + padding: 180 0 0; + margin: 0 0 0 0; + } + + prompt { + text-color: #aaffaa; + padding: 10 6 0 10; + margin: 0 -2 0 0; + } + ''; + + home.file.".config/rofi/rofi.jpg".source = ./files/rofi.png; +} diff --git a/config/rofi/config.rasi b/config/rofi/config.rasi deleted file mode 100644 index 5340917..0000000 --- a/config/rofi/config.rasi +++ /dev/null @@ -1,81 +0,0 @@ -@theme "/dev/null" - -* { - bg: #181E27; - background-color: @bg; -} - -configuration { - show-icons: true; - icon-theme: "Papirus"; - location: 0; - font: "JetBrainsMono Nerd Font 12"; - display-drun: "Launch:"; -} - -window { - width: 35%; - transparency: "real"; - orientation: vertical; - border-color: #74adc0; -} - -mainbox { - children: [inputbar, listview]; -} - - -// ELEMENT -// ----------------------------------- - -element { - padding: 4 12; - text-color: #EFE7DD; -} - -element selected { - background-color: #74adc0; -} - -element-text { - background-color: inherit; - text-color: inherit; -} - -element-icon { - size: 16 px; - background-color: inherit; - padding: 0 6 0 0; - alignment: vertical; -} - -listview { - columns: 2; - lines: 9; - padding: 8 0; - fixed-height: true; - fixed-columns: true; - fixed-lines: true; - border: 0 10 6 10; -} - -// INPUT BAR -//------------------------------------------------ - -entry { - text-color: #EFE7DD; - padding: 10 10 0 0; - margin: 0 -2 0 0; -} - -inputbar { - background-image: url("~/.config/rofi/rofi.jpg", width); - padding: 180 0 0; - margin: 0 0 0 0; -} - -prompt { - text-color: #aaffaa; - padding: 10 6 0 10; - margin: 0 -2 0 0; -} diff --git a/home.nix b/home.nix index 63fcfa0..4aa6351 100644 --- a/home.nix +++ b/home.nix @@ -16,31 +16,11 @@ ./config/neofetch.nix ./config/hyprland.nix ./config/kitty.nix + ./config/rofi.nix ./config/vim.nix + ./config/files.nix ]; - # Place Files Inside Home Directory - home.file.".config/zaney-stinger.mov".source = ./media/zaney-stinger.mov; - home.file.".config/pipewire/pipewire.conf".source = ./config/pipewire/pipewire.conf; - home.file.".emoji".source = ./config/emoji; - home.file.".face".source = ./config/face.jpg; - home.file."Pictures/Wallpapers" = { - source = ./media/Wallpapers; - recursive = true; - }; - home.file.".local/share/fonts" = { - source = ./fonts; - recursive = true; - }; - home.file.".config/rofi" = { - source = ./config/rofi; - recursive = true; - }; - home.file.".config/swaync" = { - source = ./config/swaync; - recursive = true; - }; - # Define Settings For Xresources xresources.properties = { "Xcursor.size" = 24;