clipedit.sh: use alacritty
This commit is contained in:
parent
93c2025d78
commit
842951379a
@ -3,8 +3,16 @@
|
|||||||
|
|
||||||
TMPFILE="$(mktemp)"
|
TMPFILE="$(mktemp)"
|
||||||
|
|
||||||
#xsel -b > "$TMPFILE"
|
xsel -b > "$TMPFILE"
|
||||||
st -g 60x8+0+800 -c popup-bottom-center \
|
|
||||||
-e nvim -c "set binary noeol" -c "startinsert" "$TMPFILE" -c "highlight Normal ctermbg=016"
|
newterm() {
|
||||||
cat "$TMPFILE" | xsel -ib
|
alacritty msg create-window "$@" ||
|
||||||
rm "$TMPFILE"
|
alacritty "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
newterm \
|
||||||
|
-o 'window.class = { instance = "popup-bottom-center", general="popup-bottom-center" }' \
|
||||||
|
-o 'window.opacity = 1.0' \
|
||||||
|
-o 'window.dimensions = { columns = 84, lines = 10 }' \
|
||||||
|
-o 'window.position = { x = 0, y = 1200 }' \
|
||||||
|
-e sh -c "xsel -b > '$TMPFILE'; nvim -c 'set binary noeol textwidth=80' '$TMPFILE' && cat '$TMPFILE' | xsel -ib && rm '$TMPFILE'"
|
||||||
|
Loading…
Reference in New Issue
Block a user