1
0
mirror of https://github.com/gryf/urxvt-wrapper.git synced 2025-12-17 11:30:21 +01:00

Run urxvt in daemon mode.

This commit is contained in:
2020-11-15 18:46:13 +01:00
parent dd7225c6eb
commit 40c12d7671

View File

@@ -19,6 +19,13 @@ EXEC=''
PERLEXT="url-select,keyboard-select,font-size,color-themes" PERLEXT="url-select,keyboard-select,font-size,color-themes"
function rxvt {
urxvtc "$@"
if [ $? -eq 2 ]; then
urxvtd -q -o -f
urxvtc "$@"
fi
}
function usage { function usage {
echo "Usage: $(basename "${0}") [options]" echo "Usage: $(basename "${0}") [options]"
@@ -82,4 +89,4 @@ if [ -n "${EXEC}" ]; then
args+=("-e" "${EXEC}") args+=("-e" "${EXEC}")
fi fi
urxvt "${args[@]}" rxvt "${args[@]}"