Remove alacritty branch in bin/scratch
I'm pretty sure I'll never use alacritty again.
This commit is contained in:
parent
899b76576e
commit
06461716a5
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Toggle a scratch terminal window. A scratch terminal is a disposable terminal
|
||||||
|
# for one-off, quick commands that don't warrant a dedicated terminal.
|
||||||
|
|
||||||
SCRID=scratch
|
SCRID=scratch
|
||||||
CMD=${1:-'tmux new-session -A -s scratch -n scratch'}
|
CMD=${1:-'tmux new-session -A -s scratch -n scratch'}
|
||||||
focused=$(xdotool getactivewindow)
|
focused=$(xdotool getactivewindow)
|
||||||
|
@ -10,9 +13,6 @@ if [[ -n $scratch ]]; then
|
||||||
else
|
else
|
||||||
xdotool windowactivate $scratch
|
xdotool windowactivate $scratch
|
||||||
fi
|
fi
|
||||||
elif command -v alacritty >/dev/null; then
|
|
||||||
alacritty --class $SCRID \
|
|
||||||
-e $SHELL -c "$CMD"
|
|
||||||
elif command -v urxvt >/dev/null; then
|
elif command -v urxvt >/dev/null; then
|
||||||
urxvt -name $SCRID \
|
urxvt -name $SCRID \
|
||||||
-e $SHELL -c "$CMD"
|
-e $SHELL -c "$CMD"
|
||||||
|
|
Loading…
Reference in a new issue