LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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

Bookmarking a search, then editing it on the bookmark manager, is the easiest way to add custom search engines in firefox

Posted 01-17-2024 at 01:08 PM by the dsc (linux-related notes)

Chrome provides a somewhat more straightforward way to add custom searches with custom parameters. Some people suggest rather cumbersome ways to do it in firefox, like editing some text file with some xml formatting, then allowing some developer option in about:config, then dragging and dropping the file somewhere.

But unless that has some hidden advantage that I haven't imagined yet, a much handier way is to first go on some web search, do some generic/token/fake search with the...
Member
Posted in Uncategorized
Views 99 Comments 0 the dsc is offline
Old

Firefox may require you to drag-and-drop files into parts of it instead of opening a file dialog for you to pick

Posted 01-16-2024 at 07:43 PM by the dsc (linux-related notes)

At least that's the state of my system regarding the violent-monkey and stylus extensions. I had a zip and a json exported from a different browser, clicked in the "import" button, but nothing happened. I assumed they were just buggy (apparently some updates from google-chrome are requiring some significant work to upgrade extensions to new standards) and tried dragging and dropping without really having any hope for it to work, but turns out it did work, to my surprise.

...
Member
Posted in Uncategorized
Views 112 Comments 0 the dsc is offline
Old

Disable the annoying scrolling animations in GTK3

Posted 01-03-2024 at 08:38 PM by the dsc (linux-related notes)
Updated 02-20-2024 at 07:00 PM by the dsc

In GTK3 they came up with the notion that if you have a really long file list, and you want to get to the end of the list by pressing the "end" key, you don't really want to immediatelly jump down there to the end, instead you'd want a few seconds of an animation of the file list rolling up. Which ironically contrasts somewhat with their scrollbar innovation, of instantly moving the view to the "proportional" point on the scrollbar, rather than a click out of the scroller being...
Member
Posted in Uncategorized
Views 239 Comments 0 the dsc is offline
Old

Keeping .bash_history without duplicate entries

Posted 12-04-2023 at 12:30 PM by the dsc (linux-related notes)
Updated 12-06-2023 at 01:30 PM by the dsc

I had the HISTCONTROL options set correctly for that for a while ("ignoreboth:erasedups" -- the first ignores duplicates and command lines starting with a space, and erasedups would "move" a command repeated exactly to the last entry when repeated), and yet it wasn't working, I had duplicates all over.

I had just devised a script-daemon that would do the same thing in a less-than-native manner, when I decided to search a little bit more about it before just "saving"...
Member
Posted in Uncategorized
Views 198 Comments 0 the dsc is offline
Old

Ridiculous work-around for kdialog ignoring geometry parameters

Posted 11-30-2023 at 03:55 PM by the dsc (linux-related notes)
Updated 01-29-2024 at 01:25 PM by the dsc

Have kdialog preceeded by (or succeeded after an "&" if the context allows it, and if it's preferable for some reason) a loop that has wmctrl "grepping"/activating" the unique name of the kdialog window, followed by xdotool resizing it, and breaking the loop.

Code:
( while  true ; do
sleep 0.2 # reduces CPU load if the loop never breaks for some reason
wmctrl -a "relevant and ideally unique title for kdialog window"  &&
...
Member
Posted in Uncategorized
Views 160 Comments 0 the dsc is offline

  



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