Git Product home page Git Product logo

Comments (18)

elParaguayo avatar elParaguayo commented on August 17, 2024

OK - so this does seem to be related to the hooks not working for you. Can you run qtile cmd-obj -o cmd -f eval -a hook.subscriptions and paste the output here.

from qtile-extras.

gibranlp avatar gibranlp commented on August 17, 2024

Sure

(True, "{'qtile': {'setgroup': [<function move_sticky_windows at 0x7fc7e7dc47c0>, " '<bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e821fa50>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7eabf2ed0>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7dde450>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e14950>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e15350>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e155d0>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e8ca7550>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e15110>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e8168250>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e15410>>, <bound method Bar.set_layer of <libqtile.bar.Bar object at ' '0x7fc7e8ed7b90>>, <bound method Qtile.update_desktops of ' "<libqtile.core.manager.Qtile object at 0x7fc7e8ccba50>>], 'client_killed': " '[<function remove_sticky_windows at 0x7fc7e7dc4860>, <bound method ' 'DGroups._del of <libqtile.dgroups.DGroups object at 0x7fc7e821c490>>, <bound ' 'method _GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox ' 'object at 0x7fc7e821fa50>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7eabf2ed0>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7dde450>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e14950>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e15350>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e155d0>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e8ca7550>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e15110>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e8168250>>, <bound method _GroupBase._hook_response of ' "<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e15410>>], 'startup': " "[<function start at 0x7fc7e7dc4900>], 'startup_once': [<function start_once " "at 0x7fc7e7dc49a0>], 'client_new': [<function follow_window at " '0x7fc7e7dc4a40>, <bound method DGroups._add of <libqtile.dgroups.DGroups ' "object at 0x7fc7e821c490>>], 'client_name_updated': [<function " 'follow_window_name at 0x7fc7e7dc4ae0>, <bound method ' 'WindowName.hook_response of <libqtile.widget.windowname.WindowName object at ' "0x7fc7e7ddf910>>], 'addgroup': [<bound method DGroups._addgroup of " "<libqtile.dgroups.DGroups object at 0x7fc7e821c490>>], 'client_managed': " '[<bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e821fa50>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7eabf2ed0>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7dde450>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e14950>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e15350>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e155d0>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e8ca7550>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e15110>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e8168250>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' "0x7fc7e7e15410>>], 'client_urgent_hint_changed': [<bound method " '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e821fa50>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7eabf2ed0>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7dde450>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e14950>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e15350>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e155d0>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e8ca7550>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e15110>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e8168250>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e15410>>], ' "'group_window_add': [<bound method _GroupBase._hook_response of " '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e821fa50>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7eabf2ed0>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7dde450>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e14950>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e15350>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e155d0>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e8ca7550>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e15110>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e8168250>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' "0x7fc7e7e15410>>], 'current_screen_change': [<bound method " '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e821fa50>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7eabf2ed0>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7dde450>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e14950>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e15350>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e155d0>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e8ca7550>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e15110>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e8168250>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e15410>>, <bound method ' 'WindowName.hook_response_current_screen of ' '<libqtile.widget.windowname.WindowName object at 0x7fc7e7ddf910>>], ' "'changegroup': [<bound method _GroupBase._hook_response of " '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e821fa50>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7eabf2ed0>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7dde450>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e14950>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e7e15350>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e155d0>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e8ca7550>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' '0x7fc7e7e15110>>, <bound method _GroupBase._hook_response of ' '<libqtile.widget.groupbox.GroupBox object at 0x7fc7e8168250>>, <bound method ' '_GroupBase._hook_response of <libqtile.widget.groupbox.GroupBox object at ' "0x7fc7e7e15410>>], 'layout_change': [<bound method " 'CurrentLayoutIcon.hook_response of ' '<qtile_extras.widget.currentlayout.CurrentLayoutIcon object at ' "0x7fc7e7e16790>>], 'focus_change': [<bound method WindowName.hook_response " 'of <libqtile.widget.windowname.WindowName object at 0x7fc7e7ddf910>>], ' "'float_change': [<bound method WindowName.hook_response of " '<libqtile.widget.windowname.WindowName object at 0x7fc7e7ddf910>>], ' "'client_focus': [<function Prompt._configure.<locals>.f at 0x7fc7e7b2a840>], " "'startup_complete': [<bound method Bar.set_layer of <libqtile.bar.Bar object " "at 0x7fc7e8ed7b90>>], 'screen_change': [<bound method " 'Qtile.reconfigure_screens of <libqtile.core.manager.Qtile object at ' "0x7fc7e8ccba50>>]}, 'qtile-extras': {}}")

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 17, 2024

Bizarre. I can see the qtile-extras key there! What do you get if you do qtile cmd-obj -o cmd -f eval -a hook.subscriptions['qtile-extras'].

Separately, that's a lot of hooks caused by the groupbox widget. Feels like something's gone wrong there unless you've got loads of groupboxes!

from qtile-extras.

gibranlp avatar gibranlp commented on August 17, 2024

All i get from qtile cmd-obj -o cmd -f eval -a hook.subscriptions['qtile-extras'] is

zsh: no matches found: hook.subscriptions[qtile-extras]

I must comment this is the fresh install i was talking about so everthing is new.

And yeah I'm testing a multicolor groups in the bar, for now i have just created 10 different groupboxes so that's on me. xD

Edit. Is there a way to set the background or other property to groupboxes separatedly?

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 17, 2024

That's just your shell not parsing the command correctly. Try cmd-obj -o cmd -f eval -a "hook.subscriptions['qtile-extras']"

As for your second question, do you mean different background per group? If so, no, not possible with the current widget.

from qtile-extras.

gibranlp avatar gibranlp commented on August 17, 2024

I get

(False, "KeyError: 'qtile-extras'")

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 17, 2024

What!? It was listed in your previous post. There's something very weird thing going on (the hooks work for me) or I'm missing something obvious.

from qtile-extras.

gibranlp avatar gibranlp commented on August 17, 2024

This is with just one groupbox

`~
 qtile cmd-obj -o cmd -f eval -a hook.subscriptions
(True,
"{'qtile': {'setgroup': [<function move_sticky_windows at 0x7fc7e5024900>, "
'<bound method _GroupBase._hook_response of '
'<libqtile.widget.groupbox.GroupBox object at 0x7fc7e6567150>>, <bound method '
'Bar.set_layer of <libqtile.bar.Bar object at 0x7fc7e65852d0>>, <bound method '
'Qtile.update_desktops of <libqtile.core.manager.Qtile object at '
"0x7fc7e8ccba50>>], 'client_killed': [<function remove_sticky_windows at "
'0x7fc7e5025ee0>, <bound method DGroups._del of <libqtile.dgroups.DGroups '
'object at 0x7fc7e6524cd0>>, <bound method _GroupBase._hook_response of '
'<libqtile.widget.groupbox.GroupBox object at 0x7fc7e6567150>>, <bound method '
"ScratchPad.on_client_killed of <group.Group ('scratchpad')>>], 'startup': "
"[<function start at 0x7fc7e50254e0>], 'startup_once': [<function start_once "
"at 0x7fc7e5024c20>], 'client_new': [<function follow_window at "
'0x7fc7e5025a80>, <bound method DGroups._add of <libqtile.dgroups.DGroups '
"object at 0x7fc7e6524cd0>>], 'client_name_updated': [<function "
'follow_window_name at 0x7fc7e5027c40>, <bound method '
'WindowName.hook_response of <libqtile.widget.windowname.WindowName object at '
"0x7fc7e6567ed0>>], 'addgroup': [<bound method DGroups._addgroup of "
"<libqtile.dgroups.DGroups object at 0x7fc7e6524cd0>>], 'client_managed': "
'[<bound method _GroupBase._hook_response of '
'<libqtile.widget.groupbox.GroupBox object at 0x7fc7e6567150>>], '
"'client_urgent_hint_changed': [<bound method _GroupBase._hook_response of "
'<libqtile.widget.groupbox.GroupBox object at 0x7fc7e6567150>>], '
"'group_window_add': [<bound method _GroupBase._hook_response of "
'<libqtile.widget.groupbox.GroupBox object at 0x7fc7e6567150>>], '
"'current_screen_change': [<bound method _GroupBase._hook_response of "
'<libqtile.widget.groupbox.GroupBox object at 0x7fc7e6567150>>, <bound method '
'WindowName.hook_response_current_screen of '
'<libqtile.widget.windowname.WindowName object at 0x7fc7e6567ed0>>], '
"'changegroup': [<bound method _GroupBase._hook_response of "
'<libqtile.widget.groupbox.GroupBox object at 0x7fc7e6567150>>], '
"'focus_change': [<bound method WindowName.hook_response of "
'<libqtile.widget.windowname.WindowName object at 0x7fc7e6567ed0>>], '
"'float_change': [<bound method WindowName.hook_response of "
'<libqtile.widget.windowname.WindowName object at 0x7fc7e6567ed0>>, <bound '
"method ScratchPad.on_float_change of <group.Group ('scratchpad')>>], "
"'client_focus': [<function Prompt._configure..f at 0x7fc7e7b28ea0>], "
"'startup_complete': [<bound method Bar.set_layer of <libqtile.bar.Bar object "
"at 0x7fc7e65852d0>>], 'screen_change': [<bound method "
'Qtile.reconfigure_screens of <libqtile.core.manager.Qtile object at '
'0x7fc7e8ccba50>>]}}')

~
 qtile cmd-obj -o cmd -f eval -a "hook.subscriptions['qtile-extras']"
(False, "KeyError: 'qtile-extras'")`

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 17, 2024

Yes. Key is definitely missing that time. Are you restarting qtile or reloading the config? It shouldn't make a difference but it's an idea.

from qtile-extras.

gibranlp avatar gibranlp commented on August 17, 2024

Yeah, i reload the config continously

**Update

I restarted Qtile and the hooks work!, i get te music names and the battery info, but if i reaload the config, then i loose it.

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 17, 2024

Ok. Let me see if I can recreate.

Can you restart qtile and see if the key is there?

from qtile-extras.

gibranlp avatar gibranlp commented on August 17, 2024

When i restart Qtile it works, but if i reload the config it doesn't work again

The key gets missing in the config.reload

`qtile cmd-obj -o cmd -f eval -a "hook.subscriptions['qtile-extras']"
(True, '{}')

qtile cmd-obj -o cmd -f eval -a "hook.subscriptions['qtile-extras']"
(False, "KeyError: 'qtile-extras'")`

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 17, 2024

Great. So we've found the bug. Now to find a solution.

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 17, 2024

OK - I've found the problem. Will work on a fix which will need to be pushed to qtile rather than qtile-extras.

from qtile-extras.

gibranlp avatar gibranlp commented on August 17, 2024

Awesome, thanks man

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 17, 2024

If possible, can you test qtile/qtile#4579

from qtile-extras.

gibranlp avatar gibranlp commented on August 17, 2024

It works now! awesome, thanks man!

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 17, 2024

Nice. Thanks for confirming. I'll get someone to review the PR in qtile so we can get it merged.

from qtile-extras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.