tv fzmenu: urxvt -> alacritty
This commit is contained in:
parent
9c4a8aa82b
commit
52c5f6ee55
@ -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=$(
|
||||
|
@ -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=$(
|
||||
|
@ -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
|
||||
]}
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user