diff options
| author | Matěj Cepl <mcepl@cepl.eu> | 2022-12-23 19:10:03 +0100 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2024-03-09 18:47:10 -0700 |
| commit | 3d1c3c15ccc4c1bcaa7a725a6671d85a0ce12ebd (patch) | |
| tree | d03a32e196e584a34d80b53ca5bd64cc31861191 | |
| parent | 004800e348cba1bf5f4536876b4e0eafbcf1ea58 (diff) | |
| download | vis-3d1c3c15ccc4c1bcaa7a725a6671d85a0ce12ebd.tar.gz vis-3d1c3c15ccc4c1bcaa7a725a6671d85a0ce12ebd.tar.xz | |
Support selection of primary or regular clipboard (wayclip)
wayclip has since commit
https://git.sr.ht/~noocsharp/wayclip/commit/594776c24862 support
for the choice between using primary or regular clipboard. Which
means we can put its support on the same level as other clipboard
utilities.
| -rwxr-xr-x | vis-clipboard | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/vis-clipboard b/vis-clipboard index fd9cf7b..29b0729 100755 --- a/vis-clipboard +++ b/vis-clipboard @@ -101,11 +101,19 @@ vc_wlclipboard_paste() { } vc_wayclip_copy() { - waycopy + if [ "$sel" = "primary" ]; then + waycopy -p + else + waycopy + fi } vc_wayclip_paste() { - waypaste + if [ "$sel" = "primary" ]; then + waypaste -p + else + waypaste + fi } vc_xsel_copy() { |
