Пример #1
0
def cpu_graph(bg=theme.background, fg=theme.foreground):
    return [
        widget.TextBox(
            text="",
            font=theme.font_awesome,
            fontsize=theme.icon_size,
            padding_x=2,
            foreground=fg,
            background=bg,
        ),
        widget.ThermalSensor(
            font=theme.font_bold,
            foreground_alert=theme.alert,
            foreground=fg,
            background=bg,
            threshold=80,
        ),
        widget.TextBox(
            text="",
            font=theme.font_awesome,
            fontsize=theme.icon_size,
            padding_x=2,
            foreground=fg,
            background=bg,
        ),
        widget.CPUGraph(
            border_width=0,
            samples=95,
            line_width=2,
            graph_color=fg,
            fill_color="{}.5".format(fg),
            background=bg,
        ),
    ]
Пример #2
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[0]),
        widget.GroupBox(
            font="Ubuntu Medium",
            fontsize=16,
            margin_y=3,
            margin_x=0,
            padding_y=5,
            padding_x=5,
            borderwidth=3,
            active=colors[2],
            inactive=colors[1],
            rounded=True,
            highlight_color=colors[3],
            highlight_method="text",
            this_current_screen_border=colors[3],
            this_screen_border=colors[0],
            other_current_screen_border=colors[0],
            other_screen_border=colors[0],
            foreground=colors[2],
            background=colors[0],
        ),
        widget.Sep(linewidth=0, padding=40,),
        widget.WindowName(foreground=colors[3], background=colors[0], padding=0),
        make_arrow(colors[1], colors[0]),
        widget.CPU(
            format="CPU {freq_current}GHz {load_percent}%",
            update_interval=1.0,
            foreground=colors[2],
            background=colors[1],
            padding=5,
        ),
        make_arrow(colors[0], colors[1]),
        widget.TextBox(
            text=" 🌡",
            padding=2,
            foreground=colors[2],
            background=colors[0],
            fontsize=11,
        ),
        widget.ThermalSensor(foreground=colors[2], background=colors[0], padding=5,),
        make_arrow(colors[1], colors[0]),
        widget.TextBox(
            text="", foreground=colors[2], background=colors[1], padding=0, fontsize=14
        ),
        widget.Memory(foreground=colors[2], background=colors[1], padding=5),
        make_arrow(colors[0], colors[1]),
        widget.TextBox(text="", foreground=colors[2], background=colors[0], padding=0),
        widget.Volume(foreground=colors[2], background=colors[0], padding=5),
        make_arrow(colors[1], colors[0]),
        widget.CurrentLayout(foreground=colors[2], background=colors[1], padding=5),
        make_arrow(colors[0], colors[1]),
        widget.Clock(
            foreground=colors[2], background=colors[0], format="%A, %B %d  [ %I:%M %p ]"
        ),
        widget.Systray(background=colors[0], icon_size=20, padding=10),
    ]
    return widgets_list
Пример #3
0
def generate_widgets():
    """generate a widget list."""
    widgets = [
        widget.GroupBox(urgent_alert_method='border',
                        urgent_border='FF0000',
                        urgent_text='FF0000',
                        fontsize=defaut_font_size,
                        borderwidth=2,
                        other_screen_border='AAAA40',
                        this_screen_border='AAAA40',
                        this_current_screen_border='FFFF40',
                        other_current_screen_border='FFFF40',
                        inactive="606060",
                        use_mouse_wheel=False,
                        disable_drag=True,),
        widget.Sep(padding=6, height_percent=60),
        widget.Prompt(),
        # widget.Notify(default_timeout=10),
        widget.TaskList(),
        widget.Sep(padding=6, height_percent=60),
        widget.Systray(padding=5),
        widget.Sep(padding=6, height_percent=60),
        # yaourt -S lm_sensors
        widget.ThermalSensor(foreground="aaaaaa",
                             foreground_alert="ee5555",
                             threshold=75,
                             tag_sensor="Package id 0",
                             update_interval=10),
        widget.Sep(padding=6, height_percent=60), ]

    widgets.extend([
        widget.Backlight(backlight_name='intel_backlight',
                         update_interval=1),
        widget.Sep(padding=6, height_percent=60),
        widget.BatteryIcon(),
        widget.Battery(),
        widget.Sep(padding=6, height_percent=60), ])

    widgets.extend([
        widget.Volume(emoji=True,
                      # yaourt -S noto-fonts-emoji
                      font="NotoColorEmoji-Regular",
                      # yaourt -S humanity-icons
                      # theme_path='/usr/share/icons/Humanity/status/22/',
                      # font='Arial',
                      update_interval=1),
        widget.Sep(padding=6, height_percent=60),
        widget.Clock(format='%a %d-%m-%Y %H:%M:%S'),
        widget.Sep(padding=6, height_percent=60), ])

    widgets.extend([
        ConnectionStatus(name="protonvpn", font="NotoColorEmoji-Regular",
                         fmt_ok="\U0001F510", fmt_nok="\U0001F513"), ])

    widgets.extend([
        widget.CurrentLayoutIcon(foreground="00eedd", scale=0.8), ])
    return widgets
Пример #4
0
def init_bottom_widgets_list():
    return [
        widget.Sep(
            linewidth=0,
            padding=3,
        ),
        widget.TaskList(
            fontsize=11,
            margin_x=0,
            margin_y=1,
            padding_x=6,
            padding_y=2.3,
            borderwidth=1,
            icon_size=14,
            spacing=1,
            # max_title_width = 190,
            title_width_method='uniform',
            urgent_alert_method="text",
            highlight_method="block",
            txt_minimized="V ",
            txt_maximized="",
            txt_floating="",
            # unfocused_border = "None",
            rounded=True,
            # border = colors["blue"],
        ),
        widget.Sep(
            linewidth=0,
            padding=3,
        ),
        widget.Image(scale=True,
                     filename="~/.config/qtile/bar06.png",
                     background=colors["red"]),
        widget.TextBox(fontsize=14, text=" ↯", background=colors["grey"]),
        widget.ThermalSensor(tag_sensor="CPU",
                             threshold=80,
                             update_interval=1,
                             foreground_alert=colors["red"],
                             foreground=colors["white"],
                             background=colors["grey"]),
        widget.Sep(linewidth=0, padding=3, background=colors["grey"]),
        widget.TextBox(font=fonts["bold"],
                       fontsize=14,
                       text="⌬",
                       background=colors["grey"]),
        widget.Memory(fmt='{MemAvailable}M/{MemTotal}M',
                      update_interval=1,
                      background=colors["grey"]),
        widget.Sep(linewidth=0, padding=3, background=colors["grey"]),
        widget.TextBox(font=fonts["bold"],
                       fontsize=14,
                       text="🕒",
                       background=colors["grey"]),
        widget.Clock(format="%a, %b %d - %H:%M", background=colors["grey"]),
        widget.Sep(linewidth=0, padding=3, background=colors["grey"])
    ]
Пример #5
0
def init_widgets_bottom():
    widgets_bottom = [
        widget.GroupBox(
            font="FuraMono Nerd",
            fontsize = 16,
            margin_y = 0,
            margin_x = 0,
            padding_y = 5,
            padding_x = 5,
            borderwidth = 1,
            spacing = 4,
            active = colors[2],
            inactive = colors[2],
            rounded = False,
            highlight_method = "block",
            this_current_screen_border = colors[1],
            this_screen_border = colors [4],
            other_current_screen_border = colors[0],
            other_screen_border = colors[0],
            foreground = colors[2],
            background = colors[0]
        ),
        widget.Spacer(
        ),
        widget.TextBox(
            font = "FuraMono Nerd",
            text = "",
            padding = 5,
            background = colors[0],
            fontsize = 14
        ),
        widget.Memory(
            fmt = '{MemUsed}M',
            update_interval = 1,
            background = colors[0]
        ),
        widget.TextBox(
            font = "FuraMono Nerd",
            text = "",
            foreground = colors[2],
            background = colors[0],
            padding = 5,
            fontsize = 14
        ),
        widget.ThermalSensor(
            foreground = colors[2],
            background = colors[0],
        ),
        widget.Sep(
            linewidth = 0,
            padding = 5,
            foreground = colors[0],
            background = colors[0]
        )]
    return widgets_bottom
Пример #6
0
def bar_widgets(colors):
    seperator = widget.Sep(linewidth=3,
                           padding=4,
                           foreground=colors["foreground"])
    return [
        widget.GroupBox(
            active=colors["foreground"],
            inactive=colors["foreground-alt"],
            highlight_method="line",
            highlight_color=colors["highlight"],
            this_current_screen_border=colors["underline"],
            urgent_border=colors["alert"],
        ),
        widget.Spacer(),
        seperator,
        playerctl_control("~/.config/qtile/icons/firefox.png", "firefox"),
        playerctl_control("~/.config/qtile/icons/youtubemusic.png",
                          "chromium"),
        seperator,
        widget.Image(filename="~/.config/qtile/icons/sound.png", margin=4),
        widget.PulseVolume(volume_app="pavucontrol", padding=4, fontsize=18),
        seperator,
        widget.Image(filename="~/.config/qtile/icons/network.png", margin=4),
        widget.Net(format="{down} ↓↑ {up}"),
        seperator,
        widget.Image(filename="~/.config/qtile/icons/memory.png", margin=4),
        widget.Memory(format="{MemUsed}M/{MemTotal}M"),
        seperator,
        widget.Image(filename="~/.config/qtile/icons/cpu.png", margin=4),
        widget.CPU(format="{freq_current}GHz {load_percent}%"),
        seperator,
        widget.Image(filename="~/.config/qtile/icons/temp.png", margin=4),
        widget.ThermalSensor(),
        seperator,
        widget.CurrentLayoutIcon(
            foreground=colors["underline"],
            custom_icon_paths=["~/.config/qtile/icons/layouts/"],
            padding=5),
        seperator,
        widget.Clock(
            foreground=colors["foreground"],
            format="%A, %B %d - %H:%M",
        ),
        seperator,
        widget.Systray(icon_size=24, padding=5),
        seperator,
        system_action("~/.config/qtile/icons/notification-resume.png",
                      "notify-send \"DUNST_COMMAND_TOGGLE\""),
        system_action("~/.config/qtile/icons/restart.png", "systemctl reboot"),
        system_action("~/.config/qtile/icons/suspend.png", "dm-tool lock"),
        system_action("~/.config/qtile/icons/shutdown.png",
                      "systemctl poweroff"),
    ]
Пример #7
0
def launch_widgets():

    widgets = [
        widget.GroupBox(
            urgent_alert_method='block',
            highlight_method='block',
            rounded=False,
            disable_drag=True,
            this_screen_border=colors['background'],
            this_current_screen_border=colors['purple'],
            other_screen_border=colors['dark_gray'],
            other_current_screen_border=colors['dark_gray'],
            urgent_border=colors['red'],
            inactive=colors['current-line'],
            fontsize=font_size,
            padding_y=5,
            padding_x=8,
        ),
        widget.WindowName(foreground=colors['lighter_gray'], ),
        widget.Spacer(),
        widget.CurrentLayout(foreground=colors['lighter_gray'], ),
        widget.TextBox('\uf438',
                       foreground=colors['current-line'],
                       padding=-12,
                       fontsize=62),
        spawn_icon('\uf2c9', fontsize=14),
        widget.ThermalSensor(
            tag_sensor='Tctl',
            background=colors['current-line'],
            update_interval=1,
        ),
        spawn_icon('\ue266'),
        widget.Memory(format='{MemUsed} MB',
                      background=colors['current-line']),
        spawn_icon('\uf85a'),
        widget.CPU(format='{load_percent}%',
                   background=colors['current-line']),
        spawn_icon('\ufa7d'),
        widget.Volume(cardid=1, step=2, background=colors['current-line']),
        widget.TextBox('\uf438',
                       foreground=colors['background'],
                       background=colors['current-line'],
                       padding=-12,
                       fontsize=62),
        widget.Clock(background=colors['background'],
                     format='%A,%e %b. %H:%M:%S',
                     foreground=colors['foreground'])
    ]

    return widgets
Пример #8
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(font="Hack",
                        fontsize=14,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=5,
                        borderwidth=3,
                        active=colors[2],
                        inactive=colors[2],
                        rounded=False,
                        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(prompt=prompt,
                      padding=10,
                      foreground=colors[3],
                      background=colors[1]),
        widget.CurrentLayout(background=colors[0], padding=5),
        widget.Sep(linewidth=0,
                   padding=20,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(background=colors[0], padding=0),
        widget.TextBox(
            text="Temp:",
            padding=2,
            background=colors[0],
        ),
        widget.ThermalSensor(background=colors[0], padding=5),
        widget.TextBox(text=" Vol:", background=colors[0], padding=0),
        widget.Volume(background=colors[0], padding=5),
        widget.Clock(background=colors[0], format="%d/%m/%y %H:%M:%S"),
        widget.Sep(linewidth=0, padding=10, background=colors[0]),
        widget.Systray(background=colors[0], padding=5),
    ]
    return widgets_list
Пример #9
0
def thermals(bg=theme.background, fg=theme.foreground):
    return [
        widget.TextBox(
            text="",
            font=theme.font_awesome,
            fontsize=theme.icon_size,
            padding_x=2,
            foreground=fg,
            background=bg,
        ),
        widget.ThermalSensor(
            font=theme.font_bold,
            foreground_alert=theme.alert,
            foreground=fg,
            background=bg,
            threshold=80,
        ),
    ]
Пример #10
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors['color7'],
                   background=colors['color0']),
        widget.GroupBox(font="Cantarell Bold",
                        fontsize=10,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=3,
                        borderwidth=3,
                        active=colors['color5'],
                        inactive=colors['color7'],
                        rounded=False,
                        highlight_color=colors['color0'],
                        highlight_method="line",
                        this_current_screen_border=colors['color5'],
                        this_screen_border=colors['color5'],
                        foreground=colors['color7'],
                        background=colors['color0']),
        widget.Sep(
            linewidth=0,
            padding=30,
            foreground=colors['color7'],
        ),
        widget.WindowName(foreground=colors['color4'],
                          font='Inconsolata Bold',
                          fontsize='15',
                          padding=2),
        widget.Systray(padding=5, margin=5, fontsize=12),
        widget.Sep(
            linewidth=0,
            padding=6,
        ),
        widget.TextBox(text="🌡️", padding=2, fontsize=12),
        widget.ThermalSensor(threshold=90, padding=5),
        widget.Sep(linewidth=0, padding=5),
        widget.TextBox(text="🧠", padding=0, fontsize=14),
        widget.CPU(format='{freq_current}GHz {load_percent}%', padding=5),
        widget.Sep(
            linewidth=0,
            padding=6,
        ),
        widget.TextBox(text="💽", padding=0, fontsize=14),
        widget.Memory(mouse_callbacks={
            'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')
        },
                      format='{MemUsed: .0f}{mm}/{MemTotal: .0f}{mm}',
                      measure_mem='M',
                      padding=5),
        widget.Sep(
            linewidth=0,
            padding=6,
        ),
        widget.TextBox(text="🔉", padding=0),
        widget.PulseVolume(padding=5,
                           mouse_callbacks={
                               'Button1':
                               lambda: qtile.cmd_spawn('pavucontrol')
                           }),
        widget.Sep(
            linewidth=0,
            padding=6,
        ),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            padding=0,
            scale=0.7),
        widget.CurrentLayout(padding=5),
        widget.Sep(
            linewidth=0,
            padding=6,
        ),
        widget.Clock(format="📅 %A, %B %d 🕒 %H:%M "),
    ]
    return widgets_list
Пример #11
0
			foreground= color['light_blue'],
                        text=" 🖬",
                        padding = 0,
                        fontsize=16
                        ),
                widget.Memory(
                        padding = 5
                        ),
		widget.TextBox(
			foreground = color['light_blue'],
                        text=" 🌡",
                        padding = 1,
                        fontsize=11
                        ),
		widget.ThermalSensor(
                        padding = 5
                        ),
                widget.TextBox(
			foreground = color['light_blue'],
                        text=" ⟳",
                        padding = 1,
                        fontsize=16
                        ),
                widget.Pacman(
                        execute = "st -e sudo pacman -Syu",
                        update_interval = 1800,
                        ),
                widget.TextBox(
                        text="Updates",
                        padding = 5,
			),
Пример #12
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.Image(filename="~/.config/qtile/icons/python.png",
                     mouse_callbacks={
                         'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run')
                     },
                     margin_x=2,
                     background=colors[0]),
        widget.GroupBox(font="Ubuntu Bold",
                        fontsize=10,
                        margin_y=4,
                        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="block",
                        urgent_alert_method='block',
                        urgent_border=colors[3],
                        this_current_screen_border=colors[4],
                        this_screen_border=colors[4],
                        other_current_screen_border=colors[0],
                        other_screen_border=colors[0],
                        foreground=colors[2],
                        background=colors[0]),
        widget.Sep(linewidth=0,
                   padding=40,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(foreground=colors[6],
                          background=colors[0],
                          padding=0,
                          fontsize=15),
        widget.TextBox(text='',
                       background=colors[0],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text="",
                       padding=0,
                       foreground=colors[2],
                       background=colors[4],
                       fontsize=20),
        widget.CPU(
            foreground=colors[2],
            background=colors[4],
            padding=5,
            fontsize=14,
            format='{freq_current}GHz {load_percent}%',
            mouse_callbacks={
                'Button1': lambda qtile: qtile.cmd_spawn(myTerm + ' -e htop')
            },
        ),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text="",
                       padding=0,
                       foreground=colors[2],
                       background=colors[5],
                       fontsize=15),
        widget.ThermalSensor(foreground=colors[2],
                             background=colors[5],
                             threshold=80,
                             padding=5,
                             fontsize=14),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text="🐏",
                       foreground=colors[2],
                       background=colors[4],
                       padding=0,
                       fontsize=14),
        widget.Memory(foreground=colors[2],
                      background=colors[4],
                      mouse_callbacks={
                          'Button1':
                          lambda qtile: qtile.cmd_spawn(myTerm + ' -e htop')
                      },
                      padding=5,
                      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=22),
        widget.DF(foreground=colors[2],
                  background=colors[5],
                  threshold=90,
                  padding=5,
                  visible_on_warn=False,
                  format='{uf}{m}/{s}{m}|{r:.0f}%',
                  fontsize=14),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text=" ",
                       padding=0,
                       foreground=colors[2],
                       background=colors[4],
                       fontsize=12),
        widget.Battery(foreground=colors[2],
                       background=colors[4],
                       padding=2,
                       fontsize=14,
                       change_char='⚡',
                       notify_below=50,
                       show_short_text=False,
                       format='{percent:2.0%}'),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.CurrentLayoutIcon(foreground=colors[0],
                                 background=colors[5],
                                 padding=0,
                                 scale=0.7),
        widget.CurrentLayout(foreground=colors[2],
                             background=colors[5],
                             padding=5,
                             fontsize=14),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.TextBox(text="",
                       foreground=colors[2],
                       background=colors[4],
                       padding=4,
                       fontsize=20),
        widget.Clock(foreground=colors[2],
                     background=colors[4],
                     format="%a, %b %d  [%H:%M]",
                     fontsize=14),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.Systray(background=colors[5], padding=3),
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[0],
                   background=colors[5]),
    ]
    return widgets_list
Пример #13
0
         scale=0.9,
         foreground="EFEFEF",
     ),
     Keywidget(),
     widget.GroupBox(),
     widget.Sep(linewidth=2, size_percent=100, padding=12),
     widget.Prompt(),
     widget.TaskList(),
     widget.DF(),
     widget.Pomodoro(length_pomodori=20),
     widget.Systray(),
     widget.Net(interface="eno1"),
     widget.Sep(**soft_sep),
     widget.Volume(update_interval=1),
     widget.Sep(**soft_sep),
     widget.ThermalSensor(update_interval=5),
     widget.Sep(**soft_sep),
     widget.Memory(),
     widget.Sep(**soft_sep),
     widget.Clock(format='%Y-%m-%d %a %H:%M:%S'),
 ], 30)
 main_bar = bar.Bar([
     widget.CurrentLayoutIcon(
         scale=0.9,
         foreground="EFEFEF",
     ),
     widget.GroupBox(),
     widget.Sep(linewidth=2, size_percent=100, padding=12),
     widget.Prompt(),
     widget.TaskList(),
     widget.DF(),
Пример #14
0
        widget.CurrentLayoutIcon(),
        widget.Prompt(),
        widget.TaskList(border=colors['blue'], borderwidth=1),
        widget.Volume(update_interval=2),
        widget.TextBox('|'),
        widget.Systray(),
        widget.TextBox('|'),
        widget.CPUGraph(graph_color=colors['green'],
                        border_color=colors['black']),
        widget.MemoryGraph(graph_color=colors['blue'],
                           border_color=colors['black']),
        widget.NetGraph(graph_color=colors['yellow'],
                        border_color=colors['black']),
        # widget.Wlan(interface="wlp2s0"),
        widget.TextBox('|'),
        widget.ThermalSensor(),
        widget.TextBox('|'),
        widget.Battery(),
        widget.TextBox('|'),
        widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
    ],
    24,
    background=colors['background'],
)

secondary = bar.Bar(
    [
        widget.GroupBox(active=colors['green'],
                        this_current_screen_border=colors['yellow'],
                        urgent_color=colors['magenta'],
                        urgent_border=colors['magenta'],
Пример #15
0
def init_widgets_list():
    widgets_list = [
              widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.Image(
                       filename = "~/.config/qtile/icons/python-white.png",
                       scale = "False",
                       mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm)}
                       ),
             widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[2],
                       background = colors[0]
                       ),
              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[7],
                       rounded = False,
                       highlight_color = colors[1],
                       highlight_method = "line",
                       this_current_screen_border = colors[6],
                       this_screen_border = colors [4],
                       other_current_screen_border = colors[6],
                       other_screen_border = colors[4],
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.Prompt(
                       prompt = prompt,
                       font = "Ubuntu Mono",
                       padding = 10,
                       foreground = colors[3],
                       background = colors[1]
                       ),
              widget.Sep(
                       linewidth = 0,
                       padding = 40,
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.WindowName(
                       foreground = colors[6],
                       background = colors[0],
                       padding = 0
                       ),
              widget.Systray(
                       background = colors[0],
                       padding = 5
                       ),
              widget.Sep(
                       linewidth = 0,
                       padding = 6,
                       foreground = colors[0],
                       background = colors[0]
                       ),
              widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[4],
                       padding = 0,
                       fontsize = 37
                       ),
             widget.Net(
                       interface = "enp6s0",
                       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 = " 🌡",
                       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.TextBox(
                       text = " ⟳",
                       padding = 2,
                       foreground = colors[2],
                       background = colors[4],
                       fontsize = 14
                       ),
              widget.CheckUpdates(
                       update_interval = 1800,
                       distro = "Arch_checkupdates",
                       display_format = "{updates} Updates",
                       foreground = colors[2],
                       mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')},
                       background = colors[4]
                       ),
              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],
                       mouse_callbacks = {'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')},
                       padding = 5
                       ),
              widget.TextBox(
                       text='',
                       background = colors[5],
                       foreground = colors[4],
                       padding = 0,
                       fontsize = 37
                       ),
              widget.TextBox(
                       text = " â‚¿",
                       padding = 0,
                       foreground = colors[2],
                       background = colors[4],
                       fontsize = 12
                       ),
              widget.BitcoinTicker(
                       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.CurrentLayoutIcon(
                       custom_icon_paths = [os.path.expanduser("~/.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.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 "
                       ),
              ]
    return widgets_list
Пример #16
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.CurrentLayoutIcon(foreground=colors[5], background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.GroupBox(font="FontAwesome",
                        fontsize=16,
                        margin_y=-1,
                        margin_x=0,
                        padding_y=6,
                        padding_x=5,
                        borderwidth=0,
                        disable_drag=True,
                        active=colors[9],
                        inactive=colors[5],
                        rounded=False,
                        hide_unused=True,
                        highlight_method="text",
                        this_current_screen_border=colors[8],
                        foreground=colors[2],
                        background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[7],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Mpris2(name='spotify',
                      objname="org.mpris.MediaPlayer2.spotify",
                      display_metadata=['xesam:title', 'xesam:artist'],
                      scroll_chars=None,
                      stop_pause_text='',
                      **widget_defaults),
        #               widget.Sep(
        #                        linewidth = 1,
        #                        padding = 10,
        #                        foreground = colors[2],
        #                        background = colors[1]
        #                        ),
        #               widget.WindowName(font="Noto Sans",
        #                        fontsize = 12,
        #                        foreground = colors[5],
        #                        background = colors[1],
        widget.Spacer(),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[7],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.ThermalSensor(foreground=colors[5],
                             foreground_alert=colors[6],
                             background=colors[1],
                             metric=True,
                             tag_sensor="CPU",
                             padding=3,
                             threshold=90),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[4],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        arcomemory.Memory(fmt='{MemUsed} MB  {Memsza}%',
                          execute='xfce4-terminal -e htop',
                          padding=5,
                          margin=10,
                          font="Noto Sans",
                          fontsize=12,
                          update_interval=1,
                          foreground=colors[5],
                          background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        arcobattery.BatteryIcon(padding=0,
                                scale=0.7,
                                y_poss=2,
                                theme_path=home +
                                "/.config/qtile/icons/battery_icons_horiz",
                                update_interval=1,
                                background=colors[1]),
        widget.Battery(energy_now_file='charge_now',
                       energy_full_file='charge_full',
                       power_now_file='current_now',
                       charge_char="  ",
                       discharge_char="  ",
                       low_perentage=0.15,
                       low_foreground='FF0000',
                       update_interval=1),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(font="FontAwesome",
                       text="   ",
                       foreground=colors[3],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Clock(foreground=colors[5],
                     background=colors[1],
                     fontsize=16,
                     timezone="Europe/Budapest",
                     format="%H:%M"),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.Systray(background=colors[1], icon_size=20, padding=4),
    ]
    return widgets_list
Пример #17
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [

        # workspaces ##########################################################
        widget.GroupBox(
            margin_y=3,
            margin_x=0,
            padding_y=6,
            padding_x=5,
            borderwidth=0,
            disable_drag=True,
            highlight_method="text",
            fontsize=16,
            this_current_screen_border=colors[4],
            active=colors[5],
            inactive=colors[8],
        ),
        widget.Sep(
            linewidth=sep_linewidth,
            padding=sep_padding,
        ),

        # layout section ######################################################
        widget.CurrentLayoutIcon(scale=0.7, ),
        widget.CurrentLayout(font="Noto Sans Bold", ),
        widget.Sep(
            linewidth=sep_linewidth,
            padding=sep_padding,
        ),

        # window name section #################################################
        widget.CurrentScreen(
            font="FontAwesome",
            active_text="",
            inactive_text="",
            active_color=colors[8],
            inactive_color=colors[8],
        ),
        widget.WindowName(),

        # updates #############################################################
        # widget.TextBox(
        #     font = "FontAwesome",
        #     fontsize = 16,
        #     text = "  ",
        #     padding = 0,
        #     foreground = colors[5],
        # ),
        widget.Image(
            filename="~/.config/qtile/icons/updates.png",
            margin=icon_margin,
        ),
        widget.CheckUpdates(
            custom_command="checkupdates",
            display_format="{updates}",
            no_update_string="0",
            update_interval=1800,
        ),
        widget.Sep(
            linewidth=sep_linewidth,
            padding=sep_padding,
        ),

        # # battery #############################################################
        # widget.TextBox(
        # #     font = "FontAwesome",
        # #     fontsize = 16,
        # #     text = "  ",
        # #     padding = 0,
        # #     foreground = colors[4],
        # # ),
        # widget.Image(
        #     filename = "~/.config/qtile/icons/battery.png",
        #     margin = icon_margin,
        # ),
        # widget.Battery(
        #     #hide_threshold = 0.9, # doesnt hide icon
        #     low_percentage = 0.2,
        #     notify_below = 0.25,
        #     charge_char = "∧",
        #     discharge_char = "∨",
        #     full_string = "full",
        #     update_interval = 10,
        #     background = colors[9],
        # ),
        # widget.Sep(
        #     linewidth = sep_linewidth,
        #     padding = sep_padding,
        # ),

        # cpu #################################################################
        # widget.TextBox(
        #     font = "FontAwesome",
        #     fontsize = 16,
        #     text = "  ",
        #     padding = 0,
        #     foreground = colors[5],
        # ),
        widget.Image(
            filename="~/.config/qtile/icons/cpu.png",
            margin=icon_margin,
        ),
        widget.CPU(
            format="{load_percent}%",
            update_interval=2,
        ),
        widget.Sep(
            linewidth=sep_linewidth,
            padding=sep_padding,
        ),

        # temperature #########################################################
        # widget.TextBox(
        #     font = "FontAwesome",
        #     fontsize = 16,
        #     text = "  ",
        #     padding = 0,
        #     foreground = colors[5],
        # ),
        widget.Image(
            filename="~/.config/qtile/icons/temperature.png",
            margin=icon_margin,
        ),
        widget.ThermalSensor(
            threshold=70,
            foreground=colors[8],
            foreground_alert=colors[1],
        ),
        widget.Sep(
            linewidth=sep_linewidth,
            padding=sep_padding,
        ),

        # memory ##############################################################
        # widget.TextBox(
        #     font = "FontAwesome",
        #     fontsize = 16,
        #     text = "  ",
        #     padding = 0,
        #     foreground = colors[4],
        # ),
        widget.Image(
            filename="~/.config/qtile/icons/memory.png",
            margin=icon_margin,
        ),
        widget.Memory(
            format="{MemUsed:.1f}G",
            measure_mem="G",
            update_interval=1,
        ),
        widget.Sep(
            linewidth=sep_linewidth,
            padding=sep_padding,
        ),

        # clock ###############################################################
        # widget.TextBox(
        #     font = "FontAwesome",
        #     fontsize = 16,
        #     text = "  ",
        #     padding = 0,
        #     foreground = colors[4],
        # ),
        widget.Image(
            filename="~/.config/qtile/icons/clock.png",
            margin=icon_margin,
        ),
        widget.Clock(format="%H:%M", ),
        widget.Sep(
            linewidth=sep_linewidth,
            padding=sep_padding,
        ),

        # systray #############################################################
        widget.Systray(icon_size=20, ),
    ]
    return widgets_list
Пример #18
0
            Backlight(),
            widget.Volume(foreground="70ff70"),
            widget.MemoryGraph(foreground='908'),
            widget.SwapGraph(foreground='C02020'),
            widget.Sep(),
            widget.NetGraph(interface='wlp1s0'),
            widget.Battery(
                energy_now_file='charge_now',
                energy_full_file='charge_full',
                power_now_file='current_now',
                update_delay=5,
                foreground="7070ff",
            ),
            widget.BatteryIcon(),
            widget.TextBox("my config", name="default"),
            widget.ThermalSensor(tag_sensor='Physical id 0'),
            widget.Clock(format='%b-%d %a %H:%M'),
            widget.CurrentLayout(),
        ],
        scale(22),
    ), ),
]


@hook.subscribe.client_managed
def show_window(window):
    window.group.cmd_toscreen()


@hook.subscribe.client_new
def dialogs(window):
Пример #19
0
 def thermometer(self):
     return WidgetGrouping(
         widget.ThermalSensor(tag_sensor="Tctl", ),
         icon("thermometer", size="small"),
         group_coloring=self.group_coloring,
     )
Пример #20
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(font="FontAwesome",
                        fontsize=16,
                        margin_y=-1,
                        margin_x=0,
                        padding_y=6,
                        padding_x=5,
                        borderwidth=0,
                        disable_drag=True,
                        active=colors[9],
                        inactive=colors[5],
                        rounded=False,
                        highlight_method="text",
                        this_current_screen_border=colors[8],
                        foreground=colors[2],
                        background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.CurrentLayout(font="Noto Sans Bold",
                             foreground=colors[5],
                             background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.WindowName(
            font="Noto Sans",
            fontsize=12,
            foreground=colors[5],
            background=colors[1],
        ),
        # widget.Net(
        #          font="Noto Sans",
        #          fontsize=12,
        #          interface="enp0s31f6",
        #          foreground=colors[2],
        #          background=colors[1],
        #          padding = 0,
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),

        # CPU Usage
        #widget.TextBox(
        #         font="FontAwesome",
        #         text="  ",
        #         foreground=colors[6],
        #         background=colors[1],
        #         padding = 0,
        #         fontsize=16
        #         ),
        #widget.CPUGraph(
        #         border_color = colors[2],
        #         fill_color = colors[8],
        #         graph_color = colors[8],
        #         background=colors[1],
        #         border_width = 1,
        #         line_width = 1,
        #         core = "all",
        #         type = "box"
        #         ),
        #widget.Sep(
        #         linewidth = 1,
        #         padding = 10,
        #         foreground = colors[2],
        #         background = colors[1]
        #         ),
        # Temps
        widget.TextBox(
            font="FontAwesome",
            text="  ",
            foreground=colors[6],
            background=colors[1],
            padding=0,
            fontsize=16,
        ),
        widget.ThermalSensor(foreground=colors[5],
                             foreground_alert=colors[6],
                             background=colors[1],
                             metric=True,
                             padding=3,
                             threshold=80),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        # Memory Usage
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[4],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Memory(
            font="Noto Sans",
            format='{MemUsed}M/{MemTotal}M',
            update_interval=1,
            fontsize=12,
            foreground=colors[5],
            background=colors[1],
        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        # Network Activity Graph
        #widget.TextBox(
        #         font="FontAwesome",
        #         text="  ",
        #         foreground=colors[7],
        #         background=colors[1],
        #         padding = 0,
        #         fontsize=22,
        #),
        #widget.NetGraph(
        #          font="Noto Sans",
        #          fontsize=12,
        #          bandwidth="down",
        #          interface="auto",
        #          fill_color = colors[8],
        #          foreground=colors[2],
        #          background=colors[1],
        #          graph_color = colors[8],
        #          border_color = colors[2],
        #          padding = 0,
        #          border_width = 1,
        #          line_width = 1,
        #          ),
        #widget.Sep(
        #         linewidth = 1,
        #         padding = 10,
        #         foreground = colors[2],
        #         background = colors[1],
        #         ),
        # Date
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[3],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Clock(foreground=colors[5],
                     background=colors[1],
                     fontsize=12,
                     format="%m-%d-%Y "),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        # Time/Clock
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[8],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Clock(foreground=colors[5],
                     background=colors[1],
                     fontsize=12,
                     format=" %I:%M %p"),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        # Battery
        #widget.TextBox(
        #         font="FontAwesome",
        #         text="  ",
        #         foreground=colors[2],
        #         background=colors[1],
        #         padding = 0,
        #         fontsize=16
        #         ),
        # widget.Battery(
        #          font="Noto Sans",
        #          update_interval = 10,
        #          fontsize = 12,
        #          foreground = colors[5],
        #          background = colors[1],
        #          ),
        #widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # Systray
        widget.Systray(background=colors[1], icon_size=20, padding=4),
    ]
    return widgets_list
Пример #21
0
def init_widgets_list():
    widgets_list = [
              widget.TextBox(
                       text = '',
                       background = colors[0],
                       foreground = colors[3],
                       padding = 10,
                       fontsize = 15
                       ),                   
              widget.TextBox(
                       text = '|',
                       background = colors[0],
                       foreground = colors[3],
                       fontsize = 10
                       ),                   
              widget.GroupBox(
                       font = "FiraCode Bold",
                       fontsize = 10,
                       active = colors[7],
                       inactive = colors[1],
                       block_highlight_text_color = colors[8],
                       highlight_color = colors[8],
                       highlight_method = "border",
                       this_current_screen_border = colors[8],
                       this_screen_border = colors [8],
                       other_current_screen_border = colors[0],
                       other_screen_border = colors[0],
                       urgent_border = colors[9],
                       disable_drag = True
                       ),
              widget.TextBox(
                       text = '|',
                       background = colors[0],
                       foreground = colors[3],
                       fontsize = 10
                       ),         
              widget.CurrentLayout(
                       foreground = colors[7],
                       background = colors[0],
                       padding = 5
                       ),
              widget.WindowCount(
                       show_zero = True,
                       background = colors[0],
                       foreground = colors[7],
                       padding = 5
                       ),
              widget.TextBox(
                       text = '|',
                       background = colors[0],
                       foreground = colors[3],
                       fontsize = 10
                       ),                  
              widget.WindowName(
                       font = "FiraCode Bold",
                       fontsize = 10,
                       foreground = colors[3],
                       background = colors[0],
                       ),                 
              widget.TextBox(
                       text = '|',
                       background = colors[0],
                       foreground = colors[3],
                       fontsize = 10
                       ),
              widget.TextBox(
                       text = "直 ",
                       padding = 2,
                       foreground = colors[6],
                       background = colors[0],
                       fontsize = 15
                       ),          
              widget.Net(
                       format = '{down} ↓ ↑ {up}',
                       foreground = colors[6],
                       background = colors[0],
                       padding = 5
                       ),
               widget.TextBox(
                       text = '|',
                       background = colors[0],
                       foreground = colors[3],
                       fontsize = 10
                       ),         
               widget.TextBox(
                       text = "﬙",
                       padding = 2,
                       foreground = colors[10],
                       background = colors[0],
                       fontsize = 15
                       ),               
               widget.CPU(
                       format = '{freq_current}GHz {load_percent}%',
                       foreground = colors[10],
                       background = colors[0],
                       padding = 5
                       ),         
              widget.TextBox(
                       text = '|',
                       background = colors[0],
                       foreground = colors[3],
                       fontsize = 10
                       ),         
              widget.TextBox(
                       text = "",
                       padding = 2,
                       foreground = colors[5],
                       background = colors[0],
                       fontsize = 15
                       ),
              widget.ThermalSensor(
                       foreground = colors[5],
                       background = colors[0],
                       threshold = 90,
                       padding = 5
                       ),
               widget.TextBox(
                       text = '|',
                       background = colors[0],
                       foreground = colors[3],
                       fontsize = 10
                       ),         
              widget.TextBox(
                       text = "",
                       foreground = colors[4],
                       background = colors[0],
                       fontsize = 15
                       ),
              widget.Memory(
                       foreground = colors[4],
                       background = colors[0],
                       padding = 5
                       ),         
              widget.TextBox(
                       text = '|',
                       background = colors[0],
                       foreground = colors[3],
                       fontsize = 10
                       ),
              widget.TextBox(
                       text = " ",
                       padding = 2,
                       foreground = colors[8],
                       background = colors[0],
                       fontsize = 15
                       ),                  
              widget.Clock(
                       foreground = colors[8],
                       background = colors[0],
                       padding = 5,
                       format = "%A, %b %d - %H:%M"
                       ),
              widget.TextBox(
                       text = '|',
                       background = colors[0],
                       foreground = colors[3],
                       fontsize = 10
                       ),         
              widget.Systray(
                       icon_size = 15,
                       foreground = colors[3],
                       background = colors[0],
                       padding = 10
                       ),        
              ]
    return widgets_list
Пример #22
0
        # widget.CPUGraph(width=42, line_width=2,
        #     graph_color='0066FF', fill_color='001188'),
        widget.TextBox(
            text=u"\u231a", foreground="008000", fontsize=30, padding=0),
        widget.Clock('%H:%M | %d-%m-%Y %a', foreground="008000"),
        widget.TextBox(text=u"\u25c0)", foreground="70ff70", padding=0),
        widget.Volume(foreground="70ff70", update_interval=1),
        widget.TextBox(
            text=u" \u26a1", foreground="0066ff", fontsize=30, padding=0),
        widget.Battery(
            energy_now_file='charge_now',
            energy_full_file='charge_full',
            power_now_file='current_now',
            foreground="0066ff",
        ),
        widget.ThermalSensor(foreground="ff0000", update_interval=5),
        widget.TextBox(text=u"\u2328", fontsize=30, padding=0),
        widget.KeyboardLayout(configured_keyboards=["us", "ua"]),
        # widget.Wlan(interface = "wlp3s0", update_interval = 5),
        widget.Systray(),
    ],
    30)

bottom_bar = bar.Bar([
    widget.GroupBox(urgent_alert_method='text',
                    fontsize=12,
                    this_current_screen_border='7b5830'),
], 25)

screens = [
    Screen(top=top_bar, bottom=bottom_bar),
Пример #23
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.Image(
            filename="~/.config/qtile/icons/tux.png",
            scale="False",
            mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerm)},
            background=colors[0]),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.TextBox(text='|',
                       background=colors[0],
                       foreground=colors[7],
                       fontsize=20),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(font="FiraCode Nerd Font",
                        fontsize=18,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=3,
                        borderwidth=3,
                        active="#ff71ce",
                        inactive=colors[2],
                        rounded=False,
                        highlight_color=colors[0],
                        highlight_method="line",
                        this_current_screen_border=colors[6],
                        this_screen_border=colors[4],
                        other_current_screen_border=colors[6],
                        other_screen_border=colors[4],
                        foreground=colors[2],
                        background=colors[0]),
        widget.Prompt(prompt=prompt,
                      padding=10,
                      foreground=colors[3],
                      background=colors[1],
                      fontsize=16),
        widget.Sep(linewidth=0,
                   padding=40,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(foreground=colors[6],
                          background=colors[0],
                          padding=0),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[0],
                   background=colors[0]),
        widget.TextBox(text='|',
                       background=colors[0],
                       foreground=colors[7],
                       fontsize=20),
        widget.CheckUpdates(
            update_interval=1800,
            distro="Arch_checkupdates",
            display_format="⟳{updates} Updates",
            foreground=colors[2],
            mouse_callbacks={
                'Button1':
                lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')
            },
            background=colors[0]),
        widget.TextBox(text='|',
                       background=colors[0],
                       foreground=colors[7],
                       fontsize=20),
        widget.CPU(format='\uf108 cpu: {load_percent}% {freq_current}GHz',
                   foreground='#ecbe7b',
                   background=colors[0]),
        widget.TextBox(text='|',
                       background=colors[0],
                       foreground=colors[7],
                       fontsize=20),
        widget.TextBox(text=" 🌡",
                       padding=2,
                       foreground='#01cdfe',
                       background=colors[0],
                       fontsize=16),
        widget.ThermalSensor(foreground='#01cdfe',
                             background=colors[0],
                             threshold=90,
                             padding=5,
                             tag_sensor="Package id 0"),
        widget.TextBox(text='|',
                       background=colors[0],
                       foreground=colors[7],
                       fontsize=20),
        widget.TextBox(text=" 🌡",
                       padding=2,
                       foreground='#05ffa1',
                       background=colors[0],
                       fontsize=16),
        widget.NvidiaSensors(foreground='#05ffa1',
                             background=colors[0],
                             format='gpu: {temp}°C'),
        widget.TextBox(text='|',
                       background=colors[0],
                       foreground=colors[7],
                       fontsize=20),
        widget.Memory(foreground='#ff6c6b',
                      background=colors[0],
                      format='\uf233 {MemUsed: .0f}M/{MemTotal: .0f}M',
                      mouse_callbacks={
                          'Button1':
                          lambda: qtile.cmd_spawn(myTerm + ' -e htop')
                      },
                      padding=5),
        widget.TextBox(text='|',
                       background=colors[0],
                       foreground=colors[7],
                       fontsize=20),
        widget.Net(interface=interface_name,
                   format='\uf0ab {down}  \uf0aa {up}',
                   foreground='#fffb96',
                   background=colors[0],
                   padding=5),
        widget.TextBox(text='|',
                       background=colors[0],
                       foreground=colors[7],
                       fontsize=20),
        widget.TextBox(
            text="",
            foreground='#ff71ce',
            background=colors[0],
            font="Font Awesome 6 Free Solid",
            # fontsize=38,
        ),
        widget.Volume(
            #foreground = '#828CF6',
            foreground='#ff71ce',
            background=colors[0],
            padding=5),
        widget.TextBox(text='|',
                       background=colors[0],
                       foreground=colors[7],
                       fontsize=20),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground='#c678dd',
            background=colors[0],
            padding=0,
            scale=0.7),
        widget.CurrentLayout(foreground='#c678dd',
                             background=colors[0],
                             padding=5),
        widget.TextBox(text='|',
                       background=colors[0],
                       foreground=colors[7],
                       fontsize=20),
        widget.TextBox(
            text="",
            # text="\uF551",
            foreground='#46d9ff',
            background=colors[0],
            font="Font Awesome 6 Free Solid",
            # fontsize=38,
        ),
        widget.Clock(foreground='#46d9ff',
                     background=colors[0],
                     format="%A, %B %d - %H:%M:%S",
                     mouse_callbacks={
                         'Button1':
                         lambda: qtile.cmd_spawn(
                             myTerm + f" --hold -e cal {current_year}")
                     }),
        widget.TextBox(text='|',
                       background=colors[0],
                       foreground=colors[7],
                       fontsize=20),
        widget.Systray(background=colors[0], icon_size=21, padding=4),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[0],
                   background=colors[0]),
    ]
    return widgets_list
Пример #24
0
    *workspaces(),
    separator(),
    powerline('color1', 'dark'),
    widget.CurrentLayoutIcon(**base(bg='color1'), scale=0.65),
    widget.CurrentLayout(**base(bg='color1'), padding=5),
    powerline('color2', 'color1'),
    icon(bg="color2", fontsize=22, text=' '),  # Icon: nf-mdi-calendar_clock
    widget.Memory(**base(bg="color2"), padding=5),
    powerline('color3', 'color2'),
    icon(bg="color3", text=" "),  # Icon: nf-fa-feed
    widget.Net(**base(bg='color3'), format="{down} | {up}"),
    powerline('color4', 'color3'),
    icon(bg="color4", text=' '),  # Icon: nf-weather-thermometer
    widget.OpenWeather(
        **base(bg='color4'),
        format=
        "{location_city} {main_temp}°{units_temperature} [{weather_details}]",
        cityid='3893894',
        language='es',
        update_interval=60),
    powerline('dark', 'color4'),
    widget.ThermalSensor(**base(bg='dark', fg='light')),
]

widget_defaults = {
    'font': 'UbuntuMono Nerd Font Bold',
    'fontsize': 14,
    'padding': 1,
}

extension_defaults = widget_defaults.copy()
Пример #25
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors["foreground"][0],
                   background=colors["background"][0]),
        widget.GroupBox(
            font="Hack Nerd Font",
            fontsize=10,
            margin_y=4,
            margin_x=10,
            padding_y=4,
            padding_x=10,
            borderwidth=0,
            active=colors["foreground"][1],
            inactive=colors["foreground"][1],
            rounded=False,
            highlight_color=colors["red"][0],
            highlight_method="block",
            this_current_screen_border=colors["red"][0],
            # this_screen_border = ,
            #other_current_screen_border = colors[0],
            #other_screen_border = colors[0],
            foreground=colors["foreground_color"][0],
            background=colors["background"][1]),
        widget.Prompt(prompt=prompt,
                      padding=10,
                      foreground=colors["foreground"][0],
                      background=colors["background"][0]),
        widget.Spacer(
            length=bar.STRETCH,
            background=colors["background"][0],
        ),
        # widget.TextBox(
        #         text = '',
        #         background = colors[0],
        #         foreground = colors[4],
        #         padding = 0,
        #         fontsize = 37
        #         ),
        # widget.TextBox(
        #         text = " ₿",
        #         padding = 0,
        #         foreground = colors[2],
        #         background = colors[4],
        #         fontsize = 12
        #         ),
        # widget.BitcoinTicker(
        #         foreground = colors[2],
        #         background = colors[4],
        #        padding = 5
        #         ),
        widget.TextBox(
            text=" 🌡",
            padding=0,
            foreground=colors["foreground_color"][0],
            background=colors["red"][0],
        ),
        widget.ThermalSensor(foreground=colors["foreground_color"][0],
                             background=colors["red"][0],
                             threshold=90,
                             padding=5),
        widget.TextBox(
            text=" ⟳",
            padding=2,
            foreground=colors["foreground_color"][0],
            background=colors["green"][0],
        ),
        widget.Pacman(update_interval=5,
                      foreground=colors["foreground_color"][0],
                      mouse_callbacks={
                          'Button1':
                          lambda qtile: qtile.cmd_spawn(terminal +
                                                        ' -e sudo pacman -Syu')
                      },
                      background=colors["green"][0]),
        widget.TextBox(text="Updates",
                       padding=5,
                       mouse_callbacks={
                           'Button1':
                           lambda qtile: qtile.cmd_spawn(
                               terminal + ' -e sudo pacman -Syu')
                       },
                       foreground=colors["foreground_color"][0],
                       background=colors["green"][0]),
        widget.TextBox(text=" Vol:",
                       foreground=colors["foreground_color"][0],
                       background=colors["yellow"][0],
                       padding=0),
        widget.Volume(
            background=colors["yellow"][0],
            padding=5,
        ),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            background=colors["blue"][0],
            padding=0,
            scale=0.7),
        widget.CurrentLayout(background=colors["blue"][0], padding=5),
        widget.Clock(background=colors["purple"][0],
                     format="%A, %B %d  [ %H:%M ]",
                     padding=5),
        widget.Sep(linewidth=0, padding=10, background=colors["purple"][0]),
    ]
    return widgets_list
Пример #26
0
             widget.CPUGraph(graph_color='#18BAEB',
                             fill_color='#1667EB.3',
                             **Widget.graph),
             widget.MemoryGraph(graph_color='#00FE81',
                                fill_color='#00B25B.3',
                                **Widget.graph),
             widget.SwapGraph(graph_color='#5E0101',
                              fill_color='#FF5656',
                              **Widget.graph),
             widget.NetGraph(graph_color='#ffff00',
                             fill_color='#4d4d00',
                             interface='wlan0',
                             **Widget.graph),
             widget.HDDBusyGraph(device='sda', **Widget.graph),
             widget.HDDBusyGraph(device='sdb', **Widget.graph),
             widget.ThermalSensor(metric=False, threshold=158),
             widget.Sep(**Widget.sep),
             widget.CurrentLayout(),
             widget.Systray(**Widget.systray),
             widget.BatteryIcon(**Widget.battery),
             # widget.Battery(**Widget.battery_text),
             widget.Volume(
                 theme_path='/usr/share/icons/Humanity/status/22/',
                 cardid=1),
             widget.YahooWeather(location='Fresno, CA', **Widget.weather),
             widget.Clock(fmt='%a %d %b %I:%M %p'),
         ],
         **bar_defaults), ),
 Screen(top=bar.Bar(widgets=[
     widget.GroupBox(**Widget.groupbox),
     widget.WindowName(),
Пример #27
0
                 inactive=colours["fg_normal"],
                 this_current_screen_border=colours["blue"],
                 this_screen_border=colours["blue"],
                 other_current_screen_border=colours["yellow"],
                 other_screen_border=colours["yellow"],
                 urgent_border=colours["red"]),
 widget.TaskList(icon_size=0,
                 border=colours["green"],
                 urgent_border=colours["red"]),
 widget.Spacer(),
 widget.Cmus(play_color=colours["green"],
             noplay_color=colours["fg_dim"]),
 widget.Sep(),
 widget.TextBox(text="", fontsize="32", foreground=colours["yellow"]),
 widget.ThermalSensor(foreground=colours["fg_normal"],
                      forground_alert=colours["red"],
                      tag_sensor="Tdie"),
 widget.Sep(),
 widget.TextBox(text="", fontsize="32", foreground=colours["yellow"]),
 widget.CPU(foreground=colours["fg_normal"],
            format="{load_percent}% {freq_current}GHz",
            update_interval=3.0),
 widget.Sep(),
 widget.TextBox(text="", fontsize="32", foreground=colours["yellow"]),
 widget.Memory(foreground=colours["fg_normal"],
               format="{MemUsed}/{MemTotal}MiB",
               update_interval=3.0),
 widget.Sep(),
 widget.TextBox(text="", fontsize="32", foreground=colours["yellow"]),
 widget.Net(foreground=colours["fg_normal"],
            update_interval=3.0,
Пример #28
0
def init_widgets_list():
    widgets_list = [
        # Initial Spacer
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[1]),
        # Python Image to launch terminal
        widget.Image(
            filename="~/.config/qtile/python.png",
            scale="False",
            mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(myTerminal)}),
        # Group Box
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[1]),
        widget.GroupBox(font="MonoLisa",
                        fontsize=11,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=3,
                        borderwidth=3,
                        active=colors[5],
                        inactive=colors[2],
                        rounded=True,
                        highlight_color=colors[0],
                        this_current_screen_border=colors[6],
                        this_screen_border=colors[4],
                        other_current_screen_border=colors[6],
                        other_screen_border=colors[4],
                        foreground=colors[2],
                        background=colors[1]),
        # Space separator
        widget.Sep(linewidth=0,
                   padding=40,
                   foreground=colors[2],
                   background=colors[1]),
        # Widow Name
        widget.WindowName(max_chars=25,
                          empty_string='---',
                          foreground=colors[6],
                          background=colors[1],
                          padding=0),
        # System Tray
        widget.Systray(background=colors[1], padding=5),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[1],
                   background=colors[1]),
        # Thermal Sensor
        widget.ThermalSensor(foreground=colors[5],
                             background=colors[0],
                             threshold=90,
                             padding=5),
        # Updates
        widget.TextBox(
            font="MonoLisa Nerd Font",
            fontsize=16,
            text=' ',
            background=colors[1],
            foreground=colors[0],
            padding=0,
        ),
        widget.CheckUpdates(
            update_interval=1800,
            distro="Arch_checkupdates",
            display_format="{updates} Updates",
            foreground=colors[5],
            mouse_callbacks={
                'Button1':
                lambda: qtile.cmd_spawn(myTerminal + ' -e sudo pacman -Syu')
            },
            background=colors[0]),
        widget.TextBox(font="MonoLisa Nerd Font",
                       text=' ',
                       background=colors[1],
                       foreground=colors[0],
                       padding=0,
                       fontsize=16),
        # Memory
        widget.TextBox(
            font="MonoLisa Nerd Font",
            text=' ',
            fontsize=16,
            background=colors[1],
            foreground=colors[0],
            padding=0,
        ),
        widget.Memory(foreground=colors[5],
                      background=colors[0],
                      mouse_callbacks={
                          'Button1':
                          lambda: qtile.cmd_spawn(myTerminal + ' -e htop')
                      },
                      padding=5),
        widget.TextBox(font="MonoLisa Nerd Font",
                       text=' ',
                       background=colors[1],
                       foreground=colors[0],
                       padding=0,
                       fontsize=16),
        # Volume
        widget.TextBox(
            font="MonoLisa Nerd Font",
            fontsize=16,
            text=' ',
            background=colors[1],
            foreground=colors[0],
            padding=0,
        ),
        widget.TextBox(
            text=" ",
            foreground=colors[7],
            background=colors[0],
            font="Font Awesome 5 Free Solid",
            # fontsize=38,
        ),
        widget.Volume(
            foreground=colors[7],
            background=colors[0],
            mouse_callbacks={"Button3": open_pavu},
            padding=5,
        ),
        widget.TextBox(font="MonoLisa Nerd Font",
                       text=' ',
                       background=colors[1],
                       foreground=colors[0],
                       padding=0,
                       fontsize=16),
        # Current Layout
        widget.TextBox(
            font="MonoLisa Nerd Font",
            fontsize=16,
            text=' ',
            background=colors[1],
            foreground=colors[0],
            padding=0,
        ),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[5],
            background=colors[0],
            padding=0,
            scale=0.7),
        widget.CurrentLayout(foreground=colors[5],
                             background=colors[0],
                             padding=5),
        widget.TextBox(font="MonoLisa Nerd Font",
                       text=' ',
                       background=colors[1],
                       foreground=colors[0],
                       padding=0,
                       fontsize=16),
        # CPU
        widget.TextBox(
            font="MonoLisa Nerd Font",
            fontsize=16,
            text=' ',
            background=colors[1],
            foreground=colors[0],
            padding=0,
        ),
        widget.CPU(background=colors[0], foreground=colors[6], fontsize=16),
        widget.TextBox(font="MonoLisa Nerd Font",
                       text=' ',
                       background=colors[1],
                       foreground=colors[0],
                       padding=0,
                       fontsize=16),
        # Clock
        widget.TextBox(
            font="MonoLisa Nerd Font",
            fontsize=16,
            text=' ',
            background=colors[1],
            foreground=colors[0],
            padding=0,
        ),
        widget.TextBox(
            text="",
            font="Font Awesome 5 Free Solid",
            foreground=colors[8],  # fontsize=38
            background=colors[0],
        ),
        widget.Clock(foreground=colors[8],
                     background=colors[0],
                     format="%A, %B %d - %H:%M "),
        widget.TextBox(font="MonoLisa Nerd Font",
                       text=' ',
                       background=colors[1],
                       foreground=colors[0],
                       padding=0,
                       fontsize=16),
        # Poweroff Button
        widget.TextBox(
            font="MonoLisa Nerd Font",
            fontsize=16,
            text=' ',
            background=colors[1],
            foreground=colors[0],
            padding=0,
        ),
        widget.TextBox(
            text="⏻",
            foreground=colors[5],
            font="Font Awesome 5 Free Solid",
            fontsize=16,
            padding=10,
            mouse_callbacks={"Button1": open_powermenu},
        ),
        widget.TextBox(font="MonoLisa Nerd Font",
                       text=' ',
                       background=colors[1],
                       foreground=colors[0],
                       padding=0,
                       fontsize=16),
    ]
    return widgets_list
Пример #29
0
for screen in range(0, num_screens):
    screens.append(
        Screen(
            top=bar.Bar(
                [
                    widget.GroupBox(disable_drag=True),
                    # widget.Prompt(),
                    # widget.WindowName(),
                    widget.TaskList(),
                    widget.Systray(),
                    widget.Sep(linewidth=2, padding=2),
                    widget.TextBox("­ЪДа"),
                    widget.Memory(),
                    widget.Sep(linewidth=2, padding=2),
                    widget.TextBox("­ЪќЦ№ИЈ"),
                    widget.ThermalSensor(tag_sensor="Package id 0"),
                    widget.Sep(linewidth=2, padding=2),
                    widget.TextBox("­ЪЊХ"),
                    widget.Net(interface=["wlo1"],
                               update_interval=10,
                               format='{down}РєЊРєЉ{up}'),
                    widget.Sep(linewidth=2, padding=2),
                    widget.TextBox("­ЪЊй№ИЈ"),
                    widget.ThermalSensor(tag_sensor="temp1"),
                    widget.Sep(linewidth=2, padding=2),
                    #widget.TextBox("­ЪћІ"),
                    #widget.Sep(linewidth=2, padding=2),
                    widget.TextBox("­ЪЋњ"),
                    widget.Clock(format='%a %d.%m.%Y - %H:%M'),
                    #widget.Sep(linewidth=2, padding=2),
                    #widget.TextBox("­ЪљІ"),
Пример #30
0
 widget.TextBox(text="",
                fontsize=20,
                padding=0,
                foreground=color3,
                background=color1),
 widget.CheckUpdates(no_update_string="No updates", background=color3),
 widget.Sep(linewidth=0, padding=8, background=color3),
 widget.TextBox(text="",
                fontsize=20,
                padding=0,
                foreground=color1,
                background=color3),
 widget.CPU(background=color1,
            format='CPU {freq_current}GHz {load_percent}%'),
 widget.Sep(linewidth=0, padding=8, background=color1),
 widget.ThermalSensor(background=color1, ),
 widget.Sep(linewidth=0, padding=8, background=color1),
 widget.TextBox(text="",
                fontsize=20,
                padding=0,
                foreground=color3,
                background=color1),
 widget.Clock(
     format='%a, %d/%m %H:%M',
     background=color3,
 ),
 widget.Sep(linewidth=0, padding=8, background=color3),
 widget.TextBox(text="",
                fontsize=20,
                padding=0,
                foreground=bg_color,