What I want to do: 
When pavucontrol opens it will be small floating window on the top right 
corner.
What I tried:
@hook.subscribe.client_new
def func(new_window):
    if new_window.name == 'Telegram':
        new_window.togroup("CHAT")
     # if new_window.window.id == 35651591:
    # if new_window.name == 'pavucontrol':
         # if new_window.name == 'Pavucontrol'
    if new_window.name == 'Громкость': # This is means volume in Russian
        new_window.enable_floating()
        new_window.set_position_floating(10, 10)
        new_window.set_size_floating(100, 100)

With telegram it's work, but not with pavucontrol.

Output of qtile-cmd -o window -f info :
 {'float_info': {'height': 478, 'width': 945, 'x': 963, 'y': 23},
 'floating': False,
 'fullscreen': False,
 'group': 'DEV2',
 'height': 1052,
 'id': 35651591,
 'maximized': False,
 'minimized': False,
 'name': 'Громкость',
 'width': 952,
 'x': 2883,
 'y': 23}


Also I noticed that when I open some windows qtile write this in log:
2020-08-12 20:11:02,958 WARNING libqtile xcbq.py:set_property():L687 X 
error in SetProperty (wid=27263022, prop='WM_STATE'), ignoring
2020-08-12 20:11:02,958 WARNING libqtile xcbq.py:get_property():L717 X 
error in GetProperty (wid=27263022, prop='WM_HINTS'), ignoring
2020-08-12 20:11:02,958 WARNING libqtile xcbq.py:get_property():L717 X 
error in GetProperty (wid=27263022, prop='WM_NORMAL_HINTS'), ignoring
2020-08-12 20:11:02,959 WARNING libqtile xcbq.py:get_property():L717 X 
error in GetProperty (wid=27263022, prop='WM_HINTS'), ignoring
2020-08-12 20:11:02,959 WARNING libqtile xcbq.py:get_property():L717 X 
error in GetProperty (wid=27263022, prop='WM_NORMAL_HINTS'), ignoring
2020-08-12 20:11:02,960 WARNING libqtile xcbq.py:get_property():L717 X 
error in GetProperty (wid=27263022, prop='_XEMBED_INFO'), ignoring
2020-08-12 20:11:12,934 WARNING libqtile xcbq.py:set_property():L687 X 
error in SetProperty (wid=35651587, prop='WM_STATE'), ignoring
2020-08-12 20:11:19,466 WARNING libqtile xcbq.py:set_property():L687 X 
error in SetProperty (wid=39845891, prop='WM_STATE'), ignoring
2020-08-12 20:11:19,780 WARNING libqtile xcbq.py:set_property():L687 X 
error in SetProperty (wid=37748739, prop='WM_STATE'), ignoring
2020-08-12 20:11:20,058 WARNING libqtile xcbq.py:set_property():L687 X 
error in SetProperty (wid=35651587, prop='WM_STATE'), ignoring

But when I open telegram(which is hooking successfully) qtile log nothing.

-- 
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/0f26bc74-2caf-480f-9d45-41a287e84c54o%40googlegroups.com.

Reply via email to