diff --git a/home/default.nix b/home/default.nix index 62b31bf..345701c 100644 --- a/home/default.nix +++ b/home/default.nix @@ -11,6 +11,7 @@ ./programs/tmux ./programs/dunst ./programs/kitty + ./programs/rofi ./scripts ./zsh ./packages diff --git a/home/hyprland/hyprland.nix b/home/hyprland/hyprland.nix index e973cb7..68ce5e4 100644 --- a/home/hyprland/hyprland.nix +++ b/home/hyprland/hyprland.nix @@ -95,8 +95,11 @@ bind = [ # term "$mainMod,Return,exec,$term" + # rofi - "$mainMod,D,exec,rofi -show drun" + "$mainMod,D,exec,rofi-launcher" + "$mainMod,P,exec,rofi-rbw" + # hyprland "$mainMod,Q,killactive," "CTRLALT,Delete,exit," @@ -128,7 +131,6 @@ in [ "$mainMod, ${ws}, workspace, ${toString (x + 1)}" - "ALT, ${ws}, workspace, ${toString (x + 1)}" ]) 10)); exec-once = [ "waybar" diff --git a/home/programs/rofi/config.rasi b/home/programs/rofi/config.rasi new file mode 100644 index 0000000..f4c53ed --- /dev/null +++ b/home/programs/rofi/config.rasi @@ -0,0 +1,17 @@ +configuration{ + modi: "run,drun,window"; + icon-theme: "Oranchelo"; + show-icons: true; + terminal: "alacritty"; + drun-display-format: "{icon} {name}"; + location: 0; + disable-history: false; + hide-scrollbar: true; + display-drun: "  Apps "; + display-run: "  Run "; + display-window: " 﩯 Window"; + display-Network: " 󰤨 Network"; + sidebar-mode: true; +} + +@theme "latte" diff --git a/home/programs/rofi/default.nix b/home/programs/rofi/default.nix new file mode 100644 index 0000000..33860c3 --- /dev/null +++ b/home/programs/rofi/default.nix @@ -0,0 +1,24 @@ +{ config, pkgs, ... }: { + xdg.configFile."rofi/config.rasi" = { + source = ./config.rasi; + }; + + xdg.configFile."rofi/macchiato.rasi" = { + source = pkgs.fetchFromGitHub + { + owner = "catppuccin"; + repo = "rofi"; + rev = "5350da41a11814f950c3354f090b90d4674a95ce"; + sha256 = "DNorfyl3C4RBclF2KDgwvQQwixpTwSRu7fIvihPN8JY="; + } + "/basic/.local/share/rofi/themes/catppuccin-macchiato.rasi"; + }; + xdg.configFile."rofi/latte.rasi" = { + source = pkgs.fetchFromGitHub + { + owner = "catppuccin"; + repo = "rofi"; + rev = "5350da41a11814f950c3354f090b90d4674a95ce"; + sha256 = "DNorfyl3C4RBclF2KDgwvQQwixpTwSRu7fIvihPN8JY="; + } + "/basic/.local/share/rofi/themes/catppuccin-latte.rasi"; + }; +} diff --git a/home/scripts/default.nix b/home/scripts/default.nix index cb19a86..a531a5f 100644 --- a/home/scripts/default.nix +++ b/home/scripts/default.nix @@ -3,4 +3,8 @@ source = ./hl-no-opacity.sh; executable = true; }; + home.file.".local/bin/rofi-launcher" = { + source = ./rofi-launcher.sh; + executable = true; + }; } diff --git a/home/scripts/rofi-launcher.sh b/home/scripts/rofi-launcher.sh new file mode 100644 index 0000000..2fd2466 --- /dev/null +++ b/home/scripts/rofi-launcher.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +rofi \ + -show drun \ + -modi run,drun,ssh \ + -scroll-method 0 \ + -drun-match-fields all \ + -drun-display-format "{name}" \ + -terminal kitty