Git Product home page Git Product logo

Comments (10)

elParaguayo avatar elParaguayo commented on August 16, 2024 2

Yeah, the issue is that the widget wasn't designed to have multiple instances (an oversight by me rather than any specific limitation). I'll need to submit a fix in the main qtile version first and then do an update in qtile-extras.

That may take a bit of time as I'm really busy at work at the moment.

Sorry for the inconvenience.

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 16, 2024

Ah, yes. I think I can see the error in the code.

If I submit a patch later today, are you able to test?

Thanks for reporting.

from qtile-extras.

Tokariew avatar Tokariew commented on August 16, 2024

No problem with it ;)

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 16, 2024

I think #89 should fix this. Can you test and let me know?

from qtile-extras.

Tokariew avatar Tokariew commented on August 16, 2024

Now… it always display under one of the trays, but when i restart qtile and remove __pycaches__ It can change under which monitor it display…
Globalmenu widget work fine for me, but not StatusNotifier. And both have quite similiar display_menu function currently

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 16, 2024

Are you using separate instances or a Mirror?

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 16, 2024

Actually, I think I know what the issue is here. It's a bit more complicated. Let me try something hacky first...

EDIT: Hmm. This may be a bigger issue than I thought. May need a larger rewrite of some of the code!

from qtile-extras.

Tokariew avatar Tokariew commented on August 16, 2024

I tried with following widgets in bars:

notifier_defaults = dict(
    menu_background=colours[0],
    menu_font='FiraCode Nerd Font',
    menu_fontsize=font_size,
    menu_foreground=colours[7],
    opacity=opacity,
    separator_colour=colours[8],
    highlight_colour=colours[12],
)
notifier = widget.StatusNotifier(**notifier_defaults)

widget_main_list = [
    widget.CurrentLayoutIcon(),
    widget.GroupBox(**groupbox_defaults),
    widget.CurrentScreen(**current_screen_defaults),
    prompt,
    widget.GlobalMenu(**globmenu_defaults),
    widget.TaskList(**tasklist_defaults),
    widget.Mpd2(
        **decorations,
        status_format='{play_status} {artist}/{title}',
        play_states={
            'pause': '', 'play': '喇', 'stop': 'ﭥ'
        },
        max_chars=60,
        idle_format='{idle_message}'
    ),
    widget.WidgetBox(
        widgets=[
            widget.CPU(**decorations, format="龍 {load_percent: >4g}%"),
            widget.Memory(**decorations, format=" {MemPercent: >4g}%"),
            widget.Net(**decorations, format='{down}李{up}'),  # notifier,
        ],
        text_closed="",
        text_open=""
        ),
    widget.StatusNotifier(**notifier_defaults),
    # notifier,
    widget.Clock(format='%Y-%m-%d %H:%M', mouse_callbacks={'Button1': display_cal}),
]
widget_2nd_list = [
    widget.CurrentLayoutIcon(),
    widget.GroupBox(**groupbox_defaults),
    widget.CurrentScreen(**current_screen_defaults),
    prompt,
    widget.GlobalMenu(**globmenu_defaults),
    widget.TaskList(**tasklist_defaults),
    # widget.WidgetBox(widgets=[widget.StatsNotifier(**notifier_defaults)], text_closed="", text_open=""),
    widget.StatusNotifier(**notifier_defaults),
    # notifier,
    # widget.Systray(),
    widget.Clock(format='%Y-%m-%d %a %H:%M')
]

And i was switching between version with notifier in the code and widget.StatusNotifier(**notifier_defaults),

globalmenu work fine if i have seperate instances, so i mainly was testing with seperate instances for notifier too.

from qtile-extras.

elParaguayo avatar elParaguayo commented on August 16, 2024

The updated fix in #88 should work once qtile/qtile#3749 is merged.

from qtile-extras.

Tokariew avatar Tokariew commented on August 16, 2024

Thank you very much. I highly appreciate your work ;)
Installed qtile and qtile_extras with corresponding PR and now it's working fine.

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.