theme for rofi

This commit is contained in:
zoe 2023-02-22 17:32:48 +01:00
parent a30c27b326
commit 36c5004538
4 changed files with 42 additions and 20 deletions

View File

@ -1,7 +1,7 @@
{ config, pkgs, ... }: { { config, pkgs, ... }: {
home-manager.users.zoe.programs.fish = { home-manager.users.zoe.programs.fish = {
interactiveShellInit = '' interactiveShellInit = ''
set pure_color_mute ${config.color.blue}
''; '';
enable = true; enable = true;
plugins = [{ plugins = [{

View File

@ -1,22 +1,21 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let let
nvimCustom = import ./nvim/settings.nix; nvimCustom = import ./nvim/settings.nix;
rofiCustom = import ./rofi/settings.nix;
dunstCustom = import ./dunst/settings.nix; dunstCustom = import ./dunst/settings.nix;
helixCustom = import ./helix/settings.nix; helixCustom = import ./helix/settings.nix;
in { in {
imports = [ imports = [
./fish/settings.nix ./fish/settings.nix
./variables.nix ./variables.nix
i3/settings.nix ./i3/settings.nix
kitty/settings.nix ./kitty/settings.nix
i3/i3status-rust.nix ./rofi/settings.nix
./i3/i3status-rust.nix
]; ];
home-manager.users.zoe = { home-manager.users.zoe = {
home.stateVersion = "22.11"; home.stateVersion = "22.11";
programs.neovim = nvimCustom pkgs; programs.neovim = nvimCustom pkgs;
programs.rofi = rofiCustom pkgs;
programs.helix = helixCustom pkgs; programs.helix = helixCustom pkgs;
services.dunst = dunstCustom pkgs; services.dunst = dunstCustom pkgs;

View File

@ -28,9 +28,7 @@
window_border_width = 0; window_border_width = 0;
window_margin_width = 0; window_margin_width = 0;
window_padding_width = 0; window_padding_width = 0;
background_opacity = "0.9";
color0 = config.color.black; color0 = config.color.black;
color8 = config.color.black_dull; color8 = config.color.black_dull;
color1 = config.color.red; color1 = config.color.red;

View File

@ -1,13 +1,38 @@
{ pkgs, ... }: { pkgs, config, ... }:
{ let
enable = true; inherit (config.home-manager.users.zoe.lib.formats.rasi) mkLiteral;
plugins = with pkgs; [ rofi-theme = {
rofi-calc "*" = {
rofi-power-menu background-color = mkLiteral config.color.background;
]; text-color = mkLiteral config.color.foreground;
theme = "gruvbox-light-hard";
font = "CaskaydiaCove Nerd Font 12"; margin = 4;
extraConfig = { padding = 4;
modi = "drun,ssh,calc,window"; spacing = 4;
};
"window" = {
width = mkLiteral "66%";
height = mkLiteral "66%";
border = mkLiteral "4px";
border-color = mkLiteral config.color.green;
};
"element-text" = {
highlight = mkLiteral "underline ${config.color.green}";
};
"element selected" = {
border = mkLiteral "4px";
border-color = mkLiteral config.color.green;
};
};
in {
home-manager.users.zoe.programs.rofi = {
enable = true;
plugins = with pkgs; [ rofi-calc rofi-power-menu ];
theme = rofi-theme;
font = "${config.font.regular} 16";
extraConfig = { modi = "drun,ssh,calc,window"; };
}; };
} }