Hello guys.
I'm trying to get a widget.TextBox to open a terminal and run the
command but is not working.
This is how it look:
widget.TextBox(
text = '@',
padding = 2,
margin = 12,
fontsize=22,
foreground = colors[6],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e free -h')}
),
It opens a terminal for less than a second and close immediately.
I have also try:
mouse_callbacks = {'Button1':lambda: qtile.cmd_spawn(["alacritty", "-e", "--noclose", "free -h"])}),
mouse_callbacks = {'Button1':lambda: qtile.cmd_spawn(["alacritty", "-e", "--hold", "free -h"])}),
They also open and close at the moment.
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(alacritty + ' -e free -h')}),
This don't work at all.
Can you help me please?
OS: Arch updated
WM: Qtile
I'm trying to get a widget.TextBox to open a terminal and run the
Code:
free -h
This is how it look:
widget.TextBox(
text = '@',
padding = 2,
margin = 12,
fontsize=22,
foreground = colors[6],
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e free -h')}
),
It opens a terminal for less than a second and close immediately.
I have also try:
mouse_callbacks = {'Button1':lambda: qtile.cmd_spawn(["alacritty", "-e", "--noclose", "free -h"])}),
mouse_callbacks = {'Button1':lambda: qtile.cmd_spawn(["alacritty", "-e", "--hold", "free -h"])}),
They also open and close at the moment.
mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(alacritty + ' -e free -h')}),
This don't work at all.
Can you help me please?
OS: Arch updated
WM: Qtile