Fix scratch terminal launcher

This commit is contained in:
Henrik Lissner 2020-02-02 17:22:31 -05:00
parent 074ed153bf
commit ab30b1f15f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -17,12 +17,12 @@ elif command -v alacritty >/dev/null; then
elif command -v urxvt >/dev/null; then elif command -v urxvt >/dev/null; then
urxvt -name $SCRID \ urxvt -name $SCRID \
-geometry 100x26 \ -geometry 100x26 \
-e $SHELL -c '${tmux}/bin/tmux new-session -A -s scratch -n scratch' -e $SHELL -c "$CMD"
elif command -v xst >/dev/null; then elif command -v xst >/dev/null; then
xst -t $SCRID -n $SCRID -c $SCRID \ xst -t $SCRID -n $SCRID -c $SCRID \
-f "$(xrdb -query | grep 'st-scratch\.font' | cut -f2)" \ -f "$(xrdb -query | grep 'scratch\.font' | cut -f2)" \
-g 100x26 \ -g 100x26 \
-e $SHELL -e $SHELL -c "$CMD"
else else
>&2 echo "No shell to launch the scratch terminal with" >&2 echo "No shell to launch the scratch terminal with"
exit 1 exit 1