diff options
author | tv <tv@krebsco.de> | 2023-01-11 17:21:51 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2023-01-11 17:23:48 +0100 |
commit | 8284c2e42d8d111358679e2dde660c76073c25da (patch) | |
tree | a618ae6a9543d16fddd825a3863254a920f4fb37 /tv/5pkgs/simple/fzmenu/default.nix | |
parent | b4d668c8ae361ff7749e12c1eb1b7de10ee02272 (diff) |
tv fzmenu: urxvt -> alacritty
Diffstat (limited to 'tv/5pkgs/simple/fzmenu/default.nix')
-rw-r--r-- | tv/5pkgs/simple/fzmenu/default.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tv/5pkgs/simple/fzmenu/default.nix b/tv/5pkgs/simple/fzmenu/default.nix index 634d833..7e19505 100644 --- a/tv/5pkgs/simple/fzmenu/default.nix +++ b/tv/5pkgs/simple/fzmenu/default.nix @@ -1,5 +1,15 @@ { lib, pkgs, stdenv }: +let + terminal = pkgs.writeDashBin "terminal" '' + # usage: terminal COMMAND [ARGS...] + exec ${pkgs.alacritty-tv}/bin/alacritty \ + --profile=fzmenu \ + --class AlacrittyFzmenuFloat \ + -e "$@" + ''; +in + pkgs.runCommand "fzmenu" { } /* sh */ '' mkdir $out @@ -16,9 +26,9 @@ pkgs.runCommand "fzmenu" { (pkgs.pass.withExtensions (ext: [ ext.pass-otp ])) - pkgs.rxvt_unicode pkgs.utillinux pkgs.xdotool + terminal ]} substituteInPlace $out/bin/passmenu \ @@ -31,8 +41,8 @@ pkgs.runCommand "fzmenu" { (pkgs.pass.withExtensions (ext: [ ext.pass-otp ])) - pkgs.rxvt_unicode pkgs.utillinux pkgs.xdotool + terminal ]} '' |