Skip to content

Commit a21cab5

Browse files
committed
default wayland backend
1 parent 11747c7 commit a21cab5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cccp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ autodetect_backend () {
1515
# Detect if connected via SSH https://unix.stackexchange.com/a/9607/190164
1616
if [[ -n "$SSH_CLIENT" ]] || [[ -n "$SSH_TTY" ]]; then
1717
echo osc52
18-
elif [[ -n "$WAYLAND_DISPLAY" ]] && command -v waypaste &>/dev/null; then
19-
# wayclip is better then wl-clipboard in detaching from the terminal correctly
20-
echo wayclip
2118
elif [[ -n "$WAYLAND_DISPLAY" ]] && command -v wl-paste &>/dev/null; then
19+
# wl-clipboard is better than wayclip thus it supports primary buffer
2220
echo wl-clipboard
21+
elif [[ -n "$WAYLAND_DISPLAY" ]] && command -v waypaste &>/dev/null; then
22+
# wayclip is better than wl-clipboard in detaching from the terminal correctly
23+
echo wayclip
2324
elif [[ -n "$DISPLAY" ]] && command -v xsel &>/dev/null; then
2425
# xsel is preferred over xclip, as xsel detaches from the terminal correctly
2526
echo xsel

0 commit comments

Comments
 (0)