dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 211918b9ffac4a73f779075f54a43fe860d4c140
parent 329fa33b620fe7c00fe6b473adf421b50bea4ee4
Author: hhvn <hayden@haydenvh.com>
Date:   Fri, 19 Feb 2021 19:32:33 +0000

.scripts/bin/ytchannelid: work without X

Diffstat:
M.scripts/bin/ytchannelid | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/.scripts/bin/ytchannelid b/.scripts/bin/ytchannelid @@ -3,4 +3,8 @@ for u in $@ do curl -qsL $u | tr '}{,' '\n' | grep channelId | head -n 1 | sed 's/.*\\":\\"//;s/..$//' | awk '{print "https://www.youtube.com/feeds/videos.xml?channel_id=" $0}' -done | tee /dev/stderr | xclip +done | ( + [ ! -z $DISPLAY ] && { + tee /dev/stderr | xclip + } || cat +)