File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments