question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

show a popup with group name when switching groups

See original GitHub issue

The issue:

I would like to achieve the same kind of effect that the one on this short clip, i.e. when switching groups, the name of the group appears somewhere on the screen.

I have two smaller issues indeed:

  1. I’m trying to use the builtin hooks to do that, e.g. @hook.subscribe.changegroup but there is no doc on the hooks doc page. I just found the commands API doc where I might be able to find what i need, i.e. extract the name of the current group, but it was not trivial… Maybe adding a direct link to the commands API would be helpful! And then, i do not know if using libqtile.command.client.InteractiveCommandClient().group.info() is the prefered way to extract the name of the current group 🤔
  2. any idea how to do such a small and ephemeral popup? Could not find it inside the xmonad config of the clip… And using things like dunst would not be as pretty as that 🤔

Cheers 👋 😋

Required:

  • I have searched past issues to see if this bug has already been reported.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
amtoinecommented, Mar 14, 2022
    qtile.call_later(1, layout.kill)  # kill popup after 1 second

this is just perfect! works like a charm and like I wanted it to work. and learned a new feature of qtile 🤩

0reactions
elParaguayocommented, Mar 14, 2022

def popup(qtile):
    controls = [
        PopupText(
            font="mononoki Nerd Font",
            fontsize=150,
            text="TEST",
            row=0,
            col=0,
        ),
    ]

    layout = PopupGridLayout(
        qtile,
        width=500,
        height=200,
        controls=controls,
        background="00000060",
        initial_focus=None,
        keyboard_navigation=False,
    )

    layout.show(centered=True)
    qtile.call_later(1, layout.kill)  # kill popup after 1 second
Read more comments on GitHub >

github_iconTop Results From Across the Web

how to show a pop up to particular group when major incident ...
I want to show pop up to particular team when major incident is created by any user, popup should be visible on incident...
Read more >
How do I change my sidebar to show group/app icons and ...
To change the name of your group, right-click on the icon and go to Settings > Group Settings, and look for Display Name....
Read more >
How To Change Group Name on Facebook in 2023 - RecurPost
Under the header image of the group, click on “More” and then click on “Edit group settings” You will find a field with...
Read more >
How to Create Tile Groups on the Windows 10 Start Menu
Click on Name group, and it will open a field so you can type in whatever name you want to give your group...
Read more >
Popups: 10 Problematic Trends and Alternatives
1. Showing a popup before the main page content loads: Regardless of the variation used, never show a popup before users can glean...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found