Beispiel #1
0
def get_top_bar():
    return bar.Bar(
        [
            widget.Spacer(length=8),
            get_groupbox(),
            # widget.WindowName(font="Noto Sans", fontsize=13),
            widget.Spacer(),
            # widget.Notify(),
            widget.Cmus(
                noplay_color=colors["black"],
                play_color=colors["green"],
                fontsize=10,
            ),
            get_line_sep(),
            widget.TextBox(fmt=fa.icons["monero"], foreground=colors["white"]),
            widget.GenPollText(
                func=get_xmr_price,
                update_interval=60,
            ),
            widget.GenPollText(
                func=get_xmr_btc,
                update_interval=60,
                fontsize=10,
            ),
            get_line_sep(),
            widget.TextBox(fmt=fa.icons["bitcoin"],
                           foreground=colors["white"]),
            widget.GenPollText(
                func=get_btc_price,
                update_interval=60,
            ),
            get_line_sep(),
            get_diskinfo(),
            get_line_sep(),
            widget.TextBox(fmt=fa.icons["hdd"]),
            get_cpu(),
            get_line_sep(),
            widget.TextBox(fmt=fa.icons["server"]),
            get_netstats(),
            # get_updates(),  # not working properly
            get_line_sep(),
            widget.TextBox(fmt=fa.icons["headphones"]),
            get_volume(),
            get_line_sep(),
            widget.Systray(),
            get_line_sep(),
            get_battery(),
            get_line_sep(),
            get_keyboard(),
            get_line_sep(),
            get_clock(),
            widget.Spacer(length=8),
        ],
        34,
        background=colors["background"],
    )
Beispiel #2
0
def music_widget():
    return widget.GenPollText(
        **widget_theme,
        update_interval=1,
        func=lambda: subprocess.check_output(scriptfolder + "music").decode(
            "utf-8").replace('\n', ''),
    )
Beispiel #3
0
def create_default_bar():
    return bar.Bar(
        [
            widget.CurrentLayout(),
            widget.GroupBox(),
            widget.Prompt(),
            widget.Spacer(),
            widget.Chord(
                chords_colors={
                    "launch": ("#ff0000", "#ffffff"),
                },
                name_transform=lambda name: name.upper(),
            ),
            widget.Sep(),
            widget.Wlan(
                interface="wlp111s0",
                format="{essid} {percent:2.0%}",
            ),
            widget.Sep(),
            widget.TextBox("Battery: "),
            widget.Battery(update_interval=5),
            widget.Sep(),
            widget.GenPollText(func=volume_poll, update_interval=1),
            widget.Sep(),
            widget.TextBox("Brightness: "),
            widget.Backlight(
                brightness_file=
                "/sys/class/backlight/intel_backlight/brightness",
                max_brightness_file=
                "/sys/class/backlight/intel_backlight/max_brightness",
            ),
            widget.Sep(),
            widget.Clock(format="%Y-%m-%d %a %I:%M %p"),
            widget.QuickExit(),
            widget.Systray(),
        ],
        24,
    )
Beispiel #4
0
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],
    )
Beispiel #5
0
def init_widgets_list():
    widgets_list = [
        separator(20, 40),
        group_head(),
        #        widget.GroupBox(**group_box_settings),
        widget.GroupBox(visible_groups=[""], **group_box_settings),
        widget.GroupBox(visible_groups=["", "", "", "", ""],
                        **group_box_settings),
        widget.GroupBox(visible_groups=["", ""], **group_box_settings),
        group_tail(),
        separator(10),
        group_head(),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[2],
            background=colors[14],
            padding=-2,
            scale=0.55),
        group_tail(),
        separator(10),
        widget.CheckUpdates(
            background=colors[0],
            foreground=colors[3],
            fontsize=16,
            update_interval=1800,
            distro="Arch_checkupdates",
            display_format="⟳ {updates} Updates",
            mouse_callbacks={
                "Button1":
                lambda: qtile.cmd_spawn(terminal + " -e sudo pacman -Syu")
            },
            padding=5),
        widget.Spacer(),
        group_head(),
        CustomPomodoro(background=colors[14],
                       fontsize=26,
                       color_active=colors[3],
                       color_break=colors[6],
                       color_inactive=colors[10],
                       timer_visible=False,
                       prefix_active="",
                       prefix_break="",
                       prefix_inactive="",
                       prefix_long_break="",
                       prefix_paused=""),
        group_tail(),
        separator(10),
        group_head(),
        widget.TextBox(text=" ",
                       foreground=colors[8],
                       background=colors[14],
                       font="Font Awesome 5 Free Solid",
                       fontsize=20),
        widget.Volume(background=colors[14],
                      foreground=colors[8],
                      fontsize=16,
                      device="pulse",
                      padding=5),
        group_tail(),
        separator(10),
        group_head(),
        widget.GenPollText(func=bluetooth,
                           background=colors[14],
                           foreground=colors[6],
                           fontsize=16,
                           update_interval=3,
                           mouse_callbacks={
                               "Button1": toggle_bluetooth,
                               "Button3": open_bt_menu
                           }),
        group_tail(),
        separator(10),
        group_head(),
        widget.Wlan(foreground=colors[7],
                    background=colors[14],
                    fontsize=16,
                    format="  {essid}",
                    padding=5,
                    mouse_callbacks={"Button1": open_wifi_menu}),
        group_tail(),
        separator(10),
        group_head(),
        widget.GenPollText(func=nordvpn,
                           background=colors[14],
                           foreground=colors[11],
                           fontsize=16,
                           update_interval=3,
                           mouse_callbacks={"Button1": open_vpn_menu}),
        group_tail(),
        separator(10),
        group_head(),
        widget.Clock(fontsize=16,
                     format="  %a, %b %d",
                     background=colors[14],
                     foreground=colors[5]),
        group_tail(),
        separator(10),
        group_head(),
        widget.Clock(fontsize=16,
                     format="  %I:%M %p",
                     background=colors[14],
                     foreground=colors[4]),
        group_tail(),
        separator(10),
        group_head(),
        widget.Battery(background=colors[14],
                       foreground=colors[8],
                       fontsize=16,
                       low_foreground=colors[3],
                       low_percentage=0.15,
                       charge_char="",
                       discharge_char="",
                       emtpy_char="",
                       format="{char}  {percent:3.0%} ({hour:d}:{min:02d})",
                       padding=5),
        group_tail(),
        separator(20),
        widget.TextBox(text="⏻",
                       foreground=colors[13],
                       background=colors[0],
                       font="Font Awesome 5 Free Solid",
                       fontsize=30,
                       mouse_callbacks={"Button1": open_powermenu}),
        separator(20)
    ]
    return widgets_list
Beispiel #6
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.GroupBox(font="Ubuntu Bold",
                        fontsize=22,
                        margin_y=2,
                        margin_x=0,
                        padding_y=5,
                        padding_x=5,
                        borderwidth=1,
                        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.Prompt(prompt=prompt,
                      font="Ubuntu Mono",
                      padding=10,
                      foreground=colors[3],
                      background=colors[1]),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(font="Ubuntu",
                          fontsize=11,
                          foreground=colors[5],
                          background=colors[0],
                          padding=5),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ☵",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=14),
        widget.CurrentLayout(foreground=colors[3],
                             background=colors[0],
                             padding=5),
        widget.TextBox(font="Ubuntu Bold",
                       text="  |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=14),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ",
                       foreground=colors[2],
                       background=colors[0],
                       padding=0,
                       fontsize=18),
        widget.GenPollText(
            foreground=colors[6],
            background=colors[0],
            fmt=' {} ',
            update_interval=60,
            func=lambda: subprocess.check_output("/home/geir/.local/bin/ip.sh")
            .decode("utf-8").replace('\n', '')),
        widget.TextBox(font="Ubuntu Bold",
                       text="  |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=14),
        widget.TextBox(font="Ubuntu Bold",
                       text=" ⟳",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=14),
        widget.CheckUpdates(colour_no_updates=colors[7],
                            colour_have_updates=colors[7],
                            background=colors[0],
                            distro="Arch",
                            custom_command="pacman -Qu"),
        widget.TextBox(font="Ubuntu Bold",
                       text="   |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=14),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=14),
        widget.GenPollText(update_interval=60,
                           fmt=' {} ',
                           func=lambda: subprocess.check_output(
                               "/home/geir/.local/bin/disk.sh").decode("utf-8")
                           .replace('\n', ''),
                           foreground=colors[5],
                           background=colors[0]),
        widget.TextBox(font="Ubuntu Bold",
                       text="  |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=14),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=14),
        widget.Memory(foreground=colors[8], background=colors[0]),
        widget.TextBox(font="Ubuntu Bold",
                       text="   |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=14),
        widget.TextBox(font="Ubuntu Bold",
                       text="   ",
                       foreground=colors[2],
                       background=colors[0],
                       padding=5,
                       fontsize=14),
        widget.Clock(foreground=colors[2],
                     background=colors[0],
                     format="%A, %d %B - %H:%M"),
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[2],
                   background=colors[0]),
    ]
    return widgets_list
Beispiel #7
0
def init_widgets_list():
    widgets_list = [
        widget.Image(filename="~/.config/qtile/icons/trioptimum-logo.png",
                     margin=2,
                     margin_x=5),
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors["white"],
                   background=colors["black_grey"]),
        widget.GroupBox(
            font="Ubuntu Bold",
            #fontsize = 12,
            margin_x=0,
            margin_y=2,
            padding_x=8,
            padding_y=8,
            borderwidth=1,
            active=colors["white"],
            inactive=colors["white"],
            highlight_method="block",
            rounded=False,
            this_current_screen_border=colors["purple"],
            this_screen_border=colors["dark_grey"],
            other_current_screen_border=colors["black_grey"],
            other_screen_border=colors["black_grey"],
            foreground=colors["white"],
            background=colors["black_grey"]),
        widget.Prompt(prompt="{0}@{1}: ".format(os.environ["USER"],
                                                socket.gethostname()),
                      font="Ubuntu Mono",
                      padding=10,
                      foreground=colors["light_red"],
                      background=colors["dark_grey"]),
        widget.WindowName(foreground=colors["purple"]),
        widget.TextBox(background=colors["white"],
                       foreground=colors["black_grey"],
                       text="SkrivRoot-MAIN",
                       name="default"),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors["white"],
                   background=colors["black_grey"]),
        widget.Image(filename="~/.config/qtile/icons/rj45.png",
                     margin=2,
                     margin_x=5),
        widget.Net(
            interface="wlp5s0",
            format='{down} ▼▲ {up}'  # format = '{interface}: {down} ▼▲ {up}'
        ),
        widget.TextBox(text="\U000027A4 VPN ", foreground="#33cc00"),
        # VPN Status + Public IP Country
        widget.GenPollText(func=get_vpn_status,
                           update_interval=5,
                           foreground="#33cc00"),
        widget.GenPollText(func=get_current_country,
                           update_interval=5,
                           foreground="#33cc00"),
        widget.Sep(linewidth=0, padding=3),
        widget.Image(filename="~/.config/qtile/icons/processor.png",
                     margin=2,
                     margin_x=5),
        widget.CPU(format='{load_percent}%'),
        widget.Sep(linewidth=0, padding=3),
        widget.Image(filename="~/.config/qtile/icons/ram.png",
                     margin=2,
                     margin_x=5),
        widget.Memory(foreground=colors["white"],
                      background=colors["black_grey"],
                      padding=5,
                      format='{MemUsed}Mb ({MemPercent}%)'),
        widget.Sep(linewidth=0, padding=3),
        widget.Image(filename="~/.config/qtile/icons/hard_drive.png",
                     margin=2,
                     margin_x=5),
        widget.DF(foreground=colors["white"],
                  background=colors["black_grey"],
                  padding=5,
                  partition='/',
                  format='{uf}Gb ({r:.0f}%)',
                  visible_on_warn=False,
                  warn_space=10),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors["white"],
                   background=colors["black_grey"]),

        # Bitcoin ticker
        widget.BitcoinTicker(foreground="#f7931a"),

        # Monero ticker
        widget.GenPollText(func=xmr_ticker,
                           update_interval=30,
                           foreground="#fc6a03"),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors["white"],
                   background=colors["black_grey"]),
        widget.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            background=colors["black_grey"],
            padding=0,
            scale=0.5),
        #widget.CurrentLayout(**widget_defaults),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors["white"],
                   background=colors["black_grey"]),
        widget.TextBox(text="\U0001F50B"),
        widget.Battery(format='{percent:2.0%}'),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors["white"],
                   background=colors["black_grey"]),

        # Volume
        widget.TextBox(text="\U0001F50A"),
        widget.GenPollText(
            func=get_current_volume1,
            update_interval=0.2,
        ),
        widget.TextBox(text="\U0001F50A"),
        widget.GenPollText(
            func=get_current_volume2,
            update_interval=0.2,
        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors["white"],
                   background=colors["black_grey"]),
        widget.TextBox(text="\u2328"),
        widget.GenPollText(
            func=get_kb_layout,
            update_interval=0.5,
        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors["white"],
                   background=colors["black_grey"]),
        widget.Clock(
            format='📅  %a, %d %b. %Y - %H:%M:%S'),  # %S for adding seconds
    ]
    return widgets_list
Beispiel #8
0
                widget.GroupBox(hide_unused=True,
                                disable_drag=True,
                                highlight_method='line',
                                this_current_screen_border='7b5830',
                                urgent_alert_method='text'),
                widget.TaskList(
                    border='7b5830',
                    borderwidth=1,
                    txt_minimized='',
                    txt_floating='',
                    markup_focused='<span underline="low">{}</span>'),
                widget.Prompt(),

                # widget.GenPollText(
                #     func=user.inbox, foreground='fe1b22', update_interval=300),
                widget.GenPollText(func=user.iCWidget, update_interval=20),
                widget.Battery(hide_threshold=0.9),

                # widget.GenPollText(func=user.netSpeedUp, update_interval=2),
                # widget.TextBox(text='⇅', padding=0),
                # widget.GenPollText(func=user.netSpeedDown, update_interval=2),
                widget.GenPollText(func=user.pacmanUpdates,
                                   update_interval=1800),
                widget.Mpd2(idle_message='',
                            fmt_stopped='',
                            fmt_playing='🎵 %a / %t',
                            foreground_progress='7b5830'),
                widget.Volume(emoji=True, padding=0),
                widget.Volume(padding=0),
                widget.TextBox(text=' ', padding=1),
                widget.Systray(icon_size=16),
Beispiel #9
0
 ),
 widget.Spacer(
     background=colors[0],
     mouse_callbacks={
         'Button4':
         lambda: qtile.current_screen.cmd_prev_group(skip_empty=
                                                     True),
         'Button5':
         lambda: qtile.current_screen.cmd_next_group(skip_empty=
                                                     True),
     },
 ),
 widget.GenPollText(
     background=colors[0],
     func=lambda: subprocess.check_output(
         ["xkb-switch"]).decode("utf-8").rstrip().upper(),
     update_interval=0.1,
     fontsize=18,
     padding=6),
 widget.Systray(background=colors[0], icon_size=22, padding=6),
 widget.Volume(
     padding=10,
     fmt=' {}',
     background=colors[0],
 ),
 # widget.CurrentLayout(
 #     padding = 8,
 #     foreground = colors[2],
 #     background = colors[0]
 # ),
 widget.CurrentLayoutIcon(
Beispiel #10
0
                    **widget_defaults
                ),
                widget.BatteryIcon(
                ),
                widget.Battery(
                    charge_char='+',
                    discharge_char='',
                    unknown_char='',
                    format='{char}{percent:2.0%}',
                    **widget_defaults,
                ),
                widget.Volume(emoji=True),
                widget.Volume(**widget_defaults),
                widget.Systray(),
                widget.Spacer(length=10),
                widget.GenPollText(
                    func=custom_date, update_interval=1, **widget_defaults),
                widget.Clock(
                    **widget_defaults,
                    format='%H:%M'
                ),
                widget.Spacer(length=10),
            ],
            24, margin=[10, 16, 0, 16]  # N E S W
        ),
    ),
]


# Drag floating layouts.
mouse = [
    Drag([mod], "Button1", lazy.window.set_position_floating(),
Beispiel #11
0
                   fontsize=15),
 widget.Mpd2(update_interval=0.1,
             idle_message="",
             foreground=colors[6],
             background=colors[0],
             padding=0,
             fontsize=15),
 widget.TextBox(text='',
                background=colors[0],
                foreground=colors[5],
                padding=-8,
                fontsize=49),
 widget.GenPollText(
     update_interval=180,
     func=lambda: subprocess.check_output(
         os.path.expanduser("~/.local/bin/statusbar/forecast")
     ).decode("utf-8"),
     background=colors[5],
     foreground=colors[2],
     fontsize=13),
 widget.TextBox(text='',
                background=colors[5],
                foreground=colors[4],
                padding=-8,
                fontsize=49),
 widget.GenPollText(
     update_interval=1,
     func=lambda: subprocess.check_output(
         os.path.expanduser("~/.local/bin/statusbar/torrent")
     ).decode("utf-8"),
     background=colors[4],
     foreground=colors[2],
Beispiel #12
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.GroupBox(font="Ubuntu Bold",
                        fontsize=22,
                        margin_y=3,
                        margin_x=0,
                        padding_y=5,
                        padding_x=5,
                        borderwidth=1,
                        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.Prompt(prompt=prompt,
                      font="Ubuntu Mono",
                      padding=10,
                      foreground=colors[3],
                      background=colors[1]),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[2],
                   background=colors[0]),
        widget.WindowName(font="Ubuntu",
                          fontsize=11,
                          foreground=colors[5],
                          background=colors[0],
                          padding=5),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=16),
        widget.CurrentLayout(foreground=colors[3],
                             background=colors[0],
                             padding=5),
        widget.TextBox(font="Ubuntu Bold",
                       text="  |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=12),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ",
                       foreground=colors[2],
                       background=colors[0],
                       padding=0,
                       fontsize=16),
        widget.GenPollText(foreground=colors[6],
                           background=colors[0],
                           fmt=' {} ',
                           update_interval=60,
                           func=lambda: subprocess.check_output(
                               "/home/geir/.config/qtile/ip.sh").decode(
                                   "utf-8").replace('\n', '')),
        widget.TextBox(font="Ubuntu Bold",
                       text="  |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=12),
        widget.TextBox(font="Ubuntu Bold",
                       text=" ",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=16),
        widget.GenPollText(foreground=colors[7],
                           background=colors[0],
                           fmt=' {} ',
                           update_interval=3600,
                           func=lambda: subprocess.check_output(
                               "/home/geir/.config/qtile/pac-aur.sh").decode(
                                   "utf-8").replace('\n', '')),
        widget.TextBox(font="Ubuntu Bold",
                       text="   |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=12),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=16),
        widget.GenPollText(update_interval=60,
                           fmt=' {} ',
                           func=lambda: subprocess.check_output(
                               "/home/geir/.config/qtile/disk.sh").decode(
                                   "utf-8").replace('\n', ''),
                           foreground=colors[5],
                           background=colors[0]),
        widget.TextBox(font="Ubuntu Bold",
                       text="  |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=12),
        widget.TextBox(font="Ubuntu Bold",
                       text="  ",
                       padding=5,
                       foreground=colors[2],
                       background=colors[0],
                       fontsize=16),
        widget.GenPollText(update_interval=10,
                           fmt=' {} ',
                           func=lambda: subprocess.check_output(
                               "/home/geir/.config/qtile/mem.sh").decode(
                                   "utf-8").replace('\n', ''),
                           foreground=colors[8],
                           background=colors[0]),
        widget.TextBox(font="Ubuntu Bold",
                       text="   |",
                       padding=5,
                       foreground=colors[9],
                       background=colors[0],
                       fontsize=12),
        widget.TextBox(font="Ubuntu Bold",
                       text="   ",
                       foreground=colors[2],
                       background=colors[0],
                       padding=5,
                       fontsize=16),
        widget.Clock(foreground=colors[2],
                     background=colors[0],
                     format="%A, %d %B - %H:%M"),
        widget.Sep(linewidth=0,
                   padding=5,
                   foreground=colors[2],
                   background=colors[0]),
    ]
    return widgets_list
Beispiel #13
0
     linewidth=0,
     foreground=colors[2],
     padding=10,
     size_percent=50,
 ),
 widget.TextBox(
     text="",
     foreground=colors[14],
     background=colors[0],
     fontsize=28,
     padding=0,
 ),
 widget.GenPollText(
     func=taskwarrior,
     update_interval=5,
     foreground=colors[11],
     background=colors[14],
     mouse_callbacks={"Button1": finish_task},
 ),
 widget.TextBox(
     text="",
     foreground=colors[14],
     background=colors[0],
     fontsize=28,
     padding=0,
 ),
 widget.Spacer(),
 widget.TextBox(
     text=" ",
     foreground=colors[12],
     background=colors[0],
Beispiel #14
0
 # GAS NOW API
 widget.GenPollUrl(
     url="https://www.gasnow.org/api/v3/gas/price?utm_source=grayskull",
     parse=parse_gas_now,
     update_interval=60,
 ),
 widget.Sep(),
 # Clock widget
 widget.Clock(format="%I:%M %p", update_interval=1),
 widget.TextBox("РЈ░ ", padding=0),
 widget.Sep(),
 # CPU widget
 widget.CPU(format="{load_percent:.1f}% ­Ъњф"),
 widget.Sep(),
 # Virtual Memory widget
 widget.GenPollText(func=virt_memory_usage, update_interval=1),
 widget.TextBox("­ЪДа ", padding=0),
 widget.Sep(),
 # Volume widget
 widget.Volume(),
 widget.TextBox("­ЪЊ╗ ", padding=0),
 widget.Sep(),
 # Backlight widget
 widget.Backlight(backlight_name="intel_backlight"),
 widget.TextBox("Рўђ№ИЈ ", padding=0),
 widget.Sep(),
 # Wireless lan widget
 widget.Wlan(disconnected_message="Рўа№ИЈ ",
             format="­ЪЊА",
             interface="wlan0"),
 widget.Sep(),
Beispiel #15
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(font="FontAwesome",
                        fontsize=14,
                        margin_y=3,
                        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="UbuntuMono Nerd Font",
                             fontsize=14,
                             foreground=colors[5],
                             background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.WindowName(font="UbuntuMono Nerd Font",
                          fontsize=14,
                          foreground=colors[5],
                          background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.CurrentLayoutIcon(foreground=colors[5],
                                 background=colors[1],
                                 padding=0,
                                 scale=0.7),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text="  🖥️ ",
                       foreground=colors[6],
                       background=colors[1],
                       mouse_callbacks={
                           'Button1':
                           lambda qtile: qtile.cmd_spawn(myTerm + ' -e gtop')
                       },
                       padding=2,
                       fontsize=12),
        widget.CPU(format='{load_percent}% ',
                   font="UbuntuMono Nerd Font",
                   fontsize=14,
                   foreground=colors[5],
                   background=colors[1],
                   update_interval=3),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text="  🧠 ",
                       foreground=colors[4],
                       background=colors[1],
                       mouse_callbacks={
                           'Button1':
                           lambda qtile: qtile.cmd_spawn(myTerm + ' -e htop')
                       },
                       padding=0,
                       fontsize=12),
        widget.Memory(font="UbuntuMono Nerd Font",
                      format='{MemUsed}M/{MemTotal}M ',
                      update_interval=1,
                      fontsize=14,
                      foreground=colors[5],
                      background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text=" 🌡️",
                       padding=2,
                       foreground=colors[5],
                       background=colors[1],
                       mouse_callbacks={
                           'Button1': lambda qtile: qtile.cmd_spawn('xsensors')
                       },
                       fontsize=12),
        widget.ThermalSensor(font="UbuntuMono Nerd Font",
                             fontsize=14,
                             fmt='{} ',
                             foreground=colors[5],
                             background=colors[1],
                             threshold=90,
                             padding=5),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text=" 💾",
                       foreground=colors[5],
                       background=colors[1],
                       mouse_callbacks={
                           'Button1':
                           lambda qtile: qtile.cmd_spawn('xdiskusage')
                       },
                       padding=0,
                       fontsize=12),
        widget.GenPollText(update_interval=60,
                           fmt=' {} ',
                           font="UbuntuMono Nerd Font",
                           fontsize=14,
                           func=lambda: subprocess.check_output(
                               "/home/steve/dwmscripts/qtiledisk").decode(
                                   "utf-8").replace('\n', ''),
                           foreground=colors[5],
                           background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(
            text=" 🔊",
            foreground=colors[5],
            background=colors[1],
            mouse_callbacks={
                'Button1':
                lambda qtile: qtile.cmd_spawn(myTerm + ' -e pulsemixer')
            },
            padding=0,
            fontsize=12),
        widget.Volume(font="UbuntuMono Nerd Font",
                      fontsize=14,
                      fmt='{} ',
                      channel='Master',
                      foreground=colors[5],
                      background=colors[1],
                      padding=5),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.Battery(format='{char}{percent:2.0%}',
                       charge_char='⚡ ',
                       discharge_char='🔋 '),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text=" 🛠️ ",
                       foreground=colors[5],
                       background=colors[1],
                       mouse_callbacks={
                           'Button1':
                           lambda qtile: qtile.cmd_spawn('pamac-manager')
                       },
                       padding=0,
                       fontsize=12),
        widget.GenPollText(update_interval=1800,
                           fmt=' {} ',
                           font="UbuntuMono Nerd Font",
                           fontsize=14,
                           func=lambda: subprocess.check_output(
                               "/home/steve/dwmscripts/qtileupdates").decode(
                                   "utf-8").replace('\n', ''),
                           foreground=colors[5],
                           background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(text=" 📅 ", padding=0, fontsize=12),
        widget.Clock(foreground=colors[5],
                     background=colors[1],
                     font="UbuntuMono Nerd Font",
                     fontsize=14,
                     format="%d-%m-%Y %H:%M"),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
    ]
    return widgets_list
Beispiel #16
0
 #     display_format="{updates}",
 #     update_interval=1800,
 # ),
 widget.CheckUpdates(
     colour_no_updates=colors["color1"],
     colour_have_updates=colors["color1"],
     update_interval=1800,
     distro="Arch_checkupdates",
     no_update_string="0",
     display_format="{updates}",
 ),
 widget.GenPollText(
     **base(fg="color5"),
     update_interval=60,
     fmt=" {}",
     font="UbuntuMono Nerd Font",
     fontsize=17,
     func=lambda: subprocess.check_output("/home/nikola/.local/bin/battery")
     .decode("utf-8").replace("\n", ""),
 ),
 widget.GenPollText(
     **base(fg="color6"),
     update_interval=3,
     fmt=" {}",
     font="UbuntuMono Nerd Font",
     fontsize=17,
     func=lambda: subprocess.check_output(
         "/home/nikola/.local/bin/brightness").decode("utf-8").replace(
             "\n", ""),
 ),
 widget.GenPollText(
Beispiel #17
0
 widget.CurrentLayoutIcon(
     custom_icon_paths=[
         os.path.expanduser("~/.config/qtile/icons")
     ],
     foreground=colors[2],
     background=colors[14],
     padding=-5,
     scale=0.70,
 ),
 r_text(),
 sep(),
 l_text(),
 widget.GenPollText(
     func=taskwarrior,
     update_interval=5,
     foreground=colors[11],
     background=colors[14],
     mouse_callbacks={"Button1": finish_task},
 ),
 r_text(),
 widget.Spacer(),
 widget.TextBox(
     text=" ",
     foreground=colors[12],
 ),
 widget.WindowName(
     foreground=colors[12],
     for_current_screen=True,
     width=bar.CALCULATED,
     empty_group_string="Desktop",
     max_chars=20,
Beispiel #18
0
screens = []

for monitor in range(monitors):
    if monitor == 0:
        screens.append(
            Screen(
                top=bar.Bar(
                    [
                        widget.Spacer(length=10),
                        widget.GroupBox(borderwidth=2, inactive='969696', this_current_screen_border='eee8d5', this_screen_border='eee8d5', font='FiraCode Nerd Font', fontsize=18, highlight_method='line', highlight_color=['00000000', '00000000']),
                        widget.CurrentLayoutIcon(scale=0.7),
                        widget.CurrentLayout(**widget_defaults),
                        widget.Prompt(**widget_defaults),
                        widget.Spacer(),
                        widget.GenPollText(func=custom_date, update_interval=1, **widget_defaults, mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(os.path.expanduser("~/.local/bin/statusbar/calendar.sh show"), shell=True), 'Button3': lambda: qtile.cmd_spawn(os.path.expanduser("~/.local/bin/statusbar/calendar.sh edit"), shell=True)}),
                        widget.Spacer(),
                        widget.CheckUpdates(
                            **widget_defaults,
                            update_interval=1800,
                            distro='Arch_yay',
                            custom_command='checkupdates;paru -Qum',
                            display_format=' {updates}',
                            colour_have_updates=GREEN,
                            execute='kitty -e paru',
                        ),
                        widget.Mpris2(
                            name='spotify',
                            objname="org.mpris.MediaPlayer2.spotify",
                            display_metadata=['xesam:title', 'xesam:artist'],
                            scroll_chars=None,
Beispiel #19
0
 # mouse_callbacks={'Button1': lambda: qtile.cmd_spawn("st -e storage.sh")},
 #),
 widget.TextBox(
     text=" ",
     #text=" ",
     font="Ubuntu Nerd Font",
     fontsize=20,
     foreground=colors[11],
     background=colors[3],
     padding=0,
     #mouse_callbacks={'Button1': lambda: qtile.cmd_spawn("lxterminal -e htop")},
 ),
 widget.GenPollText(
     font="Ubuntu Nerd Font",
     fontsize='15',
     #mouse_callbacks={'Button1' : openweather},
     func=commands.get_ls,
     update_interval=600,
     background=colors[3]),
 widget.TextBox(
     text='\ue0be',
     font="Inconsolata for powerline",
     fontsize='33',
     padding=0,
     background=colors[3],
     foreground=colors[6],
 ),
 widget.Systray(
     background=colors[6],
     icons_size=18,
     padding=4,
Beispiel #20
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
               widget.GroupBox(font="FontAwesome italic",
                        fontsize = 20,                      
                        margin_y = 3,
                        margin_x = 0,
                        padding_y = 1,
                        padding_x = 9,
                        borderwidth = 0,
                        disable_drag = True,
                        active = colors[10],
                        inactive = colors[5],
                        rounded = False,
                        highlight_method = "text",
                        this_current_screen_border = colors[7],
                        foreground = colors[8],
                        background = colors[11]
                        ),
               widget.Sep(
                        linewidth = 1,
                        padding = 10,
                        foreground = colors[2],
                        background = colors[11]
                        ),
               widget.CurrentLayoutIcon(
               scale = 0.75,
               foreground = colors[2]
               ),
               #widget.CurrentLayout(
                       # font = "Noto Sans Bold",
                       # foreground = colors[3],
                       # background = colors[1]
                       # ),
               widget.Sep(
                        linewidth = 1,
                        padding = 10,
                        foreground = colors[2],
                        background = colors[11]
                        ),
               widget.TextBox(
                        font="FontAwesome",
                        text="  ",
                        foreground=colors[3],
                        background=colors[11],
                        padding = 0,
                        fontsize=28,
                        mouse_callbacks = {'Button1': open_menu}
                        ),
               widget.WindowName(font="Noto Sans",
                        fontsize = 14,
                        foreground = colors[6],
                        background = colors[11],
                        ),
               
               # widget.Sep(
               #          linewidth = 1,
               #          padding = 10,
               #          foreground = colors[2],
               #          background = colors[1]
               #          ),
               # 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]
               #          ),
               # # 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[4],
                        background=colors[11],
                        padding = 0,
                        fontsize=22,
                        mouse_callbacks = {'Button1': open_windows}
                        ),
                        
                widget.Sep(
                        linewidth = 1,
                        padding = 10,
                        foreground = colors[2],
                        background = colors[11]
                        ),
	           
              # widget.TextBox(
              #          font="FontAwesome",
              #          text="  ",
              #          foreground=colors[6],
              #          background=colors[11],
              #          padding = 0,
              #          fontsize=24
              #          ),
              # widget.CPU(
				#	format = '{load_percent}%',
				#	foreground=colors[3],
				#	font="FontAwesome italic",
				#	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.GmailChecker(
				#	username="******",
				#	password="******",
				#	update_interval=300,
               # ), 
               
                        
               # widget.OpenWeather(
				#	app_key = 'cf5a0826de6bce245598f9f2c3bf8a93',
				#	cityid = 2654089,
				#	format = '{location_city}: {main_temp} °{units_temperature} {humidity}% {weather_details}',
				#	update_interval = 600
              #  ),
              
             # widget.TextBox(
                #        font="FontAwesome",
                #        text= /home/phil/.config/succade/weather ,
                #        foreground=colors[3],
                #        background=colors[11],
                #        padding = 0,
                 #       fontsize=16
                 #       ),
                 widget.TextBox(
                        font="FontAwesome",
                        text="  ",
                        foreground=colors[3],
                        background=colors[11],
                        padding = 0,
                        fontsize=22
                        ),
                 
                
                 
                 
                 widget.GenPollText(
					font="FontAwesome italic",
					fontsize = 16,
					mouse_callbacks = {'Button1': open_weather},
					func=commands.get_ls,
					update_interval = 600,
					foreground='#FFFF99'),
					
					widget.Sep(
                        linewidth = 1,
                        padding = 10,
                        foreground = colors[2],
                        background = colors[11]
                        ),
              
                
                
                         
               
               widget.TextBox(
                        font="FontAwesome",
                        text="  ",
                        foreground=colors[4],
                        background=colors[11],
                        padding = 0,
                        fontsize=22
                        ),
               widget.Memory(
                        font="FontAwesome italic",
                        format = '{MemUsed}/{MemTotal}MB',
                        update_interval = 1,
                        fontsize = 16,
                        foreground = colors[7],
                        background = colors[11],
                       ),
               widget.Sep(
                        linewidth = 1,
                        padding = 10,
                        foreground = colors[2],
                        background = colors[11]
                        ),
               widget.TextBox(
                        font="FontAwesome",
                        text="  ",
                        foreground=colors[6],
                        background=colors[11],
                        padding = 0,
                        fontsize=22
                        ),
               widget.Clock(
						font="FontAwesome italic",
                        foreground = colors[5],
                        background = colors[11],
                        fontsize = 16,
                        format="%d-%m-%Y"
                        ),
                        
                widget.Clock(
						font="Comfortaa Regular",
                        foreground = "#FFFF99",
                        background = colors[11],
                        fontsize = 17,
                        format="%H:%M"
                        ),  
                              
               widget.Sep(
                        linewidth = 1,
                        padding = 10,
                        foreground = colors[2],
                        background = colors[11]
                        ),
               widget.Systray(
                        background=colors[11],
                        icon_size=22,
                        padding = 4
                        ),
              ]
    return widgets_list
Beispiel #21
0
def init_widgets_list():
    widgets_list = [
        # Left Side of the bar
        space,
        #widget.Image(
        #    filename = "/usr/share/pixmaps/archlinux-logo.png",
        #    background = colors[1],
        #    margin = 3
        #),
        widget.Image(
            filename="~/.config/qtile/python.png",
            background=colors[1],
            margin=3,
            mouse_callbacks={
                'Button1':
                lambda: qtile.cmd_spawn('j4-dmenu'),
                'Button3':
                lambda: qtile.cmd_spawn(
                    f'{terminal} -e vim {home_dir}/.config/qtile/config.py')
            }),
        widget.GroupBox(font="Iosevka Nerd Font",
                        fontsize=15,
                        foreground=colors[2],
                        background=colors[1],
                        borderwidth=4,
                        highlight_method="text",
                        this_current_screen_border=colors[6],
                        active=colors[4],
                        inactive=colors[2]),
        sep,
        nerd_icon("  ", colors[6]),
        widget.Battery(foreground=colors[2],
                       background=colors[1],
                       format="{percent:2.0%}"),
        nerd_icon("墳", colors[3]),
        widget.Volume(foreground=colors[2], background=colors[1]),
        widget.Spacer(length=bar.STRETCH, background=colors[1]),

        # Center bar
        nerd_icon("", colors[7]),
        widget.CurrentLayout(foreground=colors[2], background=colors[1]),
        sep,
        nerd_icon("﬙", colors[3]),
        widget.CPU(format="{load_percent}%",
                   foreground=colors[2],
                   background=colors[1],
                   update_interval=2,
                   mouse_callbacks={
                       'Button1':
                       lambda: qtile.cmd_spawn(f"{terminal} -e gtop")
                   }),
        nerd_icon("", colors[4]),
        widget.Memory(format="{MemUsed:.0f}{mm}",
                      foreground=colors[2],
                      background=colors[1],
                      update_interval=2,
                      mouse_callbacks={
                          'Button1':
                          lambda: qtile.cmd_spawn(f"{terminal} -e gtop")
                      }),
        nerd_icon("", colors[6]),
        widget.GenPollText(foreground=colors[2],
                           background=colors[1],
                           update_interval=5,
                           func=lambda: storage.diskspace('FreeSpace'),
                           mouse_callbacks={
                               'Button1':
                               lambda: qtile.cmd_spawn(f"{terminal} -e gtop")
                           }),
        sep,
        nerd_icon("", colors[4]),
        widget.GenPollText(
            foreground=colors[2],
            background=colors[1],
            update_interval=5,
            func=lambda: subprocess.check_output(
                f"{home_dir}/.config/qtile/scripts/num-installed-pkgs").decode(
                    "utf-8")),

        # Left Side of the bar
        widget.Spacer(length=bar.STRETCH, background=colors[1]),
        nerd_icon("", colors[4]),
        widget.Net(format="{down} ↓↑ {up}",
                   foreground=colors[2],
                   background=colors[1],
                   update_interval=2,
                   mouse_callbacks={
                       'Button1': lambda: qtile.cmd_spawn("def-nmdmenu")
                   }),
        sep,
        nerd_icon("", colors[7]),
        widget.Clock(format='%b %d-%Y',
                     foreground=colors[2],
                     background=colors[1]),
        nerd_icon("", colors[8]),
        widget.Clock(format='%I:%M %p',
                     foreground=colors[2],
                     background=colors[1]),
        widget.Systray(background=colors[1]),
        space
    ]
    return widgets_list
Beispiel #22
0
    fontsize=14,
    padding=5,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(
        top=bar.Bar(
            [
                widget.CurrentLayoutIcon(
                    scale=0.5,
                    foreground="EFEFEF",
                ),
                widget.GenPollText(
                    func=get_cur_grp_name,
                    update_interval=0.5,
                    foreground='EFEFEF',
                    padding=1,
                ),
                widget.GroupBox(
                    active='99d1ce',
                    inactive='F3F4F5',  #968F92
                    this_current_screen_border='6790eb',  #00BCD4
                    this_screen_border='00BCD4',
                    highlight_method='line',
                    highlight_color=['2F343F', '2F343F'],
                    fontsize=20,
                ),
                widget.Prompt(fontsize=12,
                              cursor_color='FFFFFF',
                              foreground='FDF3A9',
                              background='271B1B'),
Beispiel #23
0
                        this_current_screen_border=colors['green'],
                        this_screen_border=colors['green'],
                        other_screen_border=colors['gray'],
                        highlight_method='line'),
        widget.Chord(
            chords_colors={'launch': ("#ff0000", "#ffffff")},
            name_transform=lambda name: name.upper(),
        ),
        widget.CurrentLayoutIcon(scale=0.6),
        widget.Spacer(),
        widget.Systray(),
        widget.KeyboardLayout(
            configured_keyboards=['us altgr-intl', 'es', 'us'], fmt=' {}'),
        widget.GenPollText(
            func=bt_status,
            update_interval=5,
            mouse_callbacks={'Button1': bt_mouse_click},
        ),
        widget.TextBox(text=' ', padding=0),
        widget.Volume(padding=5),
        widget.Clock(format=' %H:%M'),
        widget.TextBox(text='',
                       mouse_callbacks={'Button1': notification_toggle}),
    ]
    if isLaptop:
        w1.insert(6, Battery(colors))
        w1.insert(6, Wlan(colors))

    w2 = [
        widget.WindowName(),
        widget.GroupBox(active=colors['green'],
Beispiel #24
0
 ),
 widget.Prompt(font='NotoSans',
               fontsize=14,
               cursor_color='FFBB00',
               foreground='FDF3A9',
               background='2F343F'),
 widget.WindowName(
     fontsize=13,
     foreground='7AA0BC',
 ),
 #            widget.Clock(font='NotoSans', fontsize=14, update_interval=1, foreground='B1D0FF', ),
 #            widget.Memory(fmt='{MemTotal}M', fontsize=21, foreground='F3F4F5', padding=5, update_interval=600, ),
 widget.GenPollText(
     func=get_kernel,
     update_interval=0.5,
     foreground='6790eb',
     padding=5,
     font='NotoSans',
     fontsize=14,
 ),
 widget.Sep(
     foreground='968F92',
     linewidth=2,
     padding=10,
     size_percent=50,
 ),
 widget.CPUGraph(
     border_color='3EC13F',
     border_width=1,
     core='all',
     fill_color='3EC13F.3',
     frequency=1,
Beispiel #25
0
def init_widget_list():
    widget_list = [
        widget.CurrentLayoutIcon(padding=10),
        widget.GroupBox(
            this_current_screen_border=palette["blue"],
            urgent_border=palette["red"],
        ),
        widget.Prompt(padding=10,
                      font='mono',
                      prompt='run: ',
                      foreground='ffdf29',
                      fontsize='14'),
        widget.Spacer(bar.STRETCH),
        widget.Systray(),
        widget.TextBox(text='\ue0b2',
                       fontsize=40,
                       foreground=color_widget(),
                       padding=0),
        widget.Volume(
            emoji=True,
            font='FontAwesome',
            fontsize=15,
            background=color_widget(),
        ),
        widget.Volume(
            padding=4,
            background=color_widget(),
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            # text = fa.icons['music'] + ' ',
            text="♫ ",
            fontsize=20,
            background=color_widget(),
        ),
        widget.GenPollText(
            background=color_widget(),
            func=song,
            update_interval=3,
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            text=fa.icons['keyboard'] + ' ',
            fontsize=20,
            background=color_widget(),
        ),
        widget.GenPollText(
            background=color_widget(),
            func=kb_layout,
            update_interval=3,
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            text=fa.icons['sync'],
            background=color_widget(),
            mouse_callbacks={'Button1': update()},
        ),
        widget.CheckUpdates(
            update_interval=60,
            foreground=black,
            colour_have_updates=black,
            background=color_widget(),
            distro='Arch_checkupdates',
            display_format='Updates: {updates}',
            mouse_callbacks={'Button1': update()},
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            text=fa.icons['wifi'] + ' ',
            background=color_widget(),
        ),
        widget.Wlan(
            interface='wlo1',
            background=color_widget(),
            #format='{essid}',
            format='{essid} {percent:2.0%}',
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.BatteryIcon(
            background=color_widget(),
            theme_path='/usr/share/icons/Adwaita/16x16',
        ),
        widget.Battery(
            format='{percent:2.0%}',
            update_interval=60,
            background=color_widget(),
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            text=fa.icons['calendar'] + ' ',
            background=color_widget(),
        ),
        widget.GenPollText(
            background=color_widget(),
            func=calendar,
            update_interval=3,
        ),
        widget.TextBox(
            text='\ue0b2',
            fontsize=40,
            background=color_widget(),
            foreground=color_widget(switch=True),
        ),
        widget.TextBox(
            text=fa.icons['clock'] + ' ',
            background=color_widget(),
        ),
        widget.Clock(
            # format ='%B %-d %Y ',
            format='%a %-d/%-m/%Y |',
            background=color_widget(),
        ),
        widget.Clock(
            format='%H:%M ',
            background=color_widget(),
            font='Roboto Mono Bold for Powerline',
            fontsize=13,
        ),
    ]
    return widget_list
Beispiel #26
0
 ),
 widget.TextBox(
     text="  ",
 ),
 widget.TextBox(
     **separator_defaults,
     text=left_sep,
     background=colors["bg"],
     foreground=colors["player_bg"],
 ),
 widget.GenPollText(
     func=spotify_info,
     mouse_callbacks={
         'Button1': spotify_ctrl,
         'Button4': spotify_prev,
         'Button5': spotify_next,
     },
     update_interval=1,
     background=colors["player_bg"],
     padding=5,
 ),
 widget.TextBox(
     **separator_defaults,
     text=sep,
     foreground=colors["sep"],
     background=colors["player_bg"],
 ),
 widget.KeyboardLayout(
     background=colors["lang_bg"],
     configured_keyboards=["us", "ar"],
     display_map={"us":"EN", "ar": "AR"},
Beispiel #27
0
    padding=3,
)
extension_defaults = widget_defaults.copy()

screens = [
    Screen(top=bar.Bar(
        [
            widget.CurrentLayout(),
            widget.Sep(),
            widget.GroupBox(),
            widget.Spacer(),
            widget.Clock(format='%Y-%m-%d %H:%M'),
            widget.Spacer(),
            widget.GenPollText(
                update_interval=1,
                func=custom_widget(
                    'volume.bash',
                    ' --icons-volume "奔 ,墳 " --icon-muted "婢 " output')),
            widget.Sep(),
            widget.Backlight(
                backlight_name=os.listdir('/sys/class/backlight')[0],
                step=1,
                update_interval=None,
                format="",
                change_command=None,
            ),
            widget.Sep(),
            widget.GenPollText(update_interval=1,
                               func=custom_widget('battery.sh', '')),
            widget.Sep(),
            widget.GenPollText(update_interval=20,
Beispiel #28
0
     status_format='<span size="large">{play_status}</span> {title}',
     idle_message="",
     idle_format="",
     no_connection="",
     fontsize=FONT_SIZE_MED,
     play_states={
         "pause": "",
         "play": "",
         "stop": ""
     },
     padding=PADDING,
 ),
 widget.GenPollText(
     func=check_rss,
     update_interval=8,
     fontsize=FONT_SIZE_MED,
     fontshadow=SHADOW,
     foreground=colors.get("color3"),
     padding=PADDING,
 ),
 widget.GenPollText(
     func=check_bluetooth,
     update_interval=10,
     max_chars=3,
     fontsize=FONT_SIZE,
     fontshadow=SHADOW,
     foreground=colors.get("color3"),
     padding=PADDING,
 ),
 widget.GenPollText(
     func=check_wifi,
     update_interval=5,
Beispiel #29
0

bottom = bar.Bar(
    [
        widget.Backlight(
            change_command='light -S {0}',
            foreground=GREEN,
            backlight_name='intel_backlight'),

        widget.Pomodoro(
            color_inactive=YELLOW,
            color_break=GREEN,
            color_active=RED),

        widget.GenPollText(
            func=commands.get_watson_status,
            update_interval=1,
            foreground=BLUE),

        widget.Spacer(length=bar.STRETCH),
        widget.CPUGraph(
            line_width=1,
            border_width=0,
            width=66,
            type='box',
            graph_color=RED,
            fill_color=RED
            ),
        widget.NetGraph(
            line_width=1,
            border_width=0,
            width=66,
Beispiel #30
0
                                fill_color="#470000",
                                path="/media/WDBL"),
                widget.TextBox("WDBL2 SPACE:", foreground='#ffffff'),
                widget.HDDGraph(background='#000000', foreground='#000000',
                                core='all', border_color="#470000",
                                fill_color="#470000",
                                path="/media/WDBL2"),

                widget.TextBox("i7 3770:", foreground='#ffffff'),
                widget.ChThermalSensor(chip='coretemp-isa-0000',
                                       background='#470000',
                                       foreground='#ffffff'),

                widget.TextBox("GTX 1050 Ti:", foreground='#ffffff'),
                widget.GenPollText(func=get_my_gpu_temp, update_interval=1,
                                   background='#470000',
                                   foreground='#ffffff'),
                widget.TextBox("SSD:", foreground='#ffffff'),
                widget.HDThermalSensor(drive_name='/dev/sda',
                                       background='#470000',
                                       foreground='#ffffff'),
                widget.TextBox("HD0:", foreground='#ffffff'),
                widget.HDThermalSensor(drive_name='/dev/sdb',
                                       background='#470000',
                                       foreground='#ffffff'),
                widget.TextBox("HD1:", foreground='#ffffff'),
                widget.HDThermalSensor(drive_name='/dev/sdc',
                                       background='#470000',
                                       foreground='#ffffff'),

                widget.TextBox("CPU USAGE:", foreground='#ffffff'),