Here is the config.
It is not showing up in the Bar.
I dont think the config of the widget is correct.
On Tuesday, 23 February 2021 at 09:51:53 UTC+2 elParaguayo wrote:
> Can you share your current config for that widget and explain a bit more
> about the difficulties you're having?
>
> On Tue, 23 Feb 2021, 07:16 Mohseen Ramjan, <[email protected]> wrote:
>
>>
>> Hi. I am having difficulty showing free disk space using this widget.
>> Is there an example config for this widget? Or can someone show me how to
>> configure the appropriate keys and values?
>> Thanks.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "qtile-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/qtile-dev/18cbe043-6cc7-4487-872b-2c77a65fb88en%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/qtile-dev/18cbe043-6cc7-4487-872b-2c77a65fb88en%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qtile-dev/b523c211-e5e1-4cbe-aafd-b54a6b3bcd65n%40googlegroups.com.
from typing import List # noqa: F401
from libqtile import bar, layout, widget
from libqtile.config import Click, Drag, Group, Key, Match, Screen
from libqtile.lazy import lazy
from libqtile.utils import guess_terminal
mod = "mod4"
myTerm = "alacritty"
terminal = guess_terminal()
keys = [
# Change Focus
Key([mod], "Up", lazy.layout.up()),
Key([mod], "Down", lazy.layout.down()),
Key([mod], "Left", lazy.layout.left()),
Key([mod], "Right", lazy.layout.right()),
Key([mod], "k", lazy.layout.up()),
Key([mod], "j", lazy.layout.down()),
Key([mod], "h", lazy.layout.left()),
Key([mod], "l", lazy.layout.right()),
# Move windows between left/right columns or move up/down in current stack.
Key([mod, "shift"], "h", lazy.layout.shuffle_left(),
desc="Move window to the left"),
Key([mod, "shift"], "l", lazy.layout.shuffle_right(),
desc="Move window to the right"),
Key([mod, "shift"], "j", lazy.layout.shuffle_down(),
desc="Move window down"),
Key([mod, "shift"], "k", lazy.layout.shuffle_up(), desc="Move window up"),
# Resize Windows Up, Down, Left, Right
Key([mod, "control"], "l",
lazy.layout.grow_right(),
lazy.layout.grow(),
lazy.layout.increase_ratio(),
lazy.layout.delete(),
),
Key([mod, "control"], "Right",
lazy.layout.grow_right(),
lazy.layout.grow(),
lazy.layout.increase_ratio(),
lazy.layout.delete(),
),
Key([mod, "control"], "h",
lazy.layout.grow_left(),
lazy.layout.shrink(),
lazy.layout.decrease_ratio(),
lazy.layout.add(),
),
Key([mod, "control"], "Left",
lazy.layout.grow_left(),
lazy.layout.shrink(),
lazy.layout.decrease_ratio(),
lazy.layout.add(),
),
Key([mod, "control"], "k",
lazy.layout.grow_up(),
lazy.layout.grow(),
lazy.layout.decrease_nmaster(),
),
Key([mod, "control"], "Up",
lazy.layout.grow_up(),
lazy.layout.grow(),
lazy.layout.decrease_nmaster(),
),
Key([mod, "control"], "j",
lazy.layout.grow_down(),
lazy.layout.shrink(),
lazy.layout.increase_nmaster(),
),
Key([mod, "control"], "Down",
lazy.layout.grow_down(),
lazy.layout.shrink(),
lazy.layout.increase_nmaster(),
),
# Toggle between different layouts as defined below
Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"),
Key([mod], "w", lazy.window.kill(), desc="Kill focused window"),
Key([mod, "shift"], "m",
lazy.window.toggle_fullscreen(),
desc='toggle fullscreen'
),
Key([mod], "Return", lazy.spawn(terminal), desc="Launch terminal"),
Key([mod, "control"], "r", lazy.restart(), desc="Restart Qtile"),
Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"),
Key([mod], "r", lazy.spawncmd(),
desc="Spawn a command using a prompt widget"),
### My applications launched with SUPER + ALT + KEY
Key([mod, "mod1"], "p", lazy.spawn("pcmanfm")),
Key([mod, "mod1"], "f", lazy.spawn("firefox")),
Key([mod, "mod1"], "c", lazy.spawn("code")),
Key([mod, "mod1"], "n", lazy.spawn("nitrogen")),
Key([mod, "mod1"], "a", lazy.spawn('pavucontrol')),
Key([mod, "mod1"], "v", lazy.spawn("virtualbox")),
Key([mod, "mod1"], "space", lazy.spawn("rofi -modi drun -show drun -show-icons")),
]
group_names = [("INTERNET", {'layout': 'monadtall'}),
("CODE", {'layout': 'monadtall'}),
("DATASCIENCE", {'layout': 'monadtall'}),
("SYSTEM", {'layout': 'monadtall'}),
("DOCS", {'layout': 'monadtall'}),
("VIRTUALBOX", {'layout': 'monadtall'}),
("VIDEO", {'layout': 'monadtall'}),
("STUDY", {'layout': 'monadtall'}),
("MISC" , {'layout': 'floating'})]
groups = [Group(name, **kwargs) for name, kwargs in group_names]
for i, (name, kwargs) in enumerate(group_names, 1):
keys.append(Key([mod], str(i), lazy.group[name].toscreen())) # Switch current window to another workspace from 1-9
keys.append(Key([mod, "shift"], str(i), lazy.window.togroup(name)))
layouts = [
layout.Columns(border_focus_stack='#d75f5f'),
layout.Max(),
# Try more layouts by unleashing below layouts.
layout.Stack(num_stacks=2),
# layout.Bsp(),
layout.Matrix(),
layout.MonadTall(),
layout.MonadWide(),
# layout.RatioTile(),
# layout.Tile(),
# layout.TreeTab(),
# layout.VerticalTile(),
# layout.Zoomy(),
]
colors = [["#282c34", "#282c34"], # panel background
["#434758", "#434758"], # background for current screen tab
["#ffffff", "#ffffff"], # font color for group names
["#ff5555", "#ff5555"], # border line color for current tab
["#8d62a9", "#8d62a9"], # border line color for other tab and odd widgets
["#668bd7", "#668bd7"], # color for the even widgets
["#e1acff", "#e1acff"]] # window name
widget_defaults = dict(
font="Ubuntu Mono",
fontsize = 12,
padding = 2,
background=colors[2]
)
extension_defaults = widget_defaults.copy()
screens = [
Screen(
top =bar.Bar(
[
widget.CurrentLayoutIcon(
custom_icon_paths ="~/.config/qtile/icons",
foreground = colors[0],
background = colors[4],
padding = 0,
scale = 0.7
),
widget.CurrentLayout(
foreground = colors[2],
background = colors[4],
padding = 5
),
widget.GroupBox(
font = "Ubuntu Bold",
fontsize = 9,
margin_y = 3,
margin_x = 0,
padding_y = 5,
padding_x = 3,
borderwidth = 3,
active = colors[2],
inactive = colors[2],
rounded = False,
highlight_color = colors[1],
highlight_method = "line",
this_current_screen_border = colors[3],
this_screen_border = colors [4],
other_current_screen_border = colors[0],
other_screen_border = colors[0],
foreground = colors[2],
background = colors[0]
),
widget.Prompt(
font = "Ubuntu Bold",
fontsize = 14,
padding = 10,
foreground = "#000000",
background = "#98b5ae",
),
widget.Sep(
linewidth = 0,
padding = 40,
foreground = colors[2],
background = colors[0]
),
widget.WindowName(
foreground = colors[6],
background = colors[0],
padding = 0
),
widget.TextBox(
text = '',
background = colors[0],
foreground = colors[4],
padding = 0,
fontsize = 37
),
widget.CPU(
update_interval="1.0",
foreground = colors[2],
background = colors[4],
padding = 5
),
widget.TextBox(
text = '',
background = colors[4],
foreground = colors[5],
padding = 0,
fontsize = 37
),
widget.TextBox(
text = " 🌡",
padding = 2,
foreground = colors[2],
background = colors[5],
fontsize = 11
),
widget.ThermalSensor(
foreground = colors[2],
background = colors[5],
threshold = 90,
padding = 5
),
widget.TextBox(
text='',
background = colors[5],
foreground = colors[4],
padding = 0,
fontsize = 37
),
widget.DF('/sda2'),
widget.TextBox(
text = " ⟳",
padding = 2,
foreground = colors[2],
background = colors[4],
fontsize = 14
),
widget.TextBox(
text = '',
background = colors[4],
foreground = colors[5],
padding = 0,
fontsize = 37
),
widget.TextBox(
text = " 🖬",
foreground = colors[2],
background = colors[5],
padding = 0,
fontsize = 14
),
widget.Memory(
foreground = colors[2],
background = colors[5],
padding = 5
),
widget.TextBox(
text='',
background = colors[5],
foreground = colors[4],
padding = 0,
fontsize = 37
),
widget.Net(
interface = "wlan0",
format = '{down} ↓↑ {up}',
foreground = colors[2],
background = colors[4],
padding = 5
),
widget.TextBox(
text = '',
background = colors[4],
foreground = colors[5],
padding = 0,
fontsize = 37
),
widget.TextBox(
text = " Vol:",
foreground = colors[2],
background = colors[5],
padding = 0
),
widget.Volume(
foreground = colors[2],
background = colors[5],
padding = 5
),
widget.TextBox(
text = '',
background = colors[5],
foreground = colors[4],
padding = 0,
fontsize = 37
),
widget.TextBox(
text = '',
background = colors[4],
foreground = colors[5],
padding = 0,
fontsize = 37
),
widget.Clock(
foreground = colors[2],
background = colors[5],
format = "%A, %B %d [ %H:%M ]"
),
widget.Sep(
linewidth = 0,
padding = 10,
foreground = colors[0],
background = colors[5]
),
widget.Systray(
background = colors[0],
padding = 5
),
widget.TextBox(
text = '',
background = colors[5],
foreground = colors[4],
padding = 0,
fontsize = 37
),
widget.QuickExit(
foreground = colors[2],
background = colors[4],
padding = 5,
),
widget.TextBox(
text = '',
background = colors[4],
foreground = colors[4],
padding = 0,
fontsize = 37
),
widget.Image(
filename = "~/.config/qtile/icons/python.png",
background = "#FF0000",
),
],
24,
),
),
]
# Drag floating layouts.
mouse = [
Drag([mod], "Button1", lazy.window.set_position_floating(),
start=lazy.window.get_position()),
Drag([mod], "Button3", lazy.window.set_size_floating(),
start=lazy.window.get_size()),
Click([mod], "Button2", lazy.window.bring_to_front())
]
dgroups_key_binder = None
dgroups_app_rules = [] # type: List
main = None # WARNING: this is deprecated and will be removed soon
follow_mouse_focus = True
bring_front_click = False
cursor_warp = False
floating_layout = layout.Floating(float_rules=[
# Run the utility of `xprop` to see the wm class and name of an X client.
*layout.Floating.default_float_rules,
Match(wm_class='confirmreset'), # gitk
Match(wm_class='makebranch'), # gitk
Match(wm_class='maketag'), # gitk
Match(wm_class='ssh-askpass'), # ssh-askpass
Match(title='branchdialog'), # gitk
Match(title='pinentry'), # GPG key password entry
])
auto_fullscreen = True
focus_on_window_activation = "smart"
# XXX: Gasp! We're lying here. In fact, nobody really uses or cares about this
# string besides java UI toolkits; you can see several discussions on the
# mailing lists, GitHub issues, and other WM documentation that suggest setting
# this string if your java app doesn't work correctly. We may as well just lie
# and say that we're a working one by default.
#
# We choose LG3D to maximize irony: it is a 3D non-reparenting WM written in
# java that happens to be on java's whitelist.
wmname = "LG3D"