`widget_defaults` settings get ignored.
See original GitHub issueThe 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]
)
)]
Thanks
Required:
- I have searched past issues to see if this bug has already been reported.
Issue Analytics
- State:
- Created a year ago
- Comments:10 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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:
to this:
That’s what broke it.