Add more icons to the bar

This commit is contained in:
stephan.raabe 2023-02-09 14:30:40 +01:00
parent 8a253f50e1
commit efbc772f0e
3 changed files with 23 additions and 9 deletions

View File

@ -35,6 +35,9 @@ alias confq='vim ~/dotfiles/qtile/config.py'
alias confp='vim ~/dotfiles/picom/picom.conf' alias confp='vim ~/dotfiles/picom/picom.conf'
alias confb='vim ~/dotfiles/.bashrc' alias confb='vim ~/dotfiles/.bashrc'
# EDIT NOTES
alias notes='vim ~/notes.txt'
# START STARSHIP # START STARSHIP
eval "$(starship init bash)" eval "$(starship init bash)"

View File

@ -122,12 +122,12 @@ dgroups_key_binder = simple_key_binder(mod)
# Append scratchpad with dropdowns to groups # Append scratchpad with dropdowns to groups
groups.append(ScratchPad('scratchpad', [ groups.append(ScratchPad('scratchpad', [
DropDown('terminal', terminal, width=0.8, height=0.8, x=0.1, y=0.1, opacity=1.0), DropDown('terminal', terminal, width=0.8, height=0.8, x=0.1, y=0.1, opacity=1.0),
# DropDown('dmnotes', terminal, width=0.8,height=0.8, x=0.1,y=0.1, opacity=1.0), # DropDown('notes', terminal, width=0.8, height=0.8, x=0.1,y=0.1, opacity=1.0)
])) ]))
# extend keys list with keybinding for scratchpad # extend keys list with keybinding for scratchpad
keys.extend([ keys.extend([
Key(["control"], "1", lazy.group['scratchpad'].dropdown_toggle('terminal')), Key(["control"], "1", lazy.group['scratchpad'].dropdown_toggle('terminal')),
# Key(["control"], "2", lazy.gtoup['scratchpad'].dropdown_toggle('dmnotes')) # Key(["control"], "2", lazy.gtoup['scratchpad'].dropdown_toggle('notes'))
]) ])
######################## ########################
@ -199,16 +199,27 @@ screens = [
fontsize=14 fontsize=14
), ),
widget.Systray(), widget.Systray(),
widget.TextBox( widget.CPU(
text='', fontsize=14
desc='Start Win10 and RDP', ),
mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(terminal + ' -e vm')}, widget.DF(
visible_on_warn=False,
fontsize=14 fontsize=14
), ),
widget.TextBox( widget.TextBox(
text='', text='',
desc='Destroy Win10', fontsize=14
mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(terminal + ' -e vmstop')}, ),
widget.TextBox(
text='',
desc='Start Win10 and RDP',
mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(terminal + ' -e htop')},
fontsize=14
),
widget.TextBox(
text='',
desc='Notes',
mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(terminal + ' -e vim /home/raabe/notes.txt')},
fontsize=14 fontsize=14
), ),
widget.TextBox( widget.TextBox(