Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
☻☻☻ 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,...
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,...
Posted 09-07-2015 at 01:22 AM bythe dsc (linux-related notes)
Updated 11-17-2016 at 03:46 PM bythe 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. ...
UPDATE: whatever happened before, it seems that now it can be partly solved by simply commenting out the font-related lines in /usr/share/themes/QtCurve/gtk-2.0/kdeglobals (not to be confused with KDE's own file with the same name!).
After a while (after a massive upgrade) the randomness of the thing stopped, the correct theming consistently fails. More evidently fonts, icon theme, and colors (including tooltips' colors). I'm not sure the widget's "design" is also affected,...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.