LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Old

Collection of random small tricks

Posted 09-26-2015 at 08:40 PM by the dsc (linux-related notes)
Updated 01-16-2024 at 08:28 PM by the dsc (adding more trickery)

☻☻☻ Pipeing youtube-dl output to a given player (and having it as a mini-script)

Code:
youtube-dl -f ${2:-5} $1 -q -o - | mpv -
The first parameter is the youtube url, for a single video, and the second, optional, the quality code, like "best", "worst", or a given number. The default there (5) is the 240p flv.

Just "mpv youtube-URL" was supposed to work, but isn't working right now for me. It says the youtube-dl version is old,...
Member
Posted in Uncategorized
Views 2489 Comments 4 the dsc is offline
Old

KDE hidden command line tools

Posted 09-17-2015 at 02:03 PM by the dsc (linux-related notes)
Updated 09-24-2015 at 08:02 PM by the dsc

Haven't checked yet, posting as a "shared bookmark" and to myself:

http://www.bramschoenmakers.nl/node/610.html

I'm particularly interested in "kde-move". I've actually came up with bash-script approximations to the functionality of auto-renaming the moved files when the target directory has files with the same file names, but I've only made something that just does that by default, whereas KDE can do that but also allows one to compare and rename,...
Member
Posted in Uncategorized
Views 1507 Comments 0 the dsc is offline
Old

Adding a "copy image to clipboard" editor (not really) to geeqie

Posted 09-07-2015 at 01:22 AM by the dsc (linux-related notes)
Updated 11-17-2016 at 03:46 PM by the dsc (UPDATE!)

Edit: I've just found a method that seems much simpler and more lightweight

The copy to clipboard editor can be just xclip! (Therefore one of my first statements in the first version of this post is probably false, and possibly was wrong even then).

Code:
xclip -selection c -t image/jpg < "%f"
It doesn't matter that the source isn't a jpeg, you can even replace it for png, it's probably an on-the-fly reencoding or something, I'm not sure.
...
Member
Posted in Uncategorized
Views 2281 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration