And here is the brwoser script:
# save the image and open it with ucollage in fullscreen
if [ ! -z $(echo $1 | grep -E '.jpg$|.jpeg$|.png$') ]; then
curl $1 --output /tmp/img_newsboat && tmux new-window\; send-keys "ucollage /tmp/img_newsboat" Enter\; send-keys Enter
# open videos or youtube with mpv
elif [ ! -z $(echo $1 | grep -E 'youtube.com|.mpg$|.mpeg$|.mp4$|.avi$|.mov$') ]; then
# open any other link type with librewolf
@wwwgem I'm going to add it to my config. Thanks.
I have been using macros for images and sending links to wallabag.
A instance dedicated - but not limited - to people with an interest in the GNU+Linux ecosystem and/or general tech. Sysadmins to enthusiasts, creators to movielovers - Welcome!