コード例 #1
0
ファイル: config.py プロジェクト: rschwalk/dotfiles
def init_widgets_list():
    label_font_size = 14
    widget_font_size = 12
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.Sep(
            linewidth=0,
            padding=6,
            foreground=colors[1],
        ),
        widget.GroupBox(
            font="Source Code Pro",
            fontsize=10,
            margin_y=5,
            margin_x=0,
            padding_y=5,
            padding_x=5,
            borderwidth=3,
            active=colors[3],
            inactive=colors[5],
            highlight_color=colors[0],
            rounded=True,
            highlight_method="line",
            this_current_screen_border=colors[1],
            this_screen_border=colors[9],
            other_current_screen_border=colors[5],
            other_screen_border=colors[4],
            foreground=colors[2],
        ),
        widget.Prompt(prompt=prompt,
                      font="Noto Sans Mono Regular",
                      fontsize=widget_font_size,
                      padding=10,
                      foreground=colors[3],
                      background=colors[1]),
        widget.Sep(
            linewidth=2,
            padding=10,
            foreground=colors[1],
        ),
        widget.TextBox(font="Noto Sans Mono Bold",
                       text=" Layout:",
                       foreground=colors[8],
                       fontsize=label_font_size),
        widget.CurrentLayout(
            fontsize=widget_font_size,
            foreground=colors[6],
        ),
        widget.Sep(
            linewidth=2,
            padding=10,
            foreground=colors[1],
        ),
        widget.WindowName(
            font="Noto Sans Mono Regular",
            fontsize=widget_font_size,
            foreground=colors[6],
        ),
        widget.Sep(
            linewidth=2,
            padding=10,
            foreground=colors[1],
        ),
        widget.Systray(),
        widget.Sep(
            linewidth=2,
            padding=10,
            foreground=colors[1],
        ),
        widget.TextBox(font="Noto Sans Mono Bold",
                       text="CPU:",
                       foreground=colors[8],
                       fontsize=label_font_size),
        widget.CPU(
            font="Noto Sans Mono Regular",
            fontsize=widget_font_size,
            foreground=colors[6],
        ),
        widget.Sep(
            linewidth=2,
            padding=10,
            foreground=colors[1],
        ),
        widget.TextBox(font="Noto Sans Mono Bold",
                       text="Mem.:",
                       foreground=colors[8],
                       fontsize=label_font_size),
        widget.Memory(
            font="Noto Sans Mono Regular",
            fontsize=widget_font_size,
            foreground=colors[6],
        ),
        widget.Sep(
            linewidth=2,
            padding=10,
            foreground=colors[1],
        ),
        widget.TextBox(font="Noto Sans Mono Bold",
                       text="Net:",
                       foreground=colors[8],
                       fontsize=label_font_size),
        widget.Net(
            font="Noto Sans Mono Regular",
            fontsize=widget_font_size,
            interface="enp27s0",
            foreground=colors[6],
        ),
        widget.Sep(
            linewidth=2,
            padding=10,
            foreground=colors[1],
        ),
        widget.TextBox(font="Noto Sans Mono Bold",
                       text="Vol.:",
                       foreground=colors[8],
                       fontsize=label_font_size),
        widget.Volume(
            font="Noto Sans Mono Regular",
            fontsize=widget_font_size,
            foreground=colors[6],
        ),
        #widget.Sep(
        #         linewidth = 2,
        #         padding = 10,
        #         foreground = colors[1],
        #         background = colors[0]
        #         ),
        #widget.TextBox(
        #         font="Noto Sans Bold",
        #         text=" ♫",
        #         padding = 5,
        #         foreground=colors[8],
        #         background=colors[0],
        #         fontsize=14
        #         ),
        #widget.Cmus(
        #         max_chars = 40,
        #         update_interval = 0.5,
        #         foreground=colors[6],
        #         background = colors[0]
        #         ),
        widget.Sep(
            linewidth=2,
            padding=10,
            foreground=colors[1],
        ),
        widget.TextBox(font="Noto Sans Mono Bold",
                       text="T:",
                       foreground=colors[8],
                       padding=5,
                       fontsize=label_font_size),
        widget.Clock(font="Noto Sans Mono Bold",
                     fontsize=widget_font_size,
                     foreground=colors[6],
                     format="%A, %B %d - %H:%M"),
        widget.Sep(
            linewidth=2,
            padding=5,
            foreground=colors[1],
        ),
        #        widget.GroupBox(foreground=theme["text"],
        #            active=theme["text"],
        #            inactive=theme["text_unfocus"],
        #            background=theme["background"],
        #            this_current_screen_border=theme["focus"],
        #            this_screen_border=theme["normal"],
        #            other_current_screen_border=theme["other_focus"]),
        #        widget.Prompt(),
        #        # widget.WindowName(),
        #        widget.Spacer(length=bar.STRETCH),
        #        widget.Systray(),
        #        widget.TextBox("🕑", foreground=theme["foreground"]),
        #        widget.Clock(format='%Y-%m-%d %a %H:%M', foreground=theme["foreground"]),
    ]

    return widgets_list
コード例 #2
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.TextBox(
            #foreground = darkText,
            background=colors[0],
            text="⏻",
            mouse_callbacks={
                'Button1': lambda qtile: qtile.cmd_spawn("shutdown-dialog")
            }),
        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[2],
                        rounded=False,
                        highlight_color=colors[1],
                        highlight_method="line",
                        this_current_screen_border=colors[3],
                        this_screen_border=colors[4],
                        other_current_screen_border=colors[0],
                        other_screen_border=colors[0],
                        foreground=colors[2],
                        background=colors[0]),
        widget.Prompt(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[5],
                          background=colors[0],
                          padding=0),
        widget.TextBox(text='◥',
                       background=colors[0],
                       foreground=colors[6],
                       fontsize=60,
                       width=27),
        widget.TextBox(text=" 🌡",
                       padding=2,
                       foreground=darkText,
                       background=colors[6],
                       fontsize=11),
        widget.ThermalSensor(foreground=darkText,
                             background=colors[6],
                             threshold=90,
                             padding=5),
        widget.TextBox(text='◥',
                       background=colors[6],
                       foreground=colors[7],
                       fontsize=60,
                       width=27),
        widget.TextBox(text=" 🖬",
                       foreground=darkText,
                       background=colors[7],
                       padding=0,
                       fontsize=14),
        widget.Memory(foreground=darkText,
                      background=colors[7],
                      mouse_callbacks={
                          'Button1':
                          lambda qtile: qtile.cmd_spawn(myTerm + ' -e htop')
                      },
                      padding=5),
        widget.TextBox(text='◥',
                       background=colors[7],
                       foreground=colors[8],
                       fontsize=60,
                       width=27),
        widget.Net(interface="enp34s0",
                   format='{down} ↓↑ {up}',
                   foreground=darkText,
                   background=colors[8],
                   padding=5),
        widget.TextBox(text='◥',
                       background=colors[8],
                       foreground=colors[9],
                       fontsize=60,
                       width=27),
        widget.TextBox(text=" Vol:",
                       foreground=darkText,
                       background=colors[9],
                       padding=0),
        widget.Volume(foreground=darkText, background=colors[9], padding=5),
        widget.TextBox(text='◥',
                       background=colors[9],
                       foreground=colors[10],
                       fontsize=60,
                       width=27),
        widget.TextBox(text=" ☐",
                       foreground=darkText,
                       background=colors[10],
                       padding=0),
        widget.CurrentLayout(foreground=darkText,
                             background=colors[10],
                             padding=5),
        widget.TextBox(text='◥',
                       background=colors[10],
                       foreground=colors[11],
                       fontsize=60,
                       width=27),
        widget.Clock(foreground=darkText,
                     background=colors[11],
                     padding=5,
                     format="%A, %B %d  [ %H:%M ]"),
        widget.Systray(background=colors[11], padding=5),
    ]
    return widgets_list
コード例 #3
0
     fontsize=10,
     padding=10,
     background="#37474F",
     scale=0.8),
 widget.TextBox(text='',
                background="#455A64",
                foreground="#37474F",
                padding=0,
                fontsize=20),
 widget.Sep(linewidth=0,
            padding=10,
            foreground=colors[2],
            background="#455A64"),
 widget.WindowName(
     show_state=True,
     foreground="#ffffff",
     background="#455A64",
 ),
 widget.TextBox(text='',
                background="#292d3e",
                foreground="#455A64",
                padding=0,
                fontsize=20),
 widget.Sep(linewidth=0,
            padding=150,
            foreground=colors[2],
            background=colors[0]),
 widget.GroupBox(font="Mononoki Nerd Font",
                 fontsize=18,
                 borderwidth=7,
                 active="#ffffff",
コード例 #4
0
ファイル: config.py プロジェクト: LeonardoTJ/puntoarchivos
def init_widgets_list():
    widgets_list = [
              widget.CurrentLayout(
                       foreground = colors[2],
                       background = colors[4],
                       padding = 5
                       ),
              widget.GroupBox(
                       font = "Blex Mono Nerd Font",
                       fontsize = 9,
                       margin_y = 3,
                       margin_x = 0,
                       padding_y = 5,
                       padding_x = 3,
                       borderwidth = 3,
                       active = colors[2],
                       inactive = colors[2],
                       rounded = False,
                       highlight_color = colors[1],
                       highlight_method = "line",
                       this_current_screen_border = colors[3],
                       this_screen_border = colors [4],
                       other_current_screen_border = colors[0],
                       other_screen_border = colors[0],
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.Prompt(
                       # prompt = prompt,
                       font = "Blex Mono Nerd Font",
                       padding = 10,
                       foreground = colors[3],
                       background = colors[1]
                       ),
              widget.Sep(
                       linewidth = 0,
                       padding = 40,
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.WindowName(
                       foreground = colors[2],
                       background = colors[0],
                       padding = 0
                       ),
              widget.Sep(
                       linewidth = 0,
                       padding = 40,
                       foreground = colors[2],
                       background = colors[0]
                       ),
              widget.TextBox(
                      text = "[",
                       foreground = colors[2],
                       background = colors[5],
                       padding = 0
                       ),
              widget.Volume(
                       foreground = colors[2],
                       background = colors[5],
                       padding = 5
                       ),
              widget.TextBox(
                      text = "]",
                       foreground = colors[2],
                       background = colors[5],
                       padding = 0
                       ),
              widget.Clock(
                       foreground = colors[2],
                       background = colors[5],
                       format = "%A, %B %d  [ %H:%M ]"
                       ),
              widget.Sep(
                       linewidth = 0,
                       padding = 10,
                       foreground = colors[0],
                       background = colors[5]
                       ),
              widget.Systray(
                       background = colors[0],
                       padding = 5
                       )
              ]
    return widgets_list
コード例 #5
0
                 active=colors[6],
                 inactive=colors[6],
                 rounded=False,
                 highlight_color=colors[3],
                 highlight_method="block",
                 this_current_screen_border=colors[3],
                 this_screen_border=colors[0],
                 other_current_screen_border=colors[0],
                 other_screen_border=colors[0],
                 foreground=colors[6],
                 background=colors[0]),
 widget.Sep(
     linewidth=0,
     padding=40,
 ),
 widget.WindowName(foreground=colors[14], background=colors[0], padding=0),
 widget.Systray(foreground=colors[14], background=colors[0], padding=0),
 widget.TextBox(text='',
                background=colors[0],
                foreground=colors[7],
                padding=0,
                fontsize=37),
 widget.TextBox(text=" ï‹›",
                padding=0,
                foreground=colors[0],
                background=colors[7],
                fontsize=12),
 widget.CPU(format='CPU {freq_current}GHz {load_percent}%',
            update_interval=1.0,
            foreground=colors[0],
            background=colors[7],
コード例 #6
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=4,
                   foreground=colors[2],
                   background=colors[0]),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[0],
            background=colors[6],
            padding=0,
            scale=0.7),
        widget.CurrentLayout(foreground=colors[2],
                             background=colors[6],
                             padding=5),
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(
            font="monospace",
            fontsize=9,
            margin_y=3,
            margin_x=0,
            padding_y=5,
            padding_x=3,
            borderwidth=3,
            active=colors[2],
            inactive=colors[6],
            rounded=False,
            highlight_color=colors[1],
            highlight_method="line",
            this_current_screen_border=colors[3],
            other_current_screen_border=colors[4],
            inactive_current_screen_border=colors[6],
            this_screen_border=colors[6],
            other_screen_border=colors[4],
            inactive_screen_border=colors[6],
            foreground=colors[2],
            background=colors[0],
            disable_drag=True,
        ),
        widget.Sep(linewidth=0,
                   padding=20,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(foreground=colors[2],
                          background=colors[0],
                          padding=0),
        widget.TextBox(text='',
                       background=colors[0],
                       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.Pacman(update_interval=1800,
                      foreground=colors[2],
                      mouse_callbacks={
                          'Button1':
                          lambda qtile: qtile.cmd_spawn(terminal +
                                                        ' -e sudo pacman -Syu')
                      },
                      background=colors[4]),
        widget.TextBox(text="Updates",
                       padding=5,
                       mouse_callbacks={
                           'Button1':
                           lambda qtile: qtile.cmd_spawn(
                               terminal + ' -e sudo pacman -Syu')
                       },
                       foreground=colors[2],
                       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: qtile.cmd_spawn(terminal + ' -e htop')
                      },
                      padding=5),
        widget.TextBox(text='',
                       background=colors[5],
                       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=" 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.Clock(foreground=colors[2],
                     background=colors[4],
                     format="%A, %B %d  [ %I:%M%p ]"),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[0],
                   background=colors[4]),
        widget.Systray(background=colors[4], padding=5),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[0],
                   background=colors[4]),
    ]
    return widgets_list
コード例 #7
0
ファイル: config.py プロジェクト: ethan-sorrell/dotfiles
    foreground="#ebdbb2",
)

extension_defaults = widget_defaults.copy()

common_bar_prefix = [
    widget.CurrentLayout(),
    widget.GroupBox(active="ebdbb2",
                    disable_drag=True,
                    highlight_method="block",
                    this_current_screen_border='928374',
                    this_screen_border='928374',
                    other_current_screen_border='3c3836',
                    other_screen_border='3c3836'),
    widget.Prompt(),
    widget.WindowName(background="3c3836"),
    widget.OpenWeather(
        zip="35114",
        metric=False,
        format='⛅ {main_temp} °{units_temperature} {humidity}% {weather_details}'),
    widget.Sep(padding=12, size_percent=80, foreground="504945"),
    widget.Net(format="{down} ↓↑ {up}"),
    widget.Sep(padding=12, size_percent=80, foreground="504945"),
    widget.TextBox("CPU:"),
    widget.CPUGraph(),
]
common_bar_suffix = [
    widget.Sep(padding=12, size_percent=80, foreground="504945"),
    widget.Clock(format='%a %m/%d/%Y %H:%M:%S'),
    widget.Sep(padding=12, size_percent=80, foreground="504945"),
    widget.Systray(),
コード例 #8
0
ファイル: config.py プロジェクト: wiedzmin/nixos-config
     fontsize=12,
     border_width=2,
     disable_drag=True,
     highlight_method="line",
     highlight_color=['#000000', '#000000'],
     hide_unused=True,
     spacing=0,
 ),
 widget.Prompt(
     font="Iosevka Bold",
     fontsize=14,
     prompt="run: ",
     ignore_dups_history=True,
 ),
 widget.WindowName(
     font="Iosevka Bold",
     fontsize=14,
 ),
 widget.CPUGraph(
     font="Iosevka Bold",
     fontsize=14,
     width=30,
     border_width=1,
     border_color="#000000",
     frequency=5,
     line_width=1,
     samples=50,
 ),
 widget.MemoryGraph(font="Iosevka Bold",
                    fontsize=14,
                    width=30,
                    border_width=1,
コード例 #9
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(
            font="Iosevka Nerd Font",
            fontsize=16,
            margin_y=3,  # changed from -1 when i was using icons before
            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="Iosevka Nerd Font",
                             fontsize=16,
                             foreground=colors[5],
                             background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.WindowName(
            font="Iosevka Nerd Font",
            fontsize=16,
            foreground=colors[5],
            background=colors[1],
        ),
        # # do not activate in Virtualbox - will break qtile
        # widget.ThermalSensor(
        #          foreground = colors[5],
        #          foreground_alert = colors[6],
        #          background = colors[1],
        #          metric = True,
        #          padding = 3,
        #          threshold = 80
        #          ),
        # # battery option 1  ArcoLinux Horizontal icons do not forget to import arcobattery at the top
        # 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 = 5,
        #          background = colors[1]
        #          ),
        # # battery option 2  from Qtile
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # widget.Battery(
        #          font="Noto Sans",
        #          update_interval = 10,
        #          fontsize = 12,
        #          foreground = colors[5],
        #          background = colors[1],
        #          ),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[7],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Net(
            font="Iosevka Nerd Font",
            fontsize=16,
            format="{down} ↓↑{up}",
            interface="enp0s31f6",
            foreground=colors[2],
            background=colors[1],
            padding=0,
        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        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]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[4],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Memory(
            font="Iosevka Nerd Font",
            format='{MemUsed}M/{MemTotal}M',
            update_interval=1,
            fontsize=16,
            foreground=colors[5],
            background=colors[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(font="Iosevka Nerd Font",
                     foreground=colors[5],
                     background=colors[1],
                     fontsize=16,
                     format="%Y-%m-%d %H:%M"),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.Systray(background=colors[1], icon_size=20, padding=5),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
    ]
    return widgets_list
コード例 #10
0
ファイル: config.py プロジェクト: johangwbasson/dotfiles
                 highlight_method="line"),
 widget.Sep(
     linewidth=0,
     padding=40,
 ),
 widget.CurrentLayoutIcon(
     custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
     padding=0,
     scale=0.7,
     foreground='#b294bb'),
 widget.CurrentLayout(padding=5, foreground='#c5c8c6'),
 widget.Sep(
     linewidth=0,
     padding=40,
 ),
 widget.WindowName(padding=0, foreground='#8abeb7'),
 widget.Sep(
     linewidth=0,
     padding=40,
 ),
 widget.Systray(padding=5),
 widget.Sep(
     linewidth=0,
     padding=6,
 ),
 widget.Net(interface="enp0s3",
            format='{down} ↓↑ {up}',
            padding=5,
            foreground='#cc6666'),
 widget.Memory(mouse_callbacks={
     'Button1': lambda: qtile.cmd_spawn(myTerm + ' -e htop')
コード例 #11
0
    keys.append(Key(["mod1"], i.name, lazy.group[i.name].toscreen()))
    keys.append(Key(["mod1", "shift"], i.name, lazy.window.togroup(i.name)))

keys.append(Key(["mod1"], "Left", lazy.group.prevgroup()))
keys.append(Key(["mod1"], "Right", lazy.group.nextgroup()))
keys.append(Key(["mod1", "shift"], "Left", lazy.function(toPrevGroup)))
keys.append(Key(["mod1", "shift"], "Right", lazy.function(toNextGroup)))

##########################################################################################

layouts = [layout.Max(), layout.Stack(stacks=2)]

screens = [
    Screen(bottom=bar.Bar(
        [
            widget.GroupBox(),
            widget.WindowName(fontsize=12),
            widget.Systray(),
            widget.Clock('%I:%M %p', fontsize=12, padding=6),
        ],
        30,
    ), ),
]

main = None
follow_mouse_focus = True
cursor_warp = False
floating_layout = layout.Floating()
mouse = ()
os.system("feh --bg-scale ~/Desktop/backgroundImage")
コード例 #12
0
def make_widget_list():
    widget_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.GroupBox(font="Ubuntu Bold",
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=3,
                        borderwidth=3,
                        active=colors[2],
                        inactive=colors[2],
                        rounded=False,
                        highlight_color=colors[1],
                        highlight_method="line",
                        this_current_screen_border=colors[6],
                        this_screen_border=colors[4],
                        other_current_screen_border=colors[6],
                        other_screen_border=colors[4],
                        foreground=colors[2],
                        background=colors[0]),
        widget.Sep(linewidth=0,
                   padding=40,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(fontsize=20,
                          foreground=colors[6],
                          background=colors[0],
                          padding=0),
        widget.Systray(background=colors[0], padding=5),
        widget.Sep(linewidth=0,
                   padding=8,
                   foreground=colors[0],
                   background=colors[0]),
        widget.TextBox(
            text=" 🌡",
            padding=2,
            foreground=colors[10],
            background=colors[5],
        ),
        widget.ThermalSensor(foreground=colors[10],
                             background=colors[5],
                             threshold=90,
                             padding=5),
        widget.Sep(linewidth=0,
                   padding=8,
                   foreground=colors[0],
                   background=colors[0]),
        widget.TextBox(
            text=" 🖬",
            foreground=colors[10],
            background=colors[4],
            padding=0,
        ),
        widget.Memory(foreground=colors[10],
                      background=colors[4],
                      mouse_callbacks={
                          'Button1':
                          lambda: qtile.cmd_spawn(terminal + ' -e htop')
                      },
                      padding=5,
                      measure_mem='G'),
        widget.Sep(linewidth=0,
                   padding=8,
                   foreground=colors[0],
                   background=colors[0]),
        widget.Battery(foreground=colors[10],
                       background=colors[5],
                       padding=5,
                       discharge_char="discharging: ",
                       charge_char="charging: ",
                       empty_char="empty: ",
                       format='{char}{percent:2.0%}'),
        widget.Sep(linewidth=0,
                   padding=8,
                   foreground=colors[0],
                   background=colors[0]),
        widget.TextBox(text=" Vol:",
                       foreground=colors[10],
                       background=colors[4],
                       padding=0),
        widget.Volume(foreground=colors[10], background=colors[4], padding=5),
        widget.Sep(linewidth=0,
                   padding=8,
                   foreground=colors[0],
                   background=colors[0]),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[10],
            background=colors[5],
            padding=0,
            scale=0.7),
        widget.CurrentLayout(foreground=colors[10],
                             background=colors[5],
                             padding=5),
        widget.Sep(linewidth=0,
                   padding=8,
                   foreground=colors[0],
                   background=colors[0]),
        widget.Clock(foreground=colors[10],
                     background=colors[4],
                     format="%A, %B %d - %H:%M "),
    ]
    return widget_list
コード例 #13
0
                    padding_y=8,
                    padding_x=5,
                    borderwidth=1,
                    active=colors['active'],
                    inactive=colors['inactive'],
                    rounded=False,
                    highlight_method='block',
                    urgent_alert_method='block',
                    urgent_border=colors['urgent'],
                    this_current_screen_border=colors['focus'],
                    this_screen_border=colors['grey'],
                    other_current_screen_border=colors['dark'],
                    other_screen_border=colors['dark'],
                    disable_drag=True),
    separator(),
    widget.WindowName(**base(fg='text'), fontsize=40, padding=5),
    separator(),
]

primary_widgets = [
    widget.CurrentLayoutIcon(
        **base(bg='color1'),
        scale=0.80,
    ),
    *workspaces(),
    icon(bg="color1", text=' '),  # Icon: nf-fa-download
    separator(),
    widget.Pacman(**base(bg='color1'), update_interval=1800),
    separator(),
    icon(
        bg="color1",
コード例 #14
0
def get_bbar(pin_group):
    colors = [
        ["#292d3e", "#292d3e"],  # panel background          
        ["#F9DF74", "#F9DF74"],  # background for current screen tab          
        ["#ffffff", "#ffffff"],  # font color for group names           
        ["#4B3B47", "#4B3B47"],  # border line color for current tab           
        ["#8d62a9", "#8d62a9"
         ],  # border line color for other tab and odd widgets          
        ["#668bd7", "#668bd7"],  # color for the even widgets          
        ["#ffffff", "#ffffff"]
    ]  # window name

    widget_defaults = dict(font="Ubuntu Mono",
                           fontsize=12,
                           padding=2,
                           background=colors[2])
    extension_defaults = widget_defaults.copy()

    sep = widget.Sep(linewidth=0,
                     padding=6,
                     foreground=colors[2],
                     background=colors[0])

    gb = widget.GroupBox(font="Ubuntu Bold",
                         fontsize=10,
                         margin_y=3,
                         margin_x=0,
                         padding_y=3,
                         padding_x=13,
                         borderwidth=2,
                         active=colors[2],
                         inactive=colors[0],
                         rounded=False,
                         highlight_color=colors[1],
                         highlight_method="line",
                         this_current_screen_border=colors[3],
                         this_screen_border=colors[4],
                         other_current_screen_border=colors[0],
                         other_screen_border=colors[0],
                         foreground=colors[2],
                         background=colors[0],
                         visible_groups=pin_group)
    wn = widget.WindowName(foreground=colors[6],
                           background=colors[0],
                           padding=0)

    clock = widget.Clock(
        format='%d-%m %a %I:%M %p',
        foreground=colors[2],
        background=colors[0],
    )

    tri = widget.TextBox(text='🌡',
                         background=colors[4],
                         foreground=colors[5],
                         padding=0,
                         fontsize=37)

    return bar.Bar(
        [
            #widget.CurrentLayout(),
            sep,
            gb,  #widget.GroupBox(visible_groups=pin_group),
            widget.Prompt(),
            sep,
            wn,
            sep,
            #tri,
            clock,  #widget.Clock(format='%d-%m %a %I:%M %p'),
            #widget.QuickExit(),
        ],
        24,
    )
コード例 #15
0
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(top=bar.Bar(
        [
            widget.GroupBox(
                font="Ubuntu Bold",
                fontsize=18,
                padding_x=20,
                padding_y=5,
                highlight_method="block",
                rounded=False,
            ),
            widget.CurrentLayout(),
            widget.WindowName(fmt="{:10}"),
            widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"),
            widget.Systray(padding=5),
            widget.CPUGraph(border_width=1, margin_y=0, line_width=2),
            widget.TextBox(text="mem:"),
            widget.MemoryGraph(border_width=1, margin_y=0, line_width=2),
            widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
            widget.CPU(),
        ],
        32,
    ), ),
    Screen(bottom=bar.Bar(
        [
            widget.GroupBox(
                font="Ubuntu Bold",
                fontsize=18,
コード例 #16
0
def get_screens():
    screens = [
        Screen(
            top=bar.Bar(
                [
                    widget.Image(background=colors['bg'],
                                 margin=3,
                                 filename='~/Pictures/archicon.png',
                                 mouse_callbacks={
                                     "Button1":
                                     lambda qtile: qtile.cmd_spawn(
                                         "firefox https://youtube.com")
                                 }),
                    widget.GroupBox(highlight_method="block",
                                    this_current_screen_border=colors['bd'],
                                    urgent_border=colors['ubd'],
                                    active=colors['ac'],
                                    inactive=colors['ic'],
                                    block_highlight_text_color=colors['hl'],
                                    disable_drag=True,
                                    background=colors['bg'],
                                    foreground=colors['fg'],
                                    borderwidth=3,
                                    margin_y=3,
                                    margin_x=0,
                                    padding_y=5,
                                    padding_x=3,
                                    rounded=False),
                    widget.CurrentLayout(
                        background=colors['bg'],
                        foreground=colors['ic'],
                    ),
                    widget.WindowName(
                        background=colors['bg'],
                        foreground=colors['ic'],
                        fontsize=15,
                    ),
                    # widget.Sep(
                    #     background=colors['bg'],
                    #     foreground=colors['ic'],
                    #     linewidth=3,
                    #     padding=20
                    # ),
                    # widget.Image(
                    #     background=colors['bg'],
                    #     margin=3,
                    #     filename='~/Pictures/notebook.png',
                    #     mouse_callbacks = {"Button1": lambda qtile: qtile.cmd_spawn(f"notes.py")}
                    # ),
                    # widget.Sep(
                    #     background=colors['bg'],
                    #     foreground=colors['ic'],
                    #     linewidth=3,
                    #     padding=20
                    # ),
                    widget.Systray(
                        background=colors['bg'],
                        padding=20,
                    ),
                    widget.Sep(background=colors['bg'],
                               foreground=colors['ic'],
                               linewidth=3,
                               padding=20),
                    widget.Clock(
                        background=colors['bg'],
                        foreground=colors['ic'],
                        format='%A, %B %d [ %H:%M ]',
                    ),
                ],
                opacity=0.8,
                size=30,
            ), ),
    ]
    return screens
コード例 #17
0
     padding_x=5,
     borderwidth=1,
     active=["#f1ffff", "#f1ffff"],
     inactive=["#f1ffff", "#f1ffff"],
     rounded=False,
     highlight_method='block',
     urgent_alert_method='block',
     this_current_screen_border=color.secondary(),
     this_screen_border=["#5c5c5c", "#5c5c5c"],
     other_current_screen_border=color.secondary(),
     other_screen_border=color.primary(),
     disable_drag=True
 ),
 widget.WindowName(
     foreground=color.secondary(),
     background=["#0f101a", "#0f101a"],
     fontsize=12,
     font='UbuntuMono Nerd Font Bold',
 ),
 # Imagen arrow 1
 widget.Image(
     filename=path.join(path.expanduser(
         '~'), '.config', 'qtile', 'img', '2bar.png'),
 ),
 # Icono de cambio de tipo de pantalla
 widget.CurrentLayoutIcon(
     foreground=["#0f101a", "#0f101a"],
     background=color.secondary(),
     scale=0.65
 ),
 # Cambio de tipo de pantalla
 widget.CurrentLayout(
コード例 #18
0
ファイル: widgets.py プロジェクト: NicolasAlvarez16/dotfiles
                    padding_y=8,
                    padding_x=5,
                    borderwidth=1,
                    active=colors['active'],
                    inactive=colors['inactive'],
                    rounded=False,
                    highlight_method='block',
                    urgent_alert_method='block',
                    urgent_border=colors['urgent'],
                    this_current_screen_border=colors['focus'],
                    this_screen_border=colors['grey'],
                    other_current_screen_border=colors['dark'],
                    other_screen_border=colors['dark'],
                    disable_drag=True),
    #my_sep(),
    widget.WindowName(foreground=colors["focus"], fontsize=17, padding=5),
]

prompt = "{0}@{1} ".format(os.environ["USER"], socket.gethostname())

my_widgets = [
    *my_workspaces(),
    powerline("color4"),
    icon(bg="color4", text=" "),  # nf-oct-diff_renamed
    widget.TextBox(
        #**base(bg = colors['color4']),
        font="UbuntuMono Nerd Font Bold",
        background=colors['color4'],
        text=prompt,
    ),
    powerline("color3", "color4"),
コード例 #19
0
ファイル: config.py プロジェクト: HiddenMoonSoftware/arch
                 highlight_method="line",
                 this_current_screen_border=colors[9],
                 this_screen_border=colors[4],
                 other_current_screen_border=colors[9],
                 other_screen_border=colors[4],
                 foreground=colors[2],
                 background=colors[0]),
 widget.Prompt(prompt="{0}@{1}: ".format(os.environ["USER"],
                                         socket.gethostname()),
               foreground=colors[2],
               background=colors[0]),
 widget.Sep(linewidth=0,
            padding=6,
            foreground=colors[2],
            background=colors[0]),
 widget.WindowName(
     padding=6, foreground=colors[10], background=colors[0]),
 widget.Chord(
     chords_colomrs={
         'launch': ("#ff0000", "#ffffff"),
     },
     name_transform=lambda name: name.upper(),
 ),
 widget.Net(interface="ens33",
            format='{down} ↓↑ {up}',
            foreground=colors[2],
            background=colors[4],
            padding=5),
 widget.Systray(),
 widget.Clock(font="Ubuntu Bold",
              fontsize=12,
              format='%Y-%m-%d %a %I:%M %p',
コード例 #20
0
class FakeScreenConfig:
    auto_fullscreen = True
    main = None
    groups = [
        libqtile.config.Group("a"),
        libqtile.config.Group("b"),
        libqtile.config.Group("c"),
        libqtile.config.Group("d")
    ]
    layouts = [
        layout.Max(),
        layout.RatioTile(),
        layout.Tile(),
    ]
    floating_layout = libqtile.layout.floating.Floating()
    keys = []
    mouse = []
    fake_screens = [
        Screen(bottom=bar.Bar([
            widget.GroupBox(this_screen_border=CHAM3,
                            borderwidth=1,
                            fontsize=FONTSIZE,
                            padding=1,
                            margin_x=1,
                            margin_y=1),
            widget.AGroupBox(),
            widget.Prompt(),
            widget.Sep(),
            widget.WindowName(fontsize=FONTSIZE, margin_x=6),
            widget.Sep(),
            widget.CPUGraph(**GRAPH_KW),
            widget.MemoryGraph(**GRAPH_KW),
            widget.SwapGraph(foreground='20C020', **GRAPH_KW),
            widget.Sep(),
            widget.Systray(),
            widget.Sep(),
            widget.Clock(
                format='%H:%M:%S %d.%m.%Y', fontsize=FONTSIZE, padding=6),
        ],
                              24,
                              background="#555555"),
               left=bar.Gap(16),
               right=bar.Gap(20),
               x=0,
               y=0,
               width=600,
               height=480),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               bottom=bar.Gap(24),
               left=bar.Gap(12),
               x=600,
               y=0,
               width=300,
               height=580),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               bottom=bar.Gap(16),
               right=bar.Gap(40),
               x=0,
               y=480,
               width=500,
               height=400),
        Screen(top=bar.Bar(
            [widget.GroupBox(),
             widget.WindowName(),
             widget.Clock()],
            30,
        ),
               left=bar.Gap(20),
               right=bar.Gap(24),
               x=500,
               y=580,
               width=400,
               height=400),
    ]
    screens = []
コード例 #21
0
     highlight_method="line",
     inactive=GROUP_INACTIVE_FG,
     active=GROUP_ACTIVE_FG,
     disable_drag=True,
     borderwidth=4,
     fontsize=FONT_SIZE,
     foreground=GROUP_INACTIVE_FG),
 widget.TextBox(font="Arial",
                foreground=GROUP_BG,
                text="◤  ",
                fontsize=(FONT_SIZE * 5.25),
                padding=-20),
 widget.Prompt(prompt="run: ",
               ignore_dups_history=True,
               fontsize=FONT_SIZE),
 widget.WindowName(fontsize=FONT_SIZE),
 widget.Spacer(length=50),
 widget.TextBox(font="font-awesome",
                text=(""),
                fontsize=FONT_SIZE,
                padding=0),
 widget.Spacer(length=10),
 widget.Mpris2(
     background=BG_COLOR,
     foreground=FG_COLOR,
     name='spotify',
     stop_pause_text='',
     fontsize=FONT_SIZE,
     scroll_chars=None,
     display_metadata=['xesam:title', 'xesam:artist'],
     objname="org.mpris.MediaPlayer2.spotify",
コード例 #22
0
for i in groups:
    keys.append(Key([mod], i.name, lazy.group[i.name].toscreen()))
    keys.append(Key([mod, "shift"], i.name, lazy.window.togroup(i.name)))

screens = [
    Screen(top=bar.Bar(
        [
            widget.GroupBox(borderwidth=2,
                            font='Consolas',
                            fontsize=18,
                            padding=1,
                            margin_x=1,
                            margin_y=1),
            widget.Sep(),
            widget.WindowName(font='Consolas', fontsize=18, margin_x=6),
            widget.Sep(),
            widget.Battery(font='Consolas', fontsize=18, margin_x=6),
            widget.Sep(),
            widget.CPUGraph(),
            widget.MemoryGraph(),
            widget.SwapGraph(foreground='C02020'),
            widget.Sep(),
            widget.Systray(),
            widget.Sep(),
            widget.Clock(
                '%H:%M:%S %d.%m.%Y', font='Consolas', fontsize=18, padding=6),
        ],
        24,
    ), ),
]
コード例 #23
0
ファイル: config.py プロジェクト: deedoubledub/moardots
def primary_bar():
    return bar.Bar(
        widgets=[
            widget.CurrentLayoutIcon(
                custom_icon_paths=[
                    os.path.expanduser('~/.config/qtile/icons')
                ],
                scale=0.66,
            ),
            widget.GroupBox(
                padding_x=10,
                spacing=5,
                disable_drag=True,
                use_mouse_wheel=False,
                background=palette[1],
                inactive=palette[3],
                highlight_color=palette[10],
                highlight_method='line',
                this_current_screen_border=palette[13],
                other_current_screen_border=palette[13],
                this_screen_border=palette[10],
                other_screen_border=palette[10],
            ),
            widget.CurrentScreen(active_color=palette[14],
                                 active_text='\uF62E',
                                 inactive_color=palette[11],
                                 inactive_text='\uF62F'),
            widget.WindowName(for_current_screen=True),
            widget.GenPollText(func=mpris,
                               update_interval=1,
                               mouse_callbacks={'Button1': play_toggle}),
            separator(palette[10], palette[1]),
            widget.Systray(background=palette[10], icon_size=32, padding=10),
            separator(palette[9], palette[10]),
            widget.GenPollText(func=weather,
                               update_interval=1200,
                               mouse_callbacks={'Button1': weather},
                               background=palette[9]),
            separator(palette[10], palette[9]),
            # widget.GenPollText(func=memory_usage,
            #                    update_interval=1,
            #                    background=palette[10]),
            # separator(palette[9], palette[10]),
            # widget.CPU(format='\uF9C4 {load_percent}%', background=palette[9]),
            # separator(palette[10], palette[9]),
            widget.TextBox(text='\uF027', background=palette[10]),
            widget.Volume(step=5, background=palette[10]),
            separator(palette[9], palette[10]),
            widget.Battery(battery=1,
                           format='{char} {percent:2.0%}',
                           charge_char='\uF583',
                           discharge_char='\uF57D',
                           full_char='\uF578',
                           empty_char='\uF58D',
                           unknown_char='\uF578',
                           update_interval=1,
                           background=palette[9]),
            separator(palette[10], palette[9]),
            widget.Clock(format='\uF5ED %a %b %d',
                         background=palette[10],
                         mouse_callbacks={'Button1': open_calendar}),
            separator(palette[9], palette[10]),
            widget.Clock(format='\uF017 %I:%M %p', background=palette[9]),
            separator(palette[1], palette[9]),
        ],
        size=36,
        background=palette[1],
    )
コード例 #24
0
ファイル: config.py プロジェクト: aborilov/dotfiles
    layout.MonadTall(**border),
    layout.Matrix(**border)
    # layout.Stack(num_stacks=1, **border)
]

screens = [
    Screen(
        top=bar.Bar(
            [
                widget.GroupBox(
                    margin_y=1,
                    margin_x=1,
                    borderwidth=1,
                    padding=1,
                ),
                widget.WindowName(foreground="a0a0a0", ),
                widget.Notify(),
                widget.Systray(),
                # widget.CurrentLayout(),
                widget.KeyboardLayout(configured_keyboards=["us", "ru"]),
                widget.Volume(foreground="70ff70", ),
                widget.BatteryIcon(),
                widget.BitcoinTicker(currency="rub", format="{buy}"),
                widget.Clock(
                    foreground="a0a0a0",
                    fmt="%H:%M %d.%m.%Y",
                ),
            ],
            18,
        ), ),
]
コード例 #25
0
ファイル: widgets.py プロジェクト: EHF32/dotfiles
                    padding_y=8,
                    padding_x=5,
                    borderwidth=1,
                    active=colors['active'],
                    inactive=colors['inactive'],
                    rounded=False,
                    highlight_method='block',
                    urgent_alert_method='block',
                    urgent_border=colors['urgent'],
                    this_current_screen_border=colors['focus'],
                    this_screen_border=colors['grey'],
                    other_current_screen_border=colors['dark'],
                    other_screen_border=colors['dark'],
                    disable_drag=True),
    separator(),
    widget.WindowName(**base(fg='focus'), fontsize=14, padding=5),
    separator(),
]

primary_widgets = [
    *workspaces(),
    separator(),
    powerline('color4', 'dark'),

    #    icon(bg="color4", text=' '), # Icon: nf-fa-download
    #    widget.Pacman(**base(bg='color4'), update_interval=1800),

    #    powerline('color3', 'color4'),
    icon(bg="color4", text=' '),  # Icon: nf-fa-download
    widget.CheckUpdates(
        distro="Arch_checkupdates",
コード例 #26
0
ファイル: config.py プロジェクト: ericjuma/scripts-n-dotfiles
    padding=9,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        bottom=bar.Bar(
            [
                widget.CurrentLayout(foreground=foregr),
                widget.GroupBox(active=foregr,
                                disable_drag=True,
                                this_current_screen_border=color1,
                                other_screen_border=backgr,
                                borderwidth=2),
                widget.Prompt(foreground=foregr),
                widget.WindowName(markup=False, foreground=backgr),
                widget.Systray(foreground=foregr),
                widget.Clock(foreground=foregr, format='%a the %d  |  %I:%M'),
            ],
            50,
            background=backgr,
            foreground=foregr,
            #opacity=.7,
        ), ),
]

# Drag floating layouts.
mouse = [
    Drag([mod],
         "Button1",
         lazy.window.set_position_floating(),
コード例 #27
0
ファイル: default_config.py プロジェクト: zero77/qtile
]

widget_defaults = dict(
    font='sans',
    fontsize=12,
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(bottom=bar.Bar(
        [
            widget.CurrentLayout(),
            widget.GroupBox(),
            widget.Prompt(),
            widget.WindowName(),
            widget.Chord(
                chords_colors={
                    'launch': ("#ff0000", "#ffffff"),
                },
                name_transform=lambda name: name.upper(),
            ),
            widget.TextBox("default config", name="default"),
            widget.TextBox("Press <M-r> to spawn", foreground="#d75f5f"),
            widget.Systray(),
            widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
            widget.QuickExit(),
        ],
        24,
    ), ),
]
コード例 #28
0
    mod = "mod4"

# global font options
widget_defaults = dict(
    font='Consolas',
    fontsize=18,
    padding=3,
)

if num_screens[hostname] == 2:
    screens = [
        Screen(top=bar.Bar(
            [
                widget.GroupBox(urgent_alert_method='text', **widget_defaults),
                widget.Prompt(**widget_defaults),
                widget.WindowName(**widget_defaults),
                widget.Mpris(**widget_defaults),
                widget.Volume(**widget_defaults),
            ],
            30,
        ), ),
        Screen(top=bar.Bar(
            [
                widget.GroupBox(urgent_alert_method='text', **widget_defaults),
                widget.WindowName(**widget_defaults),
                widget.Systray(**widget_defaults),
                widget.Clock('%Y-%m-%d %a %I:%M %p', **widget_defaults),
            ],
            30,
        ), ),
    ]
コード例 #29
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(font="ubuntu mono italic",
                        fontsize=18,
                        margin_y=1,
                        margin_x=2,
                        padding_y=0,
                        padding_x=5,
                        borderwidth=0,
                        disable_drag=True,
                        active=colors[6],
                        inactive=colors[3],
                        rounded=False,
                        highlight_method="text",
                        this_current_screen_border=colors[4],
                        foreground=colors[2],
                        background=colors[0]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[0]),
        #               widget.CurrentLayout(
        #                        font = "Noto Sans",
        #                        fontsize = 16,
        #                        padding_y = -5,
        #                        foreground = colors[3],
        #                        background = colors[1]
        #                        ),
        #               widget.Sep(
        #                        linewidth = 1,
        #                        padding = 10,
        #                        foreground = colors[2],
        #                        background = colors[1]
        #                        ),
        widget.WindowName(
            font="ubuntu mono italic",
            fontsize=20,
            padding=400,
            foreground=colors[3],
            background=colors[0],
        ),
        widget.CheckUpdates(
            update_interval=500,
            distro="Arch_checkupdates",
            display_format="{updates} Updates",
            foreground=colors[6],
            background=colors[0],
            mouse_callbacks={
                'Button1':
                lambda: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')
            },
        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[0]),
        widget.Clock(font="ubuntu mono italic",
                     foreground=colors[3],
                     background=colors[0],
                     fontsize=20,
                     format="%m/%d/%Y  %I:%M"),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[0]),
        widget.Systray(background=colors[0], icon_size=20, padding=6),
    ]
    return widgets_list
コード例 #30
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[6],
                   background=colors[6]),
        widget.Image(filename="~/.config/qtile/icons/qtile.png",
                     mouse_callbacks={
                         'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run')
                     },
                     background=colors[6],
                     foreground=colors[6]),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[2],
                   background=colors[6]),
        widget.GroupBox(font="Font Awesome 5 Free",
                        fontsize=14,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=3,
                        borderwidth=3,
                        active=colors[2],
                        inactive=colors[2],
                        rounded=False,
                        highlight_color=colors[3],
                        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[6]),
        widget.Prompt(prompt=prompt,
                      font="mononoki Nerd Font",
                      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],
                          font="JetBrains Mono Medium",
                          padding=0),
        # widget.Clipboard(
        #          background = colors[5],
        #          foreground = colors[2],
        #          max_width  = 15
        # ),
        widget.TextBox(text='',
                       font='Font Awesome 5 Free',
                       background=colors[0],
                       foreground=colors[5],
                       padding=0,
                       fontsize=48),
        widget.TextBox(text=" ",
                       font='Font Awesome 5 Free',
                       padding=2,
                       foreground=colors[2],
                       background=colors[5],
                       fontsize=15),
        widget.Memory(background=colors[5],
                      foreground=colors[2],
                      partition='/',
                      format='{MemUsed}M / {MemTotal}M'),
        widget.TextBox(text='',
                       background=colors[5],
                       font='Font Awesome 5 Free',
                       foreground=colors[4],
                       padding=0,
                       fontsize=48),
        widget.TextBox(text=" ",
                       foreground=colors[2],
                       background=colors[4],
                       font='Font Awesome 5 Free',
                       padding=0),
        widget.Volume(foreground=colors[2], background=colors[4], padding=5),
        widget.TextBox(text='',
                       background=colors[4],
                       font='Font Awesome 5 Free',
                       foreground=colors[5],
                       padding=0,
                       fontsize=48),
        widget.TextBox(text=" ",
                       font='Font Awesome 5 Free',
                       padding=2,
                       foreground=colors[2],
                       background=colors[5],
                       fontsize=10),
        widget.Pacman(
            update_interval=1800,
            foreground=colors[2],
            mouse_callbacks={
                'Button1':
                lambda qtile: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')
            },
            background=colors[5]),
        widget.TextBox(
            text="Updates",
            padding=5,
            mouse_callbacks={
                'Button1':
                lambda qtile: qtile.cmd_spawn(myTerm + ' -e sudo pacman -Syu')
            },
            foreground=colors[2],
            background=colors[5]),
        widget.TextBox(text='',
                       background=colors[5],
                       font='Font Awesome 5 Free',
                       foreground=colors[4],
                       padding=0,
                       fontsize=48),
        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],
                       font='Font Awesome 5 Free',
                       foreground=colors[5],
                       padding=0,
                       fontsize=48),
        widget.Clock(foreground=colors[2],
                     background=colors[5],
                     mouse_callbacks={
                         'Button1':
                         lambda qtile: qtile.cmd_spawn(
                             '/home/va/.rofi/rofi-music-downloader')
                     },
                     format="%A, %B %d  [ %H:%M ]"),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[0],
                   background=colors[5]),
        widget.Systray(background=colors[5], foreground=colors[2], padding=5),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[2],
                   background=colors[5]),
    ]
    return widgets_list