LinuxQuestions.org
Visit Jeremy's Blog.
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

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 168 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 183 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 140 Comments 0 the dsc is offline
Old

Openbox sometimes requires a "triple click" for what one would expect to achieve with a double click

Posted 11-08-2023 at 10:38 AM by the dsc (linux-related notes)
Updated 11-08-2023 at 10:39 AM by the dsc

Was just randomly trying to see if you could have different mouse-bindings association for double and single click on the same context, and decided to web-search a bit after it failed, "maybe there's some syntax trick or something," I thought.

Instead I found an old post in this forum saying that, in completely different circumstances (out of window-management associations, seems to me), Openbox requires a triple click where other/actual DEs would require a double one....
Member
Posted in Uncategorized
Views 121 Comments 0 the dsc is offline
Old

Using xdotool to clear notifications, particularly those of notify-send, handled by lxqt-notificationd

Posted 08-15-2023 at 08:35 PM by the dsc (linux-related notes)
Updated 08-15-2023 at 08:45 PM by the dsc

Code:
 xdotool search --name "lxqt-notificationd" windowkill
Probably can be easily adapted to notifications handled by any other notification daemon, requiring one to see what they're called with xprop or something:

Code:
 notify-send "bogus" "$(ls /usr/bin)" & xprop
Then click on the notification. "lxqt-notificationd" is the "_NET_WM_NAME(UTF8_STRING)" but also a lot of other things, I'm not sure which one is...
Member
Posted in Uncategorized
Views 302 Comments 0 the dsc is offline

  



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