#TIL that #Alacritty (the terminal) has a daemon mode. I put this in my ~/.xsess...

@rl_dane@polymaths.social

#TIL that #Alacritty (the terminal) has a daemon mode.

I put this in my ~/.xsession:

export ALACRITTY_SOCKET=/tmp/rld/alacritty-socket
[ -e "$ALACRITTY_SOCKET" ] && rm $ALACRITTY_SOCKET
alacritty --daemon --socket $ALACRITTY_SOCKET &

and this in my ~/.ctwmrc:

menu "NetBSD"
{
    "NetBSD"			f.title
    ""				f.separator
    #" Terminal"			!"uxterm &"
    " uxterm"			!"uxterm -ls &"
	" lxterminal"       !"lxterminal -l &"
	" Alacritty"        !"alacritty msg create-window &"
    ""				f.separator
(...)
#
# "evilwm" style keyboard shortcuts
#

# it is useful to be able to spawn a terminal without clicking.
"Return" = mod4     : all : !"alacritty msg create-window &"