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 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/db3b41df-0821-43e5-b5d2-8435972a0ae2n%40googlegroups.com.

Reply via email to