added wl-copy

This commit is contained in:
iceyrazor 2025-05-24 21:50:44 -05:00
parent ecc33e9454
commit ebdd9a8b70
1 changed files with 5 additions and 1 deletions

View File

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