Exemple #1
0
def generate_widgets():
    """generate a widget list."""
    widgets = [
        widget.GroupBox(urgent_alert_method='border',
                        urgent_border='FF0000',
                        urgent_text='FF0000',
                        fontsize=defaut_font_size,
                        borderwidth=2,
                        other_screen_border='AAAA40',
                        this_screen_border='AAAA40',
                        this_current_screen_border='FFFF40',
                        other_current_screen_border='FFFF40',
                        inactive="606060",
                        use_mouse_wheel=False,
                        disable_drag=True,),
        widget.Sep(padding=6, height_percent=60),
        widget.Prompt(),
        # widget.Notify(default_timeout=10),
        widget.TaskList(),
        widget.Sep(padding=6, height_percent=60),
        widget.Systray(padding=5),
        widget.Sep(padding=6, height_percent=60),
        # yaourt -S lm_sensors
        widget.ThermalSensor(foreground="aaaaaa",
                             foreground_alert="ee5555",
                             threshold=75,
                             tag_sensor="Package id 0",
                             update_interval=10),
        widget.Sep(padding=6, height_percent=60), ]

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

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

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

    widgets.extend([
        widget.CurrentLayoutIcon(foreground="00eedd", scale=0.8), ])
    return widgets
Exemple #2
0
def makebar():
    return bar.Bar(
        [
            widget.GroupBox(),
            widget.Prompt(),
            widget.TaskList(),
            widget.Systray(),
            widget.CPUGraph(),
            widget.BatteryIcon(
            ),  # theme_path="/usr/share/icons/ubuntu-mono-dark/status/24/"),
            #                widget.Volume(),
            widget.Clock(format='%Y-%m-%d %a %H:%M'),
        ],
        30,
    )
Exemple #3
0
def init_screens():
    widgetSets=[]
    screens=[]

    for i in range(0, numScreen ):
        widgetSets.append( [ 
                    widget.CurrentScreen(),
                    widget.GroupBox(highlight_method="block",urgent_alert_method='text'),
                    widget.CurrentLayout(),
                    widget.Notify(audiofile= "/usr/share/skype/sounds/ChatOutgoing.wav",
                                foreground_urgent="EE0000", 
                                foreground_low="dddddd",
                                default_timeout=60,
                                foreground="FF0000", 
                                fontsize=18, 
                                font="Ubuntu"),
                    widget.Clock(format='%Y-%m-%d %a %H:%M %p', foreground='00FF7F'),
                    widget.TextBox(text="Dim:"),
                    widget.Backlight(brightness_file='/sys/class/backlight/intel_backlight/brightness',  max_brightness_file='/sys/class/backlight/intel_backlight/max_brightness',  ),
                    widget.TextBox(text="Bat:"),
                    widget.Battery(),
                    widget.BatteryIcon(),
                    widget.TextBox(text="Vol:"),
                    widget.Volume(),
                    widget.TextBox(text="C"),
                    widget.CPUGraph(samples=100, width=200),
                    widget.TextBox(text="D"),
                    widget.NetGraph(samples=100, width=200, interface=network),
                    widget.TextBox(text="U"),
                    widget.NetGraph(samples=100, width=200, interface=network, bandwidth_type="up"),
                    widget.TextBox(text="M"),
                    widget.MemoryGraph(samples=100, width=200),
                ])

    # truncate the last widget, and add on the systray, if we 
    #widgetSets[ numScreen - 1 ] = widgetSets[ numScreen - 1 ][0:3]
    widgetSets[ numScreen - 1 ].insert( 0, widget.Systray() )

    for i in range(0, numScreen ):
        screens.append( Screen(top = bar.Bar( widgetSets[ i ] , 30)) )
    

    return(screens)
Exemple #4
0
def makeBar(screen):
	widgets = [
		# Groups
		FlexibleGroupBox(formatGroup, font_size=12),
		widget.Spacer(length=8),

		# Current layout
		MultiTextBox(formatLayout, hooks=update_hooks, font_size=12),
		widget.Spacer(length=8),

		# Current window
		MultiTextBox(formatTitle, hooks=update_hooks, font_size=12),
		widget.Spacer(length=bar.STRETCH),
	]

	if screen == 0:
		if battery_name:
			widgets.extend([
				# Battery widget
				widget.BatteryIcon(**battery_icon_settings),
				widget.Battery(**battery_settings),
			])

		widgets.extend([
			# System tray
			widget.Systray(),
			widget.Spacer(length=8),
		])

	widgets.extend([
		# Clock
		widget.Clock(format='%a %d %b %Y %H:%M:%S', font='xft:monospace', fontsize=12, foreground='#ffaa00'),
		widget.Spacer(length=8),
	])

	bg_color =  toQtileColor(background(screenColor(screen)))

	return bar.Bar(widgets, 16, background=bg_color)
Exemple #5
0
def get_bar():
    return bar.Bar(
        [
            widget.CurrentScreen(),
            widget.Sep(),
            widget.GroupBox(disable_drag=True),
            widget.Sep(),
            widget.CurrentLayout(),
            widget.Sep(),
            widget.Chord(
                chords_colors={
                    'launch': ("#ff0000", "#ffffff"),
                },
                name_transform=lambda name: name.upper(),
            ),
            widget.Prompt(),
            widget.TaskList(),
            widget.BatteryIcon(battery=1),
            #widget.Systray(),
            widget.Clock(format='%a %d %b %H:%M '),
        ],
        24,
    )
Exemple #6
0
                             border_width=2,
                             line_width=1),
             widget.MemoryGraph(type="box",
                                graph_color=theme.bg_active,
                                border_color=theme.bg_active,
                                background="#CACACA",
                                border_width=2,
                                line_width=1),
             widget.TextBox(font="Arial",
                            foreground="#CACACA",
                            text="◤ ",
                            fontsize=(FONT_SIZE * 5.25),
                            padding=-1),
             widget.Systray(),
             widget.Clock(format='%d.%m.%Y %H:%M'),
             widget.BatteryIcon(),
             #       widget.Volume(get_volume_command="pamixer --get-volume",emoji=True),
             widget.QuickExit(),
         ],
         28,
         background=theme.bg), ),
 Screen(
     top=bar.Bar(
         [
             widget.CurrentLayout(),
             widget.GroupBox(disable_drag=True),
             #            widget.Prompt(),
             widget.WindowName(),
             widget.Prompt(name="proj"),
         ],
         30), )
Exemple #7
0
                    chords_colors={
                        'launch': ("#222222", "#ffffff"),
                    },
                    name_transform=lambda name: name.upper(),
                ),

                widget.TextBox("", foreground='#ccccff', fontsize=30, padding=0),
                widget.Pomodoro(length_pomodori=25,
                                color_inactive="000000",
                                color_active='006400',
                                color_break='ff7538',
                                background="ccccff"),
                widget.TextBox("", foreground='#ccccff', fontsize=37, padding=0),

                widget.TextBox("", foreground='#9999ff', fontsize=37, padding=-4),
                widget.BatteryIcon(background='#9999ff', foreground='#000000'),
                widget.Battery(format='  {percent:2.0%}',
                               background='#9999ff',
                               foreground='#000000',
                               padding=0),
                widget.TextBox("", foreground='#9999ff', fontsize=37, padding=0),

                widget.TextBox("", foreground='#8776ff', fontsize=37, padding=-4),
                widget.TextBox(u"\U0001F50a ", background='#8776ff', foreground='#000000',
                               fontsize=16,
                               mouse_callbacks={"Button1": up_volume,
                                                "Button3": down_volume}
                               ),
                widget.Volume(background="#8776ff", foreground='#000000'),
                widget.TextBox("", foreground='#8776ff', fontsize=37, padding=0),
Exemple #8
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
Exemple #9
0
screens = [
    Screen(
        top=bar.Bar(
            widgets=[
                widget.GroupBox(),
                widget.Prompt(),
                #widget.AGroupBox(),
                widget.WindowName(),
                #widget.TextBox("default config", name="default"),
                #widget.Mpris2(objname="org.mpris.MediaPlayer2.rhythmbox"),
                widget.Systray(),
                widget.Spacer(width=12),
                NetworkIcon(theme_path=home + '/.config/qtile/icons/mono'),
                widget.BatteryIcon(theme_path=home +
                                   '/.config/qtile/icons/mono',
                                   battery_name='BAT0'),
                widget.Volume(theme_path=home + '/.config/qtile/icons/mono'),
                #widget.NetGraph(interface='auto'),
                widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
            ],
            size=30,
            #icon_size=20,
            background=['444444', '222222'],
        ), ),
    Screen(
        top=bar.Bar(
            widgets=[
                widget.GroupBox(),
                widget.Prompt(),
                widget.WindowName(),
Exemple #10
0
    layout.RatioTile(),
    layout.Matrix(),
]

floating_layout = layout.Floating()

# Screens and widget options
screens = [
    Screen(top=bar.Bar(
        widgets=[
            widget.GroupBox(highlight_method='block', inactive='999999'),
            widget.Prompt(),
            widget.WindowName(),
            widget.Systray(),
            widget.Clock(format='%a %d %b %I:%M %p'),
            widget.BatteryIcon(update_interval=1),
        ],
        size=30,
        background=['222222', '111111'],
    ), ),
]

widget_defaults = dict(
    font='Iosevka',
    fontsize=12,
)

auto_fullscreen = True


@hook.subscribe.startup
Exemple #11
0
def init_widgets_list():
    prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
    widgets_list = [
        widget.GroupBox(font="FontAwesome",
                        fontsize=16,
                        margin_y=-1,
                        margin_x=0,
                        padding_y=6,
                        padding_x=5,
                        borderwidth=0,
                        disable_drag=True,
                        active=colors[9],
                        inactive=colors[5],
                        rounded=False,
                        highlight_method="text",
                        this_current_screen_border=colors[8],
                        foreground=colors[2],
                        background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.CurrentLayout(font="Noto Sans Bold",
                             foreground=colors[5],
                             background=colors[1]),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.WindowName(
            font="Noto Sans",
            fontsize=12,
            foreground=colors[5],
            background=colors[1],
        ),
        # widget.Net(
        #          font="Noto Sans",
        #          fontsize=12,
        #          interface="enp0s31f6",
        #          foreground=colors[2],
        #          background=colors[1],
        #          padding = 0,
        #          ),
        # widget.Sep(
        #          linewidth = 1,
        #          padding = 10,
        #          foreground = colors[2],
        #          background = colors[1]
        #          ),
        # 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]
        #          ),
        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"),
        # 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
        #                        ),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[4],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        arcomemory.Memory(fmt='{MemUsed} MB\n{Memsza}%',
                          execute='urxvt -e htop',
                          padding=5,
                          margin=10,
                          font="Noto Sans",
                          fontsize=10,
                          update_interval=1,
                          foreground=colors[5],
                          background=colors[1]),
        # This is the standard Qtile memory widget
        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="Noto Sans",
            fmt='{MemUsed}/{MemTotal}M',
            update_interval=5,
            fontsize=12,
            foreground=colors[5],
            background=colors[1],
        ),
        # # battery option 1  or ArcoLinux Horizontal icons by default
        # # Other options have been moved to the backup folder
        # # 3 extra possibilities for your battery usage
        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]),
        # Choose : battery option 2 or vertical icons
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.BatteryIcon(theme_path=home +
                           "/.config/qtile/icons/battery_icons_vert"),
        # # Choose : battery option 3 or vertical icons from qtile
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.BatteryIcon(),
        # # Choose : battery option 4 or never changing image with % and hour
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[9],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Battery(energy_now_file='charge_now',
                       energy_full_file='charge_full',
                       power_now_file='current_now',
                       foreground=colors[5],
                       background=colors[1],
                       update_interval=5),
        widget.Sep(linewidth=1,
                   padding=10,
                   foreground=colors[2],
                   background=colors[1]),
        widget.TextBox(font="FontAwesome",
                       text="  ",
                       foreground=colors[3],
                       background=colors[1],
                       padding=0,
                       fontsize=16),
        widget.Clock(foreground=colors[5],
                     background=colors[1],
                     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=4),
    ]
    return widgets_list
Exemple #12
0
     interface='wlp2s0',
     background = "#303A3F"
 ),
 widget.Image(
     filename = '/home/black/.config/qtile/src/sep/i3.png',
     background = "#353F44",
     margin = 0
 ),
 widget.Battery(
     update_interval=1,
     format='{percent:2.0%}',
     background = "#353F44"
 ),
 widget.BatteryIcon(
     update_interval=1,
     theme_path= '/home/black/.config/qtile/src/bat',
     background = "#353F44"
 ),
 widget.Image(
     filename = '/home/black/.config/qtile/src/sep/i2.png',
     background = "#3A4449",
     margin = 0
 ),
 widget.Clock(
     format='%Y-%m-%d %a %I:%M %p',
     background = "#3A4449"
 ),
 widget.Image(
     filename = '/home/black/.config/qtile/src/sep/i1.png',
     background = "#3F494E",
     margin = 0
Exemple #13
0
                        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.BatteryIcon(**base(bg='color4'), format='{percent:2.0%}'),
    widget.Battery(**base(bg='color4'), format='{percent:2.0%}'),
    powerline('color3', 'color4'),
    icon(bg="color3", text=' '),  # Icon: nf-fa-feed
    widget.Net(**base(bg='color3'), interface='wlp2s0'),
    powerline('color2', 'color3'),
    widget.CurrentLayoutIcon(**base(bg='color2'), scale=0.65),
    widget.CurrentLayout(**base(bg='color2'), padding=5),
    powerline('color1', 'color2'),
    icon(bg="color1", fontsize=17, text=' '),  # Icon: nf-mdi-calendar_clock
    widget.Clock(**base(bg='color1'), format='%d/%m/%Y - %H:%M '),
    powerline('dark', 'color1'),
    widget.Systray(background=colors['dark'], padding=5),
]

secondary_widgets = [
Exemple #14
0
def init_widgets_list():
    widgets_list = [
        widget.Sep(linewidth=0,
                   padding=6,
                   foreground=colors[2],
                   background=colors[0]),
        widget.Image(filename="~/.config/qtile/icons/python.png",
                     mouse_callbacks={
                         'Button1': lambda qtile: qtile.cmd_spawn('dmenu_run')
                     }),
        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[6],
                          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.Mpd2(foreground=colors[2], background=colors[4]),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.BatteryIcon(foreground=colors[2],
                           background=colors[5],
                           padding=0,
                           fontsize=14),
        widget.Battery(foreground=colors[2],
                       background=colors[5],
                       format='{percent:2.0%} W',
                       padding=5),
        widget.TextBox(text='',
                       background=colors[5],
                       foreground=colors[4],
                       padding=0,
                       fontsize=37),
        widget.Net(interface="wlo1",
                   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.CurrentLayoutIcon(
            custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
            foreground=colors[0],
            background=colors[4],
            padding=0,
            scale=0.7),
        widget.CurrentLayout(foreground=colors[2],
                             background=colors[4],
                             padding=5),
        widget.TextBox(text='',
                       background=colors[4],
                       foreground=colors[5],
                       padding=0,
                       fontsize=37),
        widget.Clock(foreground=colors[2],
                     background=colors[5],
                     format="%I:%M %p"),
        widget.Sep(linewidth=0,
                   padding=10,
                   foreground=colors[0],
                   background=colors[5]),
        widget.Systray(foreground=colors[2], background=colors[5], padding=5),
    ]
    return widgets_list
Exemple #15
0
            widget.GroupBox(),
            widget.Prompt(),
            widget.WindowName(),
            widget.CPUGraph(line_width=2, width=50, graph_color='f8ff8c'),
            widget.MemoryGraph(line_width=2, width=50, graph_color='8cff8d'),
            widget.NetGraph(interface='wlp1s0',
                            bandwidth_type='down',
                            line_width=2,
                            width=50,
                            graph_color='8cfff8'),
            widget.NetGraph(interface='wlp1s0',
                            bandwidth_type='up',
                            line_width=2,
                            width=50,
                            graph_color='8c9aff'),
            widget.BatteryIcon(
                theme_path='/home/yantene/.config/qtile/battery-icons'),
            widget.Battery(format='{percent:2.0%}'),
            widget.Systray(),
            widget.Clock(format='%Y-%m-%d (%a) %p %I:%M'),
        ],
        30,
    ), ),
    Screen(top=bar.Bar(
        [
            widget.GroupBox(),
            widget.WindowName(),
            widget.Clock(format='%Y-%m-%d (%a) %p %I:%M'),
        ],
        30,
    ), ),
]
Exemple #16
0
            widget.MemoryGraph(
                graph_color="0ae855", fill_color="0bffa3.3", **graph_defaults),
            widget.NetGraph(
                graph_color="b2a400", fill_color="fff36c.3", **graph_defaults),
            widget.GenPollUrl(
                url='http://sandia.local:2017/pango/',
                json=False,
                update_interval=5,
                parse=lambda r: r,
                markup=True,
            ),
            widget.Sep(),
            widget.Backlight(backlight_name='intel_backlight'),
            widget.Sep(),
            widget.Battery(battery_name='BAT0'),
            widget.BatteryIcon(battery_name='BAT0'),
            widget.Battery(battery_name='BAT1'),
            widget.BatteryIcon(battery_name='BAT1'),
        ],
        30,
    ), ),
    Screen(top=bar.Bar(
        [
            widget.WindowName(fontsize=12, padding=5, foreground=theme['fg']),
            widget.GroupBox(),
            widget.Sep(),
            widget.Prompt(),
        ],
        30,
    ), ),
]
Exemple #17
0
            widget.Clock(
                format='%H:%M:%S',
                timezone="Asia/Jerusalem",
                foreground='#50e6a4'
            ),
            widget.Sep(),
            widget.TextBox(text="", foreground="f4a142"),
            widget.Clock(
                format='%d/%m/%Y',
                foreground='f4a142'
            ),
            widget.Sep(),
            widget.Systray(),
            widget.Sep(),
            widget.BatteryIcon(
                battery_name='BAT1',

            ),

            widget.Sep(text="|"),
            widget.BatteryIcon(
                battery_name="BAT0",

            ),
        ],
        28,
        background='0F1213'
    ),
)

secondary_screen = Screen(
    bottom=bar.Bar(
Exemple #18
0
         emoji=True,
         step=5),  # We set device to pulse to get it working
     get_powerline(),
     # widget.Battery(
     #     foreground=colors[2],
     #     background=colors[5],
     # ),
     widget.Battery(
         foreground=colors2['color1'],
         background=get_bg_color(),
         notify_below=25,
         format='{char} {percent:2.0%} {hour:d}:{min:02d}',
         update_interval=5,
     ),
     widget.BatteryIcon(
         foreground=colors2['color1'],
         background=get_bg_color(),
     ),
     get_powerline(),
     widget.Systray(foreground=colors2['color1'],
                    background=get_bg_color(),
                    padding=5),
     get_powerline(),
     widget.Clock(
         # format='%Y-%m-%d %a\n %I:%M %p',
         format='%a %d-%m-%Y %I:%M %p',
         foreground=colors2['color1'],
         background=get_bg_color(),
         # fontsize=10,
     ),
 ],
 24,
Exemple #19
0
                    font='JoyPixels',
                    foreground='#C795AE',
                    update_interval=30),
     widget.Pacman(
         execute='urxvt -e /home/danekikr/.local/bin/update.sh',
         update_interval=2,
     ),
     # widget.Sep(
     #          linewidth = 1,
     #          padding = 10,
     #          foreground = colors[2],
     #          background = colors[1]
     #          ),
     widget.Battery(battery=0, ),
     widget.BatteryIcon(
         battery=0,
         update_interval=5,
     ),
     widget.Battery(battery=1, ),
     widget.BatteryIcon(
         battery=1,
         update_interval=5,
     ),
     widget.TextBox(
         '⏰',
         font='JoyPixels',
         foreground='#C795AE',
     ),
     widget.Clock(foreground='#95AEC7', format='%H:%M'),
     widget.QuickExit(foreground='#C795AE', ),
 ],
 24,
Exemple #20
0
        widget.CurrentLayoutIcon(scale=0.6),
        widget.GroupBox(
            active="ebdbb2",
            inactive="665c54",
            this_current_screen_border="ebdbb2",
            highlight_method="line",
            highlight_color=["3c3836", "3c3836"],
            center_aligned=True,
        ),
        widget.WindowName(width=600, for_current_screen=True),
        widget.Spacer(length=bar.STRETCH),
        widget.Clock(format="<b>%H:%M %d.%m.%Y</b>"),
        widget.Spacer(length=bar.STRETCH),
        widget.Systray(),
        widget.Spacer(length=10),
        widget.BatteryIcon(
            theme_path=os.path.expanduser("~/.config/qtile/battery-icons"), ),
        widget.Battery(format="{percent:2.0%}", **widget_defaults),
        widget.Spacer(length=10),
    ],
    30,
    background="282828",
    opacity=0.95,
    margin=[3, 0, 3, 0],
), )


def get_num_monitors():
    num_monitors = 0
    try:
        display = xdisplay.Display()
        screen = display.screen()
Exemple #21
0
     foreground=aqua,
     background=green,
 ),
 widget.TextBox(
     text='bat:',
     background=green,
     foreground=white0,
 ),
 widget.Battery(
     format='{percent:2.0%}',
     low_percentage=0.2,
     low_foreground=warning,
     background=green,
     foreground=white0,
 ),
 widget.BatteryIcon(background=green, update_interval=2),
 widget.TextBox(
     padding=0,
     text=separator,
     foreground=aqua,
     background=green,
 ),
 widget.TextBox(
     padding=0,
     text=separator,
     foreground=purple,
     background=blue,
 ),
 widget.Clock(
     #format='%I:%M %p',
     format='%d.%m',
Exemple #22
0
 wallpaper="~/wallpapers/cowb.jpg",
 wallpaper_mode="fill",
 top=bar.Bar(
     [
         widget.WindowName(),
         widget.Prompt(),
         widget.Clock(format='%a, %-d %b %I:%M %p'),
         widget.Spacer(length=500),
         widget.KeyboardLayout(configured_keyboards=keyboards),
         widget.Image(
             filename="~/.config/qtile/icons/volume_icon2.png"),
         widget.Volume(),
         widget.Spacer(length=25),
         widget.Systray(),
         widget.Spacer(length=20),
         widget.BatteryIcon(update_interval=5, padding=5),
         widget.Battery(
             format='{percent:2.0%} {hour:d}:{min:02d} {watt:.2f} W',
             notify_below=0.2),
         widget.Spacer(length=5),
         widget.QuickExit(default_text="  "),
         widget.Image(
             filename="~/.config/qtile/icons/power_icon2.png",
             margin=5),
         widget.Spacer(length=20),
     ],
     27,
     opacity=0.80,
     background=colors["gris"],
 ),
 bottom=bar.Bar(
Exemple #23
0
def init_screens():
    return [
        Screen(top=bar.Bar(
            [
                widget.Sep(
                    linewidth=0,
                    padding=10,
                ),
                widget.TextBox(
                    font="SFMono Nerd Font",
                    text="",
                    fontsize=15,
                    markup=True,
                ),
                widget.Sep(
                    linewidth=0,
                    padding=10,
                ),
                widget.GroupBox(
                    # active = colors[2],
                    # inactive = colors[0],
                    font='SFMono Nerd Font',
                    # markup = False,
                    disable_drag=False,
                    fontsize=11,
                    # hide_unused = True,
                    rounded=False,
                    # highlight_method="text",
                    padding=0,
                    margin_y=3,
                    margin_x=0,
                    padding_y=5,
                    padding_x=5,
                    borderwidth=3,
                    inactive=colors[7],
                    highlight_color=colors[0],
                    highlight_method="line",
                    active=colors[2],
                    this_current_screen_border=colors[2],
                    this_screen_border=colors[4],
                    other_current_screen_border=colors[0],
                    other_screen_border=colors[0],
                    foreground=colors[2],
                    # background = colors[0]
                ),
                # widget.Sep(linewidth = 0,padding = 10,),
                widget.WindowName(fontsize=11, ),
                # widget.TextBox("default config", name="default"),
                widget.Sep(
                    linewidth=0,
                    padding=2,
                ),
                widget.Systray(),
                widget.Spacer(width=12),
                # widget.CurrentLayoutIcon(
                #                         custom_icon_paths=HOME+"/.config/qtile/icons",
                #                         foreground = colors[0],
                #                         background = colors[0],
                #                         padding = 0,
                #                         margin=5,
                #                         scale=0.7
                #                         ),
                widget.Wlan(
                    interface="wlp4s0",
                    format="W:{quality}",
                    fontsize=10,
                ),
                # NetworkIcon(theme_path='/HOME/gem/.config/qtile/icons/mojave'),
                widget.Sep(
                    linewidth=0,
                    padding=3,
                ),
                widget.PulseVolume(
                    volume_app="pavucontrol",
                    # emoji=True,
                    # get_volume_command="pamixer --get-volume",
                    # theme_path=HOME+'/.config/qtile/icons/mojave',
                ),
                widget.Sep(
                    linewidth=0,
                    padding=3,
                ),
                widget.BatteryIcon(
                    theme_path=HOME + '/.config/qtile/icons/mojave',
                    padding=0,
                ),
                # widget.Battery(
                #     format='B: {percent:2.0%}',
                #     fontsize=12,
                #     update_interval=30
                #     ),
                widget.Sep(
                    linewidth=0,
                    padding=3,
                ),
                widget.Clock(format='%a %I:%M %p [%u]'),
                widget.Sep(
                    linewidth=0,
                    padding=3,
                ),
                widget.TextBox(font="SFMono Nerd Font",
                               text="",
                               fontsize=12,
                               markup=True,
                               mouse_callbacks={'Button1': ''}),
                widget.Sep(
                    linewidth=0,
                    padding=10,
                ),
            ],
            opacity=0.8,
            size=24))
    ]
Exemple #24
0
def init_widgets_list():
	prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
	widgets_list = [widget.Sep(linewidth=0, 
								padding=6, 
								foreground=colors[1], 
								background=colors[0]),
					widget.GroupBox(font='ShureTechMono Nerd Font',
								fontsize=12,
								margin_y=0,
								margin_x=0,
								padding_y=5,
								padding_x=10,
								borderwitdh=1,
								active=colors[1],
								inactive=colors[1],
								rounded=False,
								highlight_method='block',
								this_current_screen_border=colors[3],
								this_screen_border=colors[3],
								other_current_screen_border=colors[0],
								other_screen_border=colors[0],
								background=colors[0]),
					widget.Sep(linewidth=0,
								padding=6,
								foreground=colors[1],
								background=colors[0]),
					widget.Prompt(prompt=prompt,
								background=colors[4],
								foreground=colors[15]),
					widget.WindowName(foreground=colors[7]),
					widget.Systray(padding=9,
								icon_size=20),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
				#	widget.CPUGraph(graph_color=colors[5],
				#					border_color=colors[1],
				#					fill_color=colors[5],
				#					border_width=1),
				#	widget.MemoryGraph(graph_color=colors[3],
				#					border_color=colors[1],
				#					fill_color=colors[3],
				#					border_width=1),
				#	widget.Sep(linewidth=0,
				#				padding=20,
				#				foreground=colors[1],
				#				background=colors[0]),
					widget.CurrentLayout(font="ShureTechMono Nerd Font"),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.Image(filename=HOMEDIR+"/Pictures/icons/whitepng/wifi.png", 
							background=colors[0]),
					widget.Sep(linewidth=0,
								padding=5,
								foreground=colors[1],
								background=colors[0]),
					widget.Wlan(interface='wlp58s0',
							font="ShureTechMono Nerd Font",
							format="{quality}/70"),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.Volume(theme_path=HOMEDIR+"/Pictures/icons/whitepng/volume",
								volume_app="amixer",
								mute_command="Master toggle",
								volume_down_command="set Master 1%-",
								volume_up_command="set Master 1%+"),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.BatteryIcon(theme_path=HOMEDIR+'/Pictures/icons/battery/',
									background=colors[0]),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.KeyboardLayout(configured_keyboards=['us', 'us alt-intl']),
					widget.Sep(linewidth=0,
								padding=20,
								foreground=colors[1],
								background=colors[0]),
					widget.Image(filename=HOMEDIR+"/Pictures/icons/whitepng/clock.png", 
								background=colors[0]),
					widget.Clock(format='%d-%b %a %H:%M'),
					widget.Sep(linewidth=0,
								padding=10,
								foreground=colors[1],
								background=colors[0]),]
	return widgets_list
Exemple #25
0
                                   fill_color='#00B25B.3',
                                   **Widget.graph),
                widget.SwapGraph(graph_color='#5E0101',
                                 fill_color='#FF5656',
                                 **Widget.graph),
                widget.NetGraph(graph_color='#ffff00',
                                fill_color='#4d4d00',
                                interface='wlan0',
                                **Widget.graph),
                widget.HDDBusyGraph(device='sda', **Widget.graph),
                widget.HDDBusyGraph(device='sdb', **Widget.graph),
                widget.ThermalSensor(metric=False, threshold=158),
                widget.Sep(**Widget.sep),
                widget.CurrentLayout(),
                widget.Systray(**Widget.systray),
                widget.BatteryIcon(**Widget.battery),
                # widget.Battery(**Widget.battery_text),
                widget.Volume(
                    theme_path='/usr/share/icons/Humanity/status/22/',
                    cardid=1),
                widget.YahooWeather(location='Fresno, CA', **Widget.weather),
                widget.Clock(fmt='%a %d %b %I:%M %p'),
            ],
            **bar_defaults), ),
    Screen(top=bar.Bar(widgets=[
        widget.GroupBox(**Widget.groupbox),
        widget.WindowName(),
        widget.CurrentLayout(),
    ],
                       **bar_defaults), )
]
Exemple #26
0
     fmt="<span font_family='Fira Code Nerd Font' size='larger'> </span>{}",
     tag_sensor="Package id 0",
     foreground_alert=colors["sensor_alert"],
     threshold=70,
 ),
 widget.TextBox(
     **separator_defaults,
     text=sep,
     foreground=colors["sep"],
     background=colors["sensor_bg"],
 ),
 widget.BatteryIcon(
     theme_path=TELA_ICONS+"24/panel/",
     background=colors["battery_bg"],
     mouse_callbacks={
         'Button4': lambda qtile: qtile.cmd_spawn('xbacklight -inc 10'),
         'Button5': lambda qtile: qtile.cmd_spawn('xbacklight -dec 10'),
     },
     update_interval=1
 ),
 widget.Backlight(
     backlight_name="intel_backlight",
     brightness_file="brightness",
     max_brightness_file="max_brightness",
     # fmt="{0} ",
     format='{percent:2.0%}',
     background=colors["battery_bg"],
     step=10,
     # change_command='xbacklight -set {0}',
     change_command="xbacklight -set {0}",
     update_interval=0.2,
Exemple #27
0
    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.Systray(),
            widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
            widget.BatteryIcon(markup=False),
            widget.QuickExit(),
        ],
        24,
    ), ),
]

# Drag floating layouts.
mouse = [
    Drag([mod],
         "Button1",
         lazy.window.set_position_floating(),
         start=lazy.window.get_position()),
    Drag([mod],
         "Button3",
         lazy.window.set_size_floating(),
Exemple #28
0
]

widget_defaults = dict(
    font='Droid Sans Mono',
    fontsize=32,
)

screens = [
    Screen(
        bottom=bar.Bar(
            [
                widget.GroupBox(),
                widget.Prompt(),
                widget.WindowName(),
                widget.Systray(icon_size=32),
                widget.BatteryIcon(fontsize=12),
                widget.Clock(format='%b %d %Y %I:%M %p'),
            ],
            40,
        ),
        top=bar.Bar(
            [widget.CurrentScreen(active_text="*" * 200, inactive_text="")],
            20,
        ),
    ),
    Screen(top=bar.Bar(
        [widget.CurrentScreen(active_text="*" * 200, inactive_text="")],
        20,
    ), ),
    Screen(top=bar.Bar(
        [widget.CurrentScreen(active_text="*" * 200, inactive_text="")],
Exemple #29
0
def init_screen1():
    return Screen(top=bar.Bar(
        widgets=[
            widget.CurrentLayoutIcon(
                scale=0.75,
                foreground=colors[3],
            ),
            widget.Sep(**widget_defaults),
            widget.GroupBox(active='#FFFF99',
                            inactive=colors[2],
                            urgent_alert_method='block',
                            highlight_method='block',
                            this_current_screen_border=colors[3],
                            this_screen_border=colors[0],
                            other_current_screen_border=colors[3],
                            other_screen_border=colors[0],
                            disable_drag=True,
                            spacing=0,
                            padding_x=6,
                            visible_groups=['a', 's', 'd', 'f'],
                            use_mouse_wheel=False,
                            **widget_defaults),
            widget.Sep(**widget_defaults),
            widget.Prompt(padding=10, ),
            widget.TaskList(
                border=colors[5],
                max_title_width=150,
                highlight_method='block',
                spacing=0,
                margin=0,
                padding_x=12,
                fontsize=14,
                txt_floating='[x]',
                icon_size=0,
                rounded=False,
            ),
            widget.Systray(
                background=colors[6],
                **widget_defaults,
            ),
            widget.BatteryIcon(
                theme_path='/home/xiangchong/.config/qtile/battery-icons/',
                background=colors[4],
                spacing=3,
                padding_x=6,
            ),
            widget.CPU(
                foreground=colors[3],
                background=colors[4],
                max_chars=12,
                format='CPU:{load_percent:02.0f}%;',
                spacing=0,
                padding_x=6,
            ),
            widget.Memory(
                foreground=colors[3],
                background=colors[4],
                max_chars=12,
                measure_mem='G',
                measure_swap='G',
                spacing=1,
                padding_x=6,
                format='Mem:{MemUsed:02.0f}{mm}/{MemTotal:.0f}{mm}',
            ),
            widget.Countdown(
                background=colors[6],
                date=datetime(2022, 4, 1),
                format='{D} Days;',
                update_interval=3600,
                # background = colors[1],
                foreground=colors[0],
                spacing=1,
                padding_x=6,
            ),
            widget.Clock(
                background=colors[6],
                foreground=colors[0],
                format="%a, %m-%d; %H:%M",
            ),
        ],
        opacity=.95,
        size=26,
        background='#12141a',
    ))
Exemple #30
0
    'size_percent': 70,
    'foreground': '393939',
    'padding': 7
}

icon_theme_path = '/usr/share/icons/AwOkenWhite/clear/24x24/status/'
main_bar = bar.Bar([
    widget.GroupBox(),
    widget.Mpris2(background='253253',
                  name='spotify',
                  stop_pause_text='▶',
                  scroll_chars=None,
                  display_metadata=['xesam:title', 'xesam:artist'],
                  objname="org.mpris.MediaPlayer2.spotify"),
    widget.Sep(linewidth=2, size_percent=100, padding=12),
    widget.Prompt(),
    widget.Volume(theme_path=icon_theme_path),
    widget.WindowName(),
    widget.Systray(),
    widget.Sep(**soft_sep),
    widget.BatteryIcon(theme_path=icon_theme_path),
    widget.Battery(foreground='247052',
                   low_percentage=0.20,
                   low_foreground='fa5e5b',
                   update_delay=10,
                   format='{percent:.0%} {hour:d}:{min:02d} '
                   '{watt:.2}W'),
    widget.Sep(**soft_sep),
    widget.Clock(timezone='Europe/Paris', format='%B %-d, %H:%M'),
], 30)