LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
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

Dealing with gxmessage windows on wmctrl

Posted 01-12-2020 at 04:25 PM by the dsc (linux-related notes)

If you ever see yourself wanting to manipulate gxmessage dialogs/windows with wmctrl for some reason, you may notice the name of the window set by gxmessage itself is kind of ignored, depending on the parameters you'd use on wmctrl. It will instead still behave as if the window title was "Gxmessage," or yet "gxmessage.Gxmessage," depending on wmctrl parameters. Which is troublesome if you have more than one.

I thought it would be needed to grep the title from a...
Member
Posted in Uncategorized
Views 13867 Comments 0 the dsc is offline
Old

PCManFM-qt has become pretty much a complete replacement for Dolphin/Konqueror

Posted 12-31-2019 at 03:58 AM by the dsc (linux-related notes)

It has split view, and can have a permanent filter field, at the same time it's faster to come about and perhaps even to navigate (that may be just an illusory impression).

It's still miles and miles away from KFM of KDE3, but I believe humankind will never again match that greatness. Sad that "trinity" never got as much adoption as Mate.
Member
Posted in Uncategorized
Views 3918 Comments 2 the dsc is offline
Old

MPV script crops/zooms the video without reencoding

Posted 12-25-2019 at 09:05 AM by the dsc (linux-related notes)
Tags mpv

Have you ever seen or being interested in watching a video with some eerily poor framing source, like, the center of interest would be slides that are shown tiny as "a picture in picture" kind of thing? This script is the handiest tool to make them watchable, if the resolution is high enough:

https://github.com/aidanholm/mpv-easycrop

Pressing "c" and then clicking at an edge of the virtual crop will darken most of the video, then, as you move the...
Member
Posted in Uncategorized
Views 2073 Comments 0 the dsc is offline
Old

Great tip to mass edit a file with lots of paths, using variables and "sed"

Posted 12-17-2019 at 07:33 AM by the dsc (linux-related notes)
Tags sed

Sed "default" delimiter is "/", or at least that's what most people use. I tipically find "|" more readable, so that's "my" default. Regardless, it can still be troublesome if you're dealing with paths and variables, it seems somehow the command will "break up".

Glenn Jackman posted on Stack Overflow:
Quote:
A pure bash answer: use parameter expansion to backslash-escape any slashes in the variable:

Code:
var="/Users/Documents/name/file"
...
Member
Posted in Uncategorized
Views 3235 Comments 0 the dsc is offline
Old

"find" files of multiple extensions, on one or more directories, excluding multiple subdirectories

Posted 12-07-2019 at 12:43 PM by the dsc (linux-related notes)
Updated 12-07-2019 at 12:47 PM by the dsc

It took me quite a while to find the correct syntax, only after some dozens of attempts that only worked partly right:

Code:
 find "${PWD}" "/optionally/any/other/path/"  \( -path '*/\.*' -o -name '*notthisfolder*' -o -name '*northis*' -o -wholename "*oteven/thi*" \) -prune -o -iname '*.ext1' -o -iname "*.ext2" -o -iname "*.ext*nsion3"
Where '*/\.*' excludes hidden folders (also files, I guess). All the patterns between the...
Member
Posted in Uncategorized
Views 1797 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 10:29 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