Yeah getting the state from the widget makes more sense. I dont want to
have to do it for all the window widgets though so im thinking of merging
them with options to ensure that people still get the functionality that
they want

On Mon, Aug 9, 2021, 11:10 elParaguayo <[email protected]> wrote:

> I'd be more inclined to edit the widget so that it omits windows with that
> state set. Appreciate that that's not something you can do in your config
> but it feels like a neater approach.
>
> On Monday, 9 August 2021 at 16:04:43 UTC+1 [email protected] wrote:
>
>> Indeed, I had omitted that.
>> Sorry to report that Yad is still reported by TaskList.
>>
>> On Monday, 9 August 2021 at 15:58:09 UTC+1 elParaguayo wrote:
>>
>>> No idea if that function works but you'll need to import hook? e.g.
>>> from libqtile import hook
>>>
>>> On Monday, 9 August 2021 at 09:35:31 UTC+1 [email protected] wrote:
>>>
>>>> With that hook pasted into my config it refuses to even reload qtile,
>>>> so...
>>>>
>>>> On Sunday, 8 August 2021 at 21:52:51 UTC+1 yobleck wrote:
>>>>
>>>>> WARNING: if you reload Qtile you'll have a hard time getting windows
>>>>> affected by this function to appear on screen so I wouldn't recommend it
>>>>> unless you are desperate.
>>>>> In the mean time this config function *might* work as a temporary fix
>>>>> (I I couldn't find any programs I have installed that returned
>>>>> _NET_WM_STATE so its only partially tested)
>>>>>
>>>>> ```
>>>>> from libqtile import qtile
>>>>> @hook.subscribe.client_managed
>>>>> def hide_window(window):
>>>>>     if "_NET_WM_STATE_SKIP_TASKBAR" in
>>>>> window.window.get_net_wm_state():
>>>>>         wid = window.window.wid
>>>>>         window.window.set_property("WM_STATE", (0, 0))
>>>>>         qtile.unmanage(wid)
>>>>> ```
>>>>>
>>>>> On Sunday, August 8, 2021 at 11:00:34 AM UTC-4 elParaguayo wrote:
>>>>>
>>>>>> Posted this at the same time as the other post. If there's a hint
>>>>>> then we can look to add the ability to exclude it.
>>>>>>
>>>>>> On Sunday, 8 August 2021 at 15:58:10 UTC+1 elParaguayo wrote:
>>>>>>
>>>>>>> I don't believe the widget currently has the option to exclude
>>>>>>> windows. If there's a standard way to do it then we could look to 
>>>>>>> implement.
>>>>>>>
>>>>>>> On Sunday, 8 August 2021 at 15:16:42 UTC+1 yobleck wrote:
>>>>>>>
>>>>>>>> Documentation says the option is called --skip-taskbar (
>>>>>>>> https://www.mankier.com/1/yad#--skip-taskbar). Have you tried that?
>>>>>>>> gnome docs say that this sets a hint of some kind (
>>>>>>>> https://people.gnome.org/~shaunm/girdoc/Python/Gtk.Window.set_skip_taskbar_hint.html
>>>>>>>> ).
>>>>>>>> Can you use xprop to click on a yad window and paste the results
>>>>>>>> here. There is probably some kind of WM_PROPERTY that we need to watch 
>>>>>>>> out
>>>>>>>> for.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wednesday, August 4, 2021 at 10:44:51 AM UTC-4
>>>>>>>> [email protected] wrote:
>>>>>>>>
>>>>>>>>> I'm a recent convert to Qtile, and I bring with me a lot of old
>>>>>>>>> scripts that use Yad. Yad has a *--no-taskbar* option which has
>>>>>>>>> worked as expected in other taskbars. The Qtile widget TaskList, 
>>>>>>>>> however
>>>>>>>>> does not acknowledge the option and displays the window title as 
>>>>>>>>> normal.
>>>>>>>>> Is there any way to achieve an exception rule for TaskList?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "qtile-dev" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/qtile-dev/NW06IxHBDKc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/qtile-dev/9d1e82ee-7626-4162-8408-5ef0e58e1c5an%40googlegroups.com
> <https://groups.google.com/d/msgid/qtile-dev/9d1e82ee-7626-4162-8408-5ef0e58e1c5an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/CAEJ5Y88YGZDzQqwUJ8gfRcKB9RB_hwFQwi5MQ26wtNwCZ%3DkBQw%40mail.gmail.com.

Reply via email to