rofi: switch to home-manager options with catppuccin macchiato theme
Replace manual xdg.configFile symlinks and fetchFromGitHub theme fetching with programs.rofi options and the catppuccin/nix flake module. Also removes unused pywal module from magicman. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
{
|
||||
imports = [
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
inputs.catppuccin.homeModules.catppuccin
|
||||
../../editor/neovim
|
||||
../../hyprland
|
||||
../../packages
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
{
|
||||
imports = [
|
||||
inputs.sops-nix.homeManagerModules.sops
|
||||
inputs.catppuccin.homeModules.catppuccin
|
||||
../../sops
|
||||
../../services/labmcp.nix
|
||||
../../editor/neovim
|
||||
@@ -28,7 +29,6 @@
|
||||
../../programs/rofi
|
||||
../../programs/obs-studio
|
||||
../../programs/vscode
|
||||
../../programs/pywal
|
||||
../../scripts
|
||||
../../scripts/batlvl.nix
|
||||
../../zsh
|
||||
|
||||
@@ -73,7 +73,6 @@ in
|
||||
[
|
||||
dunst
|
||||
hyprpaper
|
||||
rofi
|
||||
slurp
|
||||
swww
|
||||
waybar
|
||||
@@ -261,8 +260,9 @@ in
|
||||
# term
|
||||
"$mainMod,Return,exec,$term"
|
||||
# rofi
|
||||
"$mainMod,D,exec,rofi-launcher"
|
||||
"$mainMod,D,exec,rofi -show drun"
|
||||
"$mainMod,P,exec,rofi-rbw"
|
||||
"$mainMod,E,exec,rofi -show emoji"
|
||||
# hyprlock
|
||||
"$shiftMainMod,l,exec,${pkgs.hyprlock}/bin/hyprlock"
|
||||
# hyprland
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
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"
|
||||
@@ -1,27 +1,33 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
xdg.configFile."rofi/config.rasi" = {
|
||||
source = ./config.rasi;
|
||||
catppuccin.rofi = {
|
||||
enable = true;
|
||||
flavor = "macchiato";
|
||||
};
|
||||
|
||||
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";
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
terminal = "kitty";
|
||||
location = "center";
|
||||
font = "JetBrains Mono Nerd Font 12";
|
||||
plugins = [
|
||||
pkgs.rofi-emoji
|
||||
pkgs.rofi-calc
|
||||
];
|
||||
extraConfig = {
|
||||
modi = "drun,ssh,window,calc,emoji";
|
||||
matching = "fuzzy";
|
||||
show-icons = true;
|
||||
icon-theme = "Oranchelo";
|
||||
drun-display-format = "{icon} {name}";
|
||||
hide-scrollbar = true;
|
||||
disable-history = false;
|
||||
display-drun = "Apps";
|
||||
display-ssh = "SSH";
|
||||
display-window = "Window";
|
||||
display-calc = "Calc";
|
||||
display-emoji = "Emoji";
|
||||
sidebar-mode = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -7,10 +7,6 @@
|
||||
source = ./hl-no-opacity.sh;
|
||||
executable = true;
|
||||
};
|
||||
home.file.".local/bin/rofi-launcher" = {
|
||||
source = ./rofi-launcher.sh;
|
||||
executable = true;
|
||||
};
|
||||
home.file.".local/bin/randomwp" = {
|
||||
source = ./randomwp.sh;
|
||||
executable = true;
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
rofi \
|
||||
-show drun \
|
||||
-modi run,drun,ssh \
|
||||
-scroll-method 0 \
|
||||
-drun-match-fields all \
|
||||
-drun-display-format "{name}" \
|
||||
-terminal kitty
|
||||
Reference in New Issue
Block a user