How?

submitted by

https://sh.itjust.works/pictrs/image/11e5ea71-6ce5-4c8c-82b4-60bdcb289b15.png

How?

Does anybody know how to set a window always on bottom in rust gtk4? set_type_hint() does not exist.

15
145

Log in to comment

15 Comments

I know this is pedantic but Linux does give users the free to do this. They just need to add a patch to their desktop and patch their app to make it so.

It gives you the freedom to do that, not the ability

You’re looking for gtk4-layer-shell (doesn’t work on gnome tho ‘cos they hate you (only gnome is like this))

Carpentry gives you the ability to make whatever furniture you want

Why dont you make a table that floats in the air with no legs?

What actually bothers me is when a window opens and takes my keyboard focus away from where I was working. God, I hate what shit.

Or even worse, a dialog window opens locking the rest of the application but it’s under other windows for some reason and I’m like wtf

There was a time when Steam did that like four times.

Can’t you still script it with wmctrl and xdotool?

No. Those are X11 only.

I had a bunch of wmctrl window placement scripts that I had to rewrite in kwin’s (awful) scripting language when I switched to wayland.

While not all functions work, they do a lot of things in Wayland. xdotool search, xdotool winactivate, xdotool windowsize, xdotool windowmove, xdotool keyup, and wmctrl -r all work fine, and my “move to” script (that positions all my windows on startup) works in Wayland using those.

wmctrl and xdotool don’t do anything for me with native Wayland windows. It only seems to work for applications that use Xwayland.

So while I can use it to resize and position xterm or urxvt windows, it does not work with foot or kitty or firefox windows.

Interesting. I will test my laptop woth Firefox tomorrow, see if there is anything janky going on that would make it work.

I currently have it working with Chromium web apps, Thunderbird, and Element.

It’s possible those are still using Xwayland

You can use xlsclients to check.

Insert image