From 9f1c7b60e700ee35f093c3764d68953c8671d4d3 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 13 Nov 2022 18:14:12 +0100 Subject: [PATCH] Better rofi --- configs/rofi/onedark.rasi | 1 + hm_modules/dunst.nix | 2 +- hm_modules/rofi.nix | 18 ++++++++++++++---- hm_modules/rofimoji.nix | 8 -------- odin/hm.nix | 1 - thor/hm.nix | 2 +- 6 files changed, 17 insertions(+), 15 deletions(-) delete mode 100644 hm_modules/rofimoji.nix diff --git a/configs/rofi/onedark.rasi b/configs/rofi/onedark.rasi index f63f4fb..535e948 100644 --- a/configs/rofi/onedark.rasi +++ b/configs/rofi/onedark.rasi @@ -17,6 +17,7 @@ blue: #6eaafb; mangenta: #d886f3; cyan: #6cdcf7; + purple: #C678DF; emphasis: #50536b; text: #dfdfdf; text-alt: #b2b2b2; diff --git a/hm_modules/dunst.nix b/hm_modules/dunst.nix index b519385..dcdcc49 100644 --- a/hm_modules/dunst.nix +++ b/hm_modules/dunst.nix @@ -2,7 +2,7 @@ let palette = pkgs.lib.rice.palette.toRGBHex pkgs.rice.colorPalette; in { - home.packages = with pkgs; [ dunst rice.font.normal.package rofi ]; + home.packages = with pkgs; [ dunst rice.font.normal.package ]; services.dunst = { enable = true; iconTheme = { diff --git a/hm_modules/rofi.nix b/hm_modules/rofi.nix index 7b759ce..5c78d02 100644 --- a/hm_modules/rofi.nix +++ b/hm_modules/rofi.nix @@ -1,11 +1,21 @@ { pkgs, ... }: { + + home.packages = with pkgs.unstable; [ + rofimoji + rofi-bluetooth + rofi-power-menu + rofi-vpn + ]; + programs.rofi = { enable = true; location = "center"; - font = "${pkgs.rice.font.monospace.name} ${ - toString pkgs.rice.font.monospace.size - }"; - extraConfig = { modi = "drun,run,ssh,window"; }; + font = "${pkgs.rice.font.monospace.name} ${toString pkgs.rice.font.monospace.size}"; + package = pkgs.unstable.rofi; + plugins = with pkgs.unstable;[ + rofi-calc + ]; + extraConfig = { modi = "drun,run,ssh,window,calc"; }; terminal = "kitty"; theme = "onedark"; }; diff --git a/hm_modules/rofimoji.nix b/hm_modules/rofimoji.nix deleted file mode 100644 index c1a6901..0000000 --- a/hm_modules/rofimoji.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ pkgs, ... }: { - home.packages = [ pkgs.rofimoji ]; - - xdg.configFile."rofimoji.rc".text = '' - action=copy - skin-tone=light - ''; -} diff --git a/odin/hm.nix b/odin/hm.nix index ee13cdd..44f14f2 100644 --- a/odin/hm.nix +++ b/odin/hm.nix @@ -159,7 +159,6 @@ ../hm_modules/polybar.nix # ../hm_modules/pro_audio.nix # ../hm_modules/pycharm.nix - ../hm_modules/rofimoji.nix ../hm_modules/rofi.nix # ../hm_modules/screen_locker.nix ../hm_modules/security.nix diff --git a/thor/hm.nix b/thor/hm.nix index ed03c82..10ba167 100644 --- a/thor/hm.nix +++ b/thor/hm.nix @@ -14,6 +14,7 @@ btop catgirl # IRC discord + dmenu docker-compose docker-machine droidcam @@ -125,7 +126,6 @@ ../hm_modules/picom.nix ../hm_modules/polybar.nix ../hm_modules/pro_audio.nix - ../hm_modules/rofimoji.nix ../hm_modules/rofi.nix # ../hm_modules/screen_locker.nix # ../hm_modules/security.nix