From de166231fa4954a2cdc68265da9fbaf072c0d3b1 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Mon, 14 Jul 2025 02:32:19 +0530 Subject: Added neofetch and restarting polybar on bspwm loaded. --- modules/tools/default.nix | 2 + modules/tools/neofetch/default.nix | 13 ++++++ modules/tools/rofi/default.nix | 15 +++++++ modules/tools/rofi/theme.mustache.rasi | 82 ++++++++++++++++++++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 modules/tools/neofetch/default.nix create mode 100644 modules/tools/rofi/default.nix create mode 100644 modules/tools/rofi/theme.mustache.rasi (limited to 'modules/tools') diff --git a/modules/tools/default.nix b/modules/tools/default.nix index 20b661d..631bacc 100644 --- a/modules/tools/default.nix +++ b/modules/tools/default.nix @@ -9,8 +9,10 @@ ./htop ./kitty ./lsd + ./neofetch ./neovim ./nnn + ./rofi ./zsh ]; } diff --git a/modules/tools/neofetch/default.nix b/modules/tools/neofetch/default.nix new file mode 100644 index 0000000..b9afc33 --- /dev/null +++ b/modules/tools/neofetch/default.nix @@ -0,0 +1,13 @@ +{ config, lib, pkgs, ... }: + +{ + options.tools.neofetch = { + enable = lib.mkEnableOption "Enables neofetch."; + }; + + config = lib.mkIf config.tools.neofetch.enable { + home.packages = with pkgs; [ + neofetch + ]; + }; +} diff --git a/modules/tools/rofi/default.nix b/modules/tools/rofi/default.nix new file mode 100644 index 0000000..9f2bcd2 --- /dev/null +++ b/modules/tools/rofi/default.nix @@ -0,0 +1,15 @@ +{ pkgs, lib, config, ... }: + +{ + options.tools.rofi = { + enable = lib.mkEnableOption "Enables rofi."; + }; + + config = lib.mkIf config.tools.rofi.enable { + programs.rofi.enable = true; + programs.rofi.font = "${config.fonts.normal} ${toString config.fonts.size}"; + # programs.rofi.theme = config.scheme { + # template = builtins.readFile ./theme.mustache.rasi; + # }; + }; +} diff --git a/modules/tools/rofi/theme.mustache.rasi b/modules/tools/rofi/theme.mustache.rasi new file mode 100644 index 0000000..02cdaf3 --- /dev/null +++ b/modules/tools/rofi/theme.mustache.rasi @@ -0,0 +1,82 @@ +configuration { + drun { + display-name: " "; + } + + run { + display-name: " "; + } + + window { + display-name: " "; + } + + ssh { + display-name: " "; + } + + timeout { + delay: 10; + action: "kb-cancel"; + } +} + +* { + border: 1; + margin: 0; + padding: 0; + spacing: 0; + + bg: #{{base00-hex}}; + bg-alt: #{{base01-hex}}; + fg: #{{base07-hex}}; + fg-alt: #{{base03-hex}}; + + background-color: @bg; + text-color: @fg; +} + +window { + transparency: "real"; + border-color: #{{base03-hex}}; +} + +mainbox { + children: [inputbar, listview]; +} + +inputbar { + background-color: @bg-alt; + children: [prompt, entry]; +} + +entry { + background-color: inherit; + padding: 12px 3px; +} + +prompt { + background-color: inherit; + padding: 12px; +} + +listview { + lines: 8; +} + +element { + children: [element-text]; +} + +element-icon { + padding: 10px 10px; +} + +element-text { + padding: 10px 10px; + text-color: @fg-alt; +} + +element-text selected { + text-color: @fg; +} -- cgit v1.2.3