LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


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

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
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 13857 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 1634 Comments 0 the dsc is offline
Old

x86_64 part 2

Posted 03-06-2012 at 09:57 AM by Rod3775

When XWindows was ported to 64 bit architectures, the decision was made (probably for legacy compatibility) not to add a 64 bit data format to routines that return overloaded pointers, specifically XGetWindowProperties. Pointers, which are 64 bits, are returned in 64 bit elements that are claimed to be 32 bits. There is no way to cope with this in user code, except to check which architecture you are running on. The compiler define "__x86_64" is set on Intel 64 bit compilers. wmctrl (not...
Member
Posted in Uncategorized
Views 1523 Comments 0 Rod3775 is offline

  



All times are GMT -5. The time now is 07:29 PM.

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