added wl-copy

This commit is contained in:
2025-05-24 21:50:44 -05:00
parent ecc33e9454
commit ebdd9a8b70

View File

@@ -18,4 +18,8 @@ item="$(sqlite3 ./youtube_stuffs.db "select rowid,* from ytlist" | \
fi fi
url=$(sqlite3 ./youtube_stuffs.db "select id from ytlist where rowid=$item") url=$(sqlite3 ./youtube_stuffs.db "select id from ytlist where rowid=$item")
if [ -z "$WAYLAND_DISPLAY" ]; then
printf "https://youtube.com/watch?v=$url" | xclip -selection clipboard printf "https://youtube.com/watch?v=$url" | xclip -selection clipboard
else
printf "https://youtube.com/watch?v=$url" | wl-copy
fi