this post was submitted on 24 Jun 2023
31 points (100.0% liked)

Unixporn

15390 readers
4 users here now

Unixporn

Submit screenshots of all your *NIX desktops, themes, and nifty configurations, or submit anything else that will make themers happy. Maybe a server running on an Amiga, or a Thinkpad signed by Bjarne Stroustrup? Show the world how pretty your computer can be!

Rules

  1. Post On-Topic
  2. No Defaults
  3. Busy Screenshots
  4. Use High-Quality Images
  5. Include a Details Comment
  6. No NSFW
  7. No Racism or use of racist terms

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/530920

Magic-tape is an image supporting fuzzy finder command line interface YouTube client.

https://gitlab.com/christosangel/magic-tape

Image rendering can be done with the use of ueberzugpp, ueberzug, kitty terminal or chafa.

With magic-tape, through the main menu, the user can:

  • Browse videos from subscriptions.

  • Browse through trending video feed.

  • make a video search, using keywords or phrases.

  • Watch a previously watched video (watch history).

  • Browse videos from a subcsribed channel.

  • Watch a liked video.

  • Repeat the previous selection.

  • Repeat a previous search (search history).

  • Watch/download video/audio content, in various formats.

Through the miscellaneous menu the user can

  • Set up Preferences (configuration).

  • Like / Unlike a video.

  • Synchronize the above actions with their YouTube account.

  • Import subscriptions from YouTube.

  • Subscribe to/ Unsubscribe from a channel.

  • Clear their watch/search history, liked videos, thumbnail cache.

top 9 comments
sorted by: hot top controversial new old
[–] pewpew@feddit.it 2 points 1 year ago (1 children)

Cool! Does it play videos in MPV (youtube-dl)? That would be really useful for my slow PC.

[–] christos@lemmy.world 2 points 1 year ago

Exactly that. This script is great for low resources.

[–] Grencia@latte.isnot.coffee 2 points 1 year ago

Wow, that's actually pretty cool, can't wait to try it out. Thanks for sharing

[–] solarzones@programming.dev 1 points 1 year ago

Looks really cool, will try it soon!

[–] pfc@lemmy.ml 1 points 1 year ago

Nice. As an alternative, ytfzf is awesome.

[–] ComfortableWinter00@sh.itjust.works 1 points 1 year ago (2 children)

I love the concept, but the script seems to be a bit broken?

It seems to be hardcoded to use $HOME/git/magic-tape/ as the directory it runs from, which isn't going to be true for most people. You can use basename -- "$0" to get the directory the script is running from.

[–] christos@lemmy.world 1 points 1 year ago

Your point is valid. I am afraid this is so because I keep the scripts from my gitlab repos in a ~/git directory, just to keep them nice and tidy in that place.

At some point I was considering moving the sh script to ~/.local/bin/ , the cache files to ~/.cache/, the configuration files to .config etc, but never got to it. Perhaps it would be better this way.

However the installation instructions include commands to create the ~/git directory, so if one would just follow the instructions and run the respective commands, they would face no problem.

To run the script, I have a key binding dedicated to run kitty -T Magic-Tape /home/myname/git/magic-tape/magic-tape.sh, and a panel launcher with the same command, so the script runs fine.

I will however check the info you gave me (which I admit I ignore), thank you for the feedback.

[–] christos@lemmy.world 1 points 1 year ago

I have updated the script:

UPDATE: The directory structure of the program has been updated. Instead of keeping everything in ~git/magic-tape/, now various files and directories are kept in various places.

This way,

  • the magic-tape.sh is in ~/.local/bin/
  • the magic-tape cache files are all in ~/.cache/magic-tape/
  • the configuration text file will be created in ~/.config/magic-tape/

The script now runs from any dir by:


$ magic-tape.sh

Nice & clean

[–] sqraw@lemmy.ca 1 points 1 year ago

Yeeeeeeeeees