You are not logged in.

#1 2025-06-18 02:30

Durhammer
Member
Registered: 2025-01-28
Posts: 211

yad ignoring dimension and positioning settings (--width... [SOLVED]

I'm now working in IceWM (Ice is Nice!) and one of the "essentials" in a panel is a "Logout/Reboot/etc." button/control to get the heck out of Dodge City. I have a working (slightly modified) copy of Bunsen Labs' "bl-exit" script, and I can use that just fine. BUT I'd like a bit nicer GUI environment than an ol' Xterm window, so have been playing around with yad. I've learned a lot about it, BUT -- it always ignores most dimensional (--width=xx --height=yy, --geometry=hhxvv, etc.) and positional (--posx=nn, etc.) parameters. The --center parameter SOMETIMES works.

I think this has something to do with GTK, but I don't know what I need to do to fix it.

I have yad/stable 0.40.0-1+b1 installed from apt. I have NO idea what version GTK it's built with. My current environment, FWIW, shows some GTK settings:

$ env | grep gtk
QT_QPA_PLATFORMTHEME=gtk2
QT_PLATFORMTHEME=gtk2
QT_PLATFORM_PLUGIN=gtk2

If it's a GTK thing, is there a way to make it bridge the versions (or whatever it is I'm trying to say! smile )?

EDIT: SOLVED, see page #5.

Last edited by Durhammer (2025-06-18 23:23)

Offline

#2 2025-06-18 07:55

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 5,127
Website

Re: yad ignoring dimension and positioning settings (--width... [SOLVED]

You can check any binary what underlying gtk libraries it is using. Just run:
$ ldd /usr/bin/yad

Durhammer wrote:

Ice is Nice!

Yes smile Are you giving up on Trinity DE for some reason ?

Offline

#3 2025-06-18 15:32

Durhammer
Member
Registered: 2025-01-28
Posts: 211

Re: yad ignoring dimension and positioning settings (--width... [SOLVED]

Thanks, @q4osteam! So yad iS a gtk3 thingy but my current theme is gtk2. So maybe all will be well if I find a good gtk3 theme?

As for TDE, not necessarily done with it, just tired of having to re-do things if I dare futz with the looks/themes. Tired of having to re-do my panel (I like a vertical panel with the start menu at bottom, etc.) and remembering where to go to remove desktop icons. You've kept up with my recent spate of tickets to understand, I'm sure!

Offline

#4 2025-06-18 16:55

q4osteam
Q4OS Team
Registered: 2015-12-06
Posts: 5,127
Website

Re: yad ignoring dimension and positioning settings (--width... [SOLVED]

Durhammer wrote:

So maybe all will be well if I find a good gtk3 theme?

That might be enough.

Durhammer wrote:

Tired of having to re-do my panel (I like a vertical panel with the start menu at bottom, etc.) and remembering where to go to remove desktop icons.

You can export a visual theme you have set and restore it anytime. That doesn't work quite well, but it will do some work at least.
Control panel > appearance and themes > theme manager > create new theme
Edit: Use this with caution, it could break TDE desktop layout.

Last edited by q4osteam (2025-06-18 17:04)

Offline

#5 2025-06-18 23:22

Durhammer
Member
Registered: 2025-01-28
Posts: 211

Re: yad ignoring dimension and positioning settings (--width... [SOLVED]

I'm going to SOLVE this puppy. I won't be using yad any time soon, at least for the porpoises of logout options.

Found and installed "obsession" via apt. Its command is "obsession-logout" and it has parameters where I can override the Open Box options text with my own ("IceWM Exit Options", and was able to tweak its lone little config file with a good logout command (using Bunsen Labs' "bl-exit" script to be precise). Wrote a simple bash script that calls obsession-logout with an optional timeout value. All is well.

Works without having to figure out how to tame yad's windowing. Works better than kshutdown did for me. I love finding fairly simple and adaptable solutions!

Offline

Board footer

Powered by FluxBB