From 83eb035fa6357ec73a6ab60e06b41b1aca0bae9b Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 6 Nov 2023 23:06:06 -0600 Subject: [PATCH] feat: rofi enhancements --- modules/home/desktop/addons/rofi/default.nix | 22 +++++++++++++++++++- modules/home/desktop/hyprland/binds.nix | 3 ++- modules/home/desktop/hyprland/variables.nix | 3 ++- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/modules/home/desktop/addons/rofi/default.nix b/modules/home/desktop/addons/rofi/default.nix index 7f6dcd00e..3330d08c8 100644 --- a/modules/home/desktop/addons/rofi/default.nix +++ b/modules/home/desktop/addons/rofi/default.nix @@ -17,9 +17,29 @@ in }; config = mkIf cfg.enable { + + home.packages = with pkgs; [ + wtype + ]; + programs.rofi = { enable = true; - package = pkgs.rofi; + package = pkgs.rofi-wayland; + + font = "Liga SFMono Nerd Font 14"; + location = "center"; + theme = "catppuccin"; + + pass = { + enable = true; + package = pkgs.rofi-pass-wayland; + }; + + plugins = with pkgs; [ + rofi-calc + rofi-emoji + rofi-top + ]; }; xdg.configFile = { diff --git a/modules/home/desktop/hyprland/binds.nix b/modules/home/desktop/hyprland/binds.nix index 40d2e268f..0d43650cb 100644 --- a/modules/home/desktop/hyprland/binds.nix +++ b/modules/home/desktop/hyprland/binds.nix @@ -31,7 +31,8 @@ in "$mainMod, E, exec, $term ranger" "SUPER_SHIFT, E, exec, $explorer" "$mainMod, SPACE, exec, $launcher" - "SUPER_SHIFT, SPACE, exec, $launcher_alt" + "SUPER_ALT, SPACE, exec, $launcher_alt" + "SUPER_SHIFT, SPACE, exec, $launcher_shift" "$mainMod, A, exec, $launchpad" "$mainMod, L, exec, ${getExe config.programs.swaylock.package} --grace 0 --fade-in 0" "$mainMod, T, exec, $term btop" diff --git a/modules/home/desktop/hyprland/variables.nix b/modules/home/desktop/hyprland/variables.nix index 4e2156f7b..787ef0578 100644 --- a/modules/home/desktop/hyprland/variables.nix +++ b/modules/home/desktop/hyprland/variables.nix @@ -115,7 +115,8 @@ in "$explorer" = "${getExe pkgs.xfce.thunar}"; "$music" = "${getExe pkgs.spotify}"; "$launcher" = "${getExe config.programs.rofi.package} -show drun -n"; - "$launcher_alt" = "${getExe config.programs.rofi.package} -show run -n"; + "$launcher_alt" = "${getExe config.programs.rofi.package} -show calc"; + "$launcher_shift" = "${getExe config.programs.rofi.package} -show run -n"; "$launchpad" = "${getExe config.programs.rofi.package} -show drun -config '~/.config/rofi/appmenu/rofi.rasi'"; "$looking-glass" = "${getExe pkgs.looking-glass-client}"; };