Add wayland support ot pbc and pbp

This commit is contained in:
2021-05-18 17:58:24 +02:00
parent 2d866cb339
commit 6f8e1d46c7
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
#!/usr/bin/env sh
xsel --clipboard --input
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
wl-copy
else
xsel --clipboard --input
fi

View File

@ -1,2 +1,6 @@
#!/usr/bin/env sh
xsel --clipboard --output
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
wl-paste -n
else
xsel --clipboard --output
fi