summaryrefslogtreecommitdiffstats
path: root/.local/bin/linkview
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/linkview')
-rwxr-xr-x.local/bin/linkview12
1 files changed, 9 insertions, 3 deletions
diff --git a/.local/bin/linkview b/.local/bin/linkview
index ec928a4..d276634 100755
--- a/.local/bin/linkview
+++ b/.local/bin/linkview
@@ -388,9 +388,15 @@ sub open_link
$pid = fork();
if (not $pid) {
setsid();
- capture {
- exec(COPYQ_PATH, "copy", $url);
- };
+ if (defined $ENV{WAYLAND_DISPLAY}) {
+ system("echo -n " . $url . " | wl-copy");
+ exit(0);
+ }
+ else {
+ capture {
+ exec(COPYQ_PATH, "copy", $url);
+ };
+ }
}
}
return;