{ config, pkgs, ... }: let rofi-launcher = pkgs.writeShellApplication { name = "rofi-launcher"; runtimeInputs = with pkgs; [ rofi ]; text = '' base=${config.xdg.configHome}/rofi rofi -show drun -theme "$base/launcher.rasi" ''; }; in { home.packages = with pkgs; [ rofi rofi-launcher ]; xdg.configFile.rofi = { source = config/rofi/config; target = "rofi"; }; services.xremap.config.keymap = [ { name = "rofi"; remap = { rightalt-g = { launch = [ "rofi-launcher" ]; }; }; } ]; }