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.

custom_icon_path not working for widget.CurrentLayoutIcon

See original GitHub issue

Edit: https://github.com/qtile/qtile/issues/3489#issuecomment-1094082436 For anyone opening this issue, it was my fault in my config. It is custom_icon_paths and not custom_icon_path.


The issue:

For some reason the custom icon path for widget.CurrentLayoutIcon does not work for me. For testing I have copied the original icons from libqtile/resources/layout-icons to my .config/qtile folder and changed a color for one of the icons.

  • Your Qtile version (qtile --version): 0.21.1.dev9+g634a470a

  • Relevant logs from ~/.local/share/qtile/qtile.log: — (nothing relevant is reported)

  • If relevant, the problematic part of your config:

          widget.CurrentLayoutIcon(
              custom_icon_path = ['/home/tuncay/.config/qtile/layout-icons'],
              scale = 0.55,
              mouse_callbacks = {
                  'Button1':
                  lazy.next_layout(),
                  'Button2':
                  lazy.to_layout_index(0),
                  'Button3':
                  lazy.prev_layout(),
              },
          ),
    

Whatever I do, reload, restart or even logout/login as a user; it won’t use the icons. I have tried to save the .png in RGB and also tried in Indexed color mode. Am I missing here something or is this a bug?

Required:

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
elParaguayocommented, Apr 9, 2022

Omg! I am so sorry, you are right. Can’t believe it. So with the “s” added it works. Sorry for taking your time. I’ll close shortly if no one says anything.

Don’t worry about it!

1reaction
SweepingBishopscommented, Apr 9, 2022

Scratch that. It’s an error in your config. It’s custom_icon_paths not custom_icon_path!

😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

widget.CurrentLayoutIcon doesn't work with custom icons : r/qtile
I have tried to put my icons in .icons in my home (theoretically it is the default path) but it gives this error....
Read more >
CurrentLayoutIcon Not Working · Issue #1291 · qtile ... - GitHub
As of 0.13.0 I'm unable to utilize the CurrentLayoutIcon in any of my Bars. bottom_bar = bar.Bar([ TextBox("?
Read more >
Built-in Widgets - Qtile Docs
A widget that graphically displays the current group ... To format the string returned by the widget. ... Text will displayed when no...
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