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.

`widget_defaults` settings get ignored.

See original GitHub issue

The issue:

Hello, I wanted to set the font and the fontsize as a default for all widgets via widget_defaults, but it didn’t work. I expected it to work, because if I set the font in the widget itself it works, see the screenshot.

Version: 0.21.0

Config:

# statusbar config
from libqtile.config import Screen
from libqtile import bar, widget, qtile
import os, subprocess

# defaults
widget_defaults = dict(
  font="Ubuntu Mono Nerd Font",
  fontsize=18,
)

extension_defaults = widget_defaults.copy()

screens = [Screen(
  top = bar.Bar([
    widget.GroupBox(
      highlight_method = "line",
      background = colors[0],
      highlight_color = colors[0],
      block_highlight_text_color = colors[5],
      active = colors[1],
      borderwidth = 0,
      padding_x = 18,
      disable_drag = True,
      hide_unused = True
    ),
    widget.CurrentLayout(
      font="Ubuntu Mono Nerd Font",
      fontsize=18,
    ),
  ],
    size = 40,
    background = colors[0]
  )
)]

screenshot_2022-07-10_14:33:53

Thanks

Required:

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
elParaguayocommented, Oct 21, 2022

If they’re not visible in config.py they’re not going to work.

You can import them from another file if you don’t want to define them in config.

0reactions
elParaguayocommented, Oct 21, 2022

There were no changes. Setting in bar.py is fine.

Your problem was when you tried Wayland with this commit: https://github.com/cronyakatsuki/dots/commit/43b3ad223e242ea364c60487bce75b504f1f3f40

You changed this line:

from bar import screens, widget_defaults

to this:

from bar import screens

That’s what broke it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting "Enable ignoring" does not really work · Issue #238
I have a .dockerignore file which ignores all files except for one build artifact. I have unchecked "Enable ignoring" for Docker in Settings...
Read more >
Azure Web Job schedule time being ignored after ...
The solution is that right click Settings.job file -> properties -> then for Build, select "content".
Read more >
Ignore issues - Snyk User Docs
Configure ignore settings · 1. Go to your organization settings > General, then navigate in the Ignores section · 2. Under Ability to...
Read more >
Application Preferences
Many general settings for Silverstack can be changed within the Application preferences and ... You get to the preferences menu by selecting “Preferences…...
Read more >
Windows 10 - Sleep settings being ignored
My sleep settings are 1 hour but Windows 10 is ignoring the settings and putting laptop to sleep after 5 mins of inactivity....
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