Share your knowledge at the LQ Wiki.
Go Back > Blogs
User Name


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.

Bash script that pops-up notification with a bar graph of where you're spending your time on PC

Posted 03-02-2020 at 08:14 PM by the dsc (linux-related notes)
Updated 03-02-2020 at 08:16 PM by the dsc

Preliminary but works, even though I'm probably doing some stuff wrong/dumbly. Basically, "if input is idle for less than two minutes, then grep the active window, if it's the same active window for two times in three 30-second time-windows, count it as active ; after looping N times, show a rudimentary bar graph of how many times each logged window was used."

It would be nicer to actually transform the counting of each program in a percentage of the total, but it's good...
Posted in Uncategorized
Views 21497 Comments 0 the dsc is offline

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...
Posted in Uncategorized
Views 13341 Comments 0 the dsc is offline

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.
Posted in Uncategorized
Views 3182 Comments 2 the dsc is offline

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:

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

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:
A pure bash answer: use parameter expansion to backslash-escape any slashes in the variable:

Posted in Uncategorized
Views 2943 Comments 0 the dsc is offline


All times are GMT -5. The time now is 12:13 AM.

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