summaryrefslogtreecommitdiffstats
path: root/.local/bin/linkview
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2025-03-17 21:39:41 +0100
committerJoe <rbo@gmx.us>2025-03-17 21:39:41 +0100
commitdd8ab05dfbd12d4273ce09189ad26441cf9cdad4 (patch)
treecbf3e6ad208a24005241e19994d7b006ebc3fa8d /.local/bin/linkview
parentup (diff)
downloaddotfiles-bsd-dd8ab05dfbd12d4273ce09189ad26441cf9cdad4.tar.gz
dotfiles-bsd-dd8ab05dfbd12d4273ce09189ad26441cf9cdad4.tar.bz2
dotfiles-bsd-dd8ab05dfbd12d4273ce09189ad26441cf9cdad4.tar.xz
dotfiles-bsd-dd8ab05dfbd12d4273ce09189ad26441cf9cdad4.tar.zst
dotfiles-bsd-dd8ab05dfbd12d4273ce09189ad26441cf9cdad4.zip
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;