From f533ed579c170fec39db5fd5968cb0ddaf5ed766 Mon Sep 17 00:00:00 2001 From: alejandro-angulo Date: Sat, 3 Aug 2024 23:28:45 -0700 Subject: [PATCH] Added emoji picker --- modules/home/programs/rofi/default.nix | 3 +++ modules/home/windowManagers/sway/default.nix | 2 ++ 2 files changed, 5 insertions(+) diff --git a/modules/home/programs/rofi/default.nix b/modules/home/programs/rofi/default.nix index c3d371e..f4c1617 100644 --- a/modules/home/programs/rofi/default.nix +++ b/modules/home/programs/rofi/default.nix @@ -1,6 +1,7 @@ { config, lib, + pkgs, namespace, ... }: let @@ -18,8 +19,10 @@ in { # TODO: How to ensure this font is installed? font = "Hack Nerd Font 10"; theme = "gruvbox-dark-hard"; + plugins = [pkgs.rofi-emoji]; extraConfig = { show-icons = true; + modi = "window,run,ssh,emoji"; }; }; }; diff --git a/modules/home/windowManagers/sway/default.nix b/modules/home/windowManagers/sway/default.nix index 4cba2d3..1c57a2d 100644 --- a/modules/home/windowManagers/sway/default.nix +++ b/modules/home/windowManagers/sway/default.nix @@ -17,6 +17,7 @@ # TODO: This assumes I'll be using rofi and kitty. Should make more generic. menu = "rofi -show run"; + emoji_picker = "rofi -show emoji"; terminal = "kitty"; generate_grimshot_command = target: '' @@ -185,6 +186,7 @@ in { "${modifier}+Return" = "exec ${terminal}"; "${modifier}+c" = "kill"; "${modifier}+p" = "exec ${menu}"; + "${modifier}+d" = "exec ${emoji_picker}"; "${modifier}+z" = "reload"; "${modifier}+x" = "exec swaylock";