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

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 126 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 294 Comments 0 the dsc is offline
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 13852 Comments 0 the dsc is offline
Old

Bash xdotool+wmctrl "daemon" that maximizes "almost maximized" windows

Posted 10-01-2016 at 07:16 PM by the dsc (linux-related notes)
Updated 12-16-2016 at 04:04 AM by the dsc
Tags openbox, wmctrl

I find annoying that, for whatever reason, it seems that some windows get "almost maximized" (I have the impression that some browsers do that by "design", even though I'm not sure), and then I end up clicking in a desktop pixel instead of the scroll bar or something. In my case that action is assigned to show the desktop/minimize all windows.

So here's what I just came up with so far, for a 1280x1024 resolution:

Code:
while true ; do sleep 3
...
Member
Posted in Uncategorized
Views 1627 Comments 0 the dsc is offline

  



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