On Tue, 29 Mar 2022 at 02:56, Skip Montanaro <skip.montan...@gmail.com> wrote:
>
> > I might be misguided, but on modern desktops that should be possible
> > with a few mouseclicks. E.g. in KDE, there is a little pin icon
> > displayed in every title bar of a toplevel window on the left side.
>
> Correct, and that's what I'm currently doing. I'm lazy though. I want
> the program to start always visible on the active virtual desktop. As
> Cameron showed, this is possible. I have vague recollection of doing
> this with the same program probably 15-20 years ago in an age when
> window managers weren't largely configured with the mouse.
> Unfortunately, I no longer recall what window manager(s) I used at the
> time (probably twm or fvwm). Now I use fvwm4 and can't find squat
> online about configuration files. I do have a ~/.config/xfce4/xfwm4/
> directory, but it is completely empty.
>

Would you accept a solution that involves a subprocess call?

wmctrl -ir {id} -b add,sticky

Now, the only problem is... figuring out your window ID. Worst case,
parse wmctrl -lG to get that info, but it might be possible to get the
window ID from Tkinter itself.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to