| 1 |
Description: add Wayland support |
| 2 |
Slightly adapted patch from upstream pull request |
| 3 |
|
| 4 |
Origin: other, https://github.com/jetho/Hclip/pull/8/commits/394afc48ae57e9bf86c79670ef315dfe6911bf61 |
| 5 |
Bug: https://github.com/jetho/Hclip/issues/7 |
| 6 |
Forwarded: not-needed |
| 7 |
Last-Update: 2022-08-27 |
| 8 |
|
| 9 |
--- haskell-hclip-3.0.0.4.orig/System/Hclip.hs |
| 10 |
+++ haskell-hclip-3.0.0.4/System/Hclip.hs |
| 11 |
@@ -152,9 +152,11 @@ execute Windows (SetClipboard s) = |
| 12 |
|
| 13 |
-- | Determine the correct Linux command. |
| 14 |
resolveLinuxApp :: Command a -> IO String |
| 15 |
-resolveLinuxApp cmd = decode cmd <$> chooseFirstApp ["xsel", "xclip"] |
| 16 |
+resolveLinuxApp cmd = decode cmd <$> chooseFirstApp ["wl-copy", "xsel", "xclip"] |
| 17 |
where |
| 18 |
decode :: Command a -> String -> String |
| 19 |
+ decode GetClipboard "wl-copy" = "wl-paste --no-newline" |
| 20 |
+ decode (SetClipboard _) "wl-copy" = "wl-copy" |
| 21 |
decode GetClipboard "xsel" = "xsel -b -o" |
| 22 |
decode (SetClipboard _) "xsel" = "xsel -b -i" |
| 23 |
decode GetClipboard "xclip" = "xclip -selection c -o" |