tv fzmenu: urxvt -> alacritty

This commit is contained in:
tv 2023-01-11 17:21:51 +01:00
parent 9c4a8aa82b
commit 52c5f6ee55
3 changed files with 14 additions and 4 deletions

View File

@ -6,7 +6,7 @@ set -efu
case ${FZMENU_PHASE-0} in
0)
export FZMENU_PHASE=1
exec setsid -f urxvt -name fzmenu-urxvt -e dash "$0"
exec setsid -f terminal dash "$0"
;;
1)
if result=$(

View File

@ -6,7 +6,7 @@ set -efu
case ${FZMENU_PHASE-0} in
0)
export FZMENU_PHASE=1
exec setsid -f urxvt -name fzmenu-urxvt -e dash "$0"
exec setsid -f terminal dash "$0"
;;
1)
if result=$(

View File

@ -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
]}
''