From 6fe2d22fc88c909484884119f67b6e437c23e7c8 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sun, 21 Apr 2024 14:00:51 +0200 Subject: [PATCH] update rofi-calc --- nixos/homes/palo/i3.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/nixos/homes/palo/i3.nix b/nixos/homes/palo/i3.nix index fedc0d2..b883f20 100644 --- a/nixos/homes/palo/i3.nix +++ b/nixos/homes/palo/i3.nix @@ -3,6 +3,8 @@ let cfg = config.xsession.windowManager.i3; + rofi = pkgs.rofi.override { plugins = [ pkgs.rofi-emoji pkgs.rofi-calc pkgs.xdotool ]; }; + backgroundCommand = pkgs.writers.writeDash "background" '' ${pkgs.xorg.xrandr}/bin/xrandr | grep " connected" | grep "primary" | \ ${pkgs.gnused}/bin/sed -E "s/primary //" | \ @@ -37,6 +39,7 @@ in fixXhost pkgs.autorandr pkgs.polygon-art.polygon-art + pkgs.xdotool # needed for rofi-emoji ]; @@ -258,7 +261,7 @@ in set -o pipefail ${pkgs.i3}/bin/i3-msg -t get_workspaces | \ ${pkgs.jq}/bin/jq --raw-output '.[] | .name' | \ - ${pkgs.rofi}/bin/rofi -dmenu -p 'Select Workspace ' | \ + ${rofi}/bin/rofi -dmenu -p 'Select Workspace ' | \ while read line do ${pkgs.i3}/bin/i3-msg workspace "$line" @@ -274,7 +277,7 @@ in set -o pipefail ${pkgs.i3}/bin/i3-msg -t get_workspaces | \ ${pkgs.jq}/bin/jq --raw-output '.[] | .name' | \ - ${pkgs.rofi}/bin/rofi -dmenu -p 'Move to Workspace ' | \ + ${rofi}/bin/rofi -dmenu -p 'Move to Workspace ' | \ while read line do ${pkgs.i3}/bin/i3-msg move container to workspace "$line" @@ -283,7 +286,7 @@ in in "exec ${script}"; - "${cfg.config.modifier}+space" = "exec ${pkgs.rofi}/bin/rofi -show drun -display-drun ''"; + "${cfg.config.modifier}+space" = "exec ${rofi}/bin/rofi -show drun -display-drun ''"; "${cfg.config.modifier}+Shift+c" = "reload"; "${cfg.config.modifier}+Shift+r" = "restart"; "${cfg.config.modifier}+Shift+e" = "exec i3-nagbar -t warning -m 'Do you want to exit i3?' -b 'Yes' 'i3-msg exit'"; @@ -481,9 +484,10 @@ in programs.rofi = { enable = true; cycle = true; + package = rofi; # pass.enable = true; extraConfig = { - modi = "drun"; + modi = "drun,calc,emoji,combi"; show-icons = true; terminal = "alacritty"; };