def pomodoro(): # A workaround their intended use of fmt, # using '|' to indicate where the hr 0's are to remove them class Formatter: @staticmethod def format(s): idx = s.find('|') if idx != -1: return s[0:idx] + s[idx + 3:] else: return s return widget.Pomodoro(font='Ubuntu', background=colors['background'], color_active=colors['contrast'], color_break=colors['highlight_bright'], color_inactive=colors['foreground'], fontsize=13, prefix_active='\u23F1 - |', prefix_inactive='\u23F1 - |0:25:00', prefix_break='\u23F1 - |', prefix_long_break='\u23F1 - |', fmt=Formatter, length_pomodori=25, length_short_break=5, length_long_break=15)
def init_screens(): return [ Screen( top=bar.Bar( [ widget.TextBox(str(ul), fontsize=32, spacing=0, padding=0), widget.GroupBox( rounded=False, hide_unused=True, # setting background causes the whole widget to become # that color for some reason # background=theme['foreground'], # foreground=theme['background'], # inactive=theme['background'], # active=theme['foreground'], # this_screen_border=theme['foreground'], # this_current_screen_border=theme['background'], spacing=5, padding=0), widget.TextBox( text=lr + ul, fontsize=32, spacing=0, padding=0), # TODO: Make CurrentLayout Widget display custom texts. # > Possibly as simple as editing layout.name widget.CurrentLayout(scale=0.6), widget.Prompt(prompt='$', padding=32), widget.TextBox(padding=100), widget.TextBox(lr, fontsize=32, spacing=0, padding=0), widget.TaskList(icon_size=0, spacing=10, highlight_method='border', border=theme['color14'], background=theme['foreground'], foreground=theme['background']), widget.TextBox(ul, fontsize=32, spacing=0, padding=0), widget.TextBox(padding=100), widget.TextBox(lr + ul, fontsize=32), widget.Systray(), widget.TextBox(lr, fontsize=32), widget.Clock(background=theme['foreground'], foreground=theme['background'], format='%Y%m%d[%w].%H%M:%S'), widget.TextBox(background=theme['foreground'], padding=4), widget.Pomodoro( color_inactive=theme['color10'], color_active=theme['color11'], color_break=theme['color12'], foreground=theme['color2'], background=theme['foreground'], ), widget.TextBox(background=theme['foreground'], padding=4), ], 15), ), ]
##Verify number of screens ### monitors_status = subprocess.run( "xrandr | grep 'connected' | cut -d ' ' -f 2", shell=True, stdout=subprocess.PIPE).stdout.decode("UTF-8").split("\n")[:-1] screens = [ Screen( top=bar.Bar( [ widget.GroupBox(), widget.TaskList(highlight_method='block'), widget.Spacer(), widget.Pomodoro(length_long_break=20, length_pomodori=40, length_short_break=5), widget.CPU(format='CPU {load_percent}%'), #widget.NvidiaSensors(format='GPU {temp} °C', update_interval=1), widget.Systray(), widget.BatteryIcon(update_interval=5), widget.Clock(format='%I:%M %p, %b %d', background='#0f4c75'), widget.Sep(padding=15) ], 30, background='#1b262c', opacity=0.95), ) ] if monitors_status.count("conneted") == 2: screens.append(
#foreground = colors[3], background="3a0ca3", ), widget.TextBox(font="Hack", fontsize=26, text="", foreground="3a0ca3", padding=0, background="4361EE", opacity=0), widget.Pomodoro( font="Hack Bold", fontsize=20, background="4361EE", # fondo azul color_active=colors[3], # Letras rojas color_break="35E95F", # Letras verdes del break color_inactive=colors[2], # Letras blancas notification_on=False, prefix_inactive="", prefix_active=" ", ## You are here prefix_paused=" PAUSED"), widget.TextBox( font="Hack", fontsize=26, text="", foreground="4361EE", padding=0, background=colors[0], ), #widget.WindowTabs(font="Hack Bold", background=colors[0],),
icon_size = 18 ), widget.Sep( linewidth = 1, padding = 10, foreground = colors[7], background = colors[0] ), widget.Pomodoro( color_active = colors[4], color_break = colors[2], color_inactive = colors[6], length_pomodori = 50, length_short_break = 10, prefix_active = " ", prefix_break = "BREAK ", prefix_long_break = "LONG BREAK ", prefix_inactive = "", prefix_paused = "", padding = 5, fontsize = 16, foreground = colors[7], background = colors[0] ), widget.Sep( linewidth = 0, padding = 5, foreground = colors[7], background = colors[0] ), widget.TextBox( text = ' ',
widget.GroupBox(this_current_screen_border="ffffff", borderwidth=2, inactive="6a6a6a"), widget.Prompt(), widget.WindowName(), widget.Chord( 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,
top=bar.Bar( [ widget.GroupBox(**group_box_config, visible_groups=['6', '7', '8', '9', '0']), widget.WindowName(), my_widgets.CapsLock( background=Colors.red_dark, foreground=Colors.foregroud, ), my_widgets.NumLock(background=Colors.blue_light, foreground=Colors.background), my_widgets.Spotify(background=Colors.green_dark, ), widget.Pomodoro( background=Colors.yellow_dark, color_active='#111111', color_inactive='#111111', foreground='#111111', fontsize=14, prefix_inactive='⏲', ), widget.Notify(), widget.Systray(), # widget.Net(), my_widgets.Clock(background=Colors.purple_dark, foreground=Colors.foregroud), ], 23, background=Colors.background, opacity=0.75), x=1366, y=0, width=1366,
def init_widgets_list(): widgets_list = [ widget.Sep( linewidth = 0, padding = 6, foreground = colors[2], background = colors[0] ), widget.GroupBox(font="Overpass Semi-Bold", fontsize = 12, margin_y = 1, margin_x = 0, padding_y = 5, padding_x = 5, 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, 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[4], padding=0, fontsize=25 ), widget.TextBox( text=" ", padding = 2, foreground=colors[2], background=colors[4], fontsize=20 ), widget.Pomodoro( foreground=colors[2], background=colors[4], color_inactive=colors[2], padding = 5 ), widget.TextBox( text='', background = colors[4], foreground = colors[5], padding=0, fontsize=25 ), widget.TextBox( text=" 🌡", padding = 2, foreground=colors[2], background=colors[5], fontsize=11 ), widget.ThermalSensor( foreground=colors[2], background=colors[5], padding = 5 ), widget.TextBox( text='', background = colors[5], foreground = colors[4], padding=0, fontsize=25 ), widget.TextBox( text=" ⟳", padding = 2, foreground=colors[2], background=colors[4], fontsize=14 ), widget.Pacman( execute = "pamac-manager", update_interval = 1800, foreground = colors[2], background = colors[4] ), widget.TextBox( text="Updates", padding = 5, foreground=colors[2], background=colors[4] ), widget.TextBox( text='', background = colors[4], foreground = colors[5], padding=0, fontsize=25 ), widget.TextBox( text=" 🖬", foreground=colors[2], background=colors[5], padding = 0, fontsize=14 ), widget.Memory( foreground = colors[2], background = colors[5], padding = 5 ), widget.TextBox( text='', background = colors[5], foreground = colors[4], padding=0, fontsize=25 ), widget.CPU( foreground = colors[2], background = colors[4], padding = 5 ), widget.TextBox( text='', background = colors[4], foreground = colors[5], padding=0, fontsize=25 ), 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=25 ), 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=25 ), widget.Clock( foreground = colors[2], background = colors[5], format="%A, %B %d - [ %H:%M ]" ), widget.Sep( linewidth = 0, padding = 10, foreground = colors[0], background = colors[5] ), widget.Systray( background=colors[0], padding = 5 ), ] return widgets_list
size=30, background=['222222', '111111'], ), ), Screen( top=bar.Bar( [ widget.GroupBox( highlight_method='block', inactive='999999' ), widget.Prompt(), widget.WindowName(), widget.CurrentScreen(), widget.Pomodoro(), widget.CurrentLayout(), widget.Systray(), widget.Clock(format='%Y-%m-%d %a %H:%M'), #widget.QuickExit(), ], size=30, background=['222222', '111111'], ), ), ] countdown_widget = next( (widget for widget in screens[0].bottom.widgets if widget.name == 'countdown'), None)
def init_widgets_list(): widgets_list = [ widget.Sep(lineWidth=0, padding=6, foreground=colors[0], background=colors[0]), widget.GroupBox(fontsize=12, margin_y=5, margin_x=0, padding_y=3, padding_x=5, borderwidth=3, active=colors[7], inactive=colors[7], rounded=False, block_highlight_text_color=colors[0], highlight_color=colors[7], highlight_method="line", foreground=colors[7], background=colors[0]), widget.Prompt(prompt=prompt, padding=10, foreground=colors[7], background=colors[0]), widget.Sep(linewidth=0, padding=30, foreground=colors[7], background=colors[0]), widget.WindowName(foreground=colors[7], background=colors[0], padding=0), widget.Sep(linewidth=0, padding=30, foreground=colors[7], background=colors[0]), widget.Systray(background=colors[0], padding=5, icon_size=18), widget.Sep(linewidth=1, padding=10, foreground=colors[7], background=colors[0]), widget.Pomodoro(color_active=colors[4], color_break=colors[2], color_inactive=colors[6], length_pomodori=50, length_short_break=10, prefix_active=" ", prefix_break="BREAK ", prefix_long_break="LONG BREAK ", prefix_inactive="", prefix_paused="", padding=5, fontsize=16, foreground=colors[7], background=colors[0]), widget.Sep(linewidth=0, padding=5, foreground=colors[7], background=colors[0]), widget.TextBox(text=' ', foreground=colors[6], background=colors[0], padding=-1, fontsize=20), widget.CurrentLayoutIcon(scale=0.75, foreground=colors[7], background=colors[6]), widget.CurrentLayout(foreground=colors[6], background=colors[8], padding=5), widget.TextBox(text='', foreground=colors[8], background=colors[0], padding=0, fontsize=20), # widget.Sep( # linewidth = 0, # padding = 5, # foreground = colors[7], # background = colors[0] # ), widget.TextBox(text=' ', foreground=colors[8], background=colors[0], padding=-1, fontsize=20), widget.Net(interface="wlp3s0", format='{down}', foreground=colors[5], background=colors[8], padding=5), widget.TextBox(text="祝", fontsize=16, padding=5, foreground=colors[8], background=colors[5]), widget.Net(interface="wlp3s0", format='{up}', foreground=colors[5], background=colors[8], padding=5), widget.TextBox(text='', foreground=colors[8], background=colors[0], padding=0, fontsize=20), # widget.Sep( # linewidth = 0, # padding = 5, # foreground = colors[7], # background = colors[0] # ), widget.TextBox(text=' ', foreground=colors[4], background=colors[0], padding=-1, fontsize=20), widget.TextBox(text="直", fontsize=16, padding=5, foreground=colors[8], background=colors[4]), widget.Wlan(interface="wlp3s0", format='{essid}', foreground=colors[4], background=colors[8], padding=5), widget.TextBox(text='', foreground=colors[8], background=colors[0], padding=0, fontsize=20), # widget.Sep( # linewidth = 0, # padding = 5, # foreground = colors[7], # background = colors[0] # ), widget.TextBox(text=' ', foreground=colors[2], background=colors[0], padding=-1, fontsize=20), widget.Volume(emoji=True, fontsize=14, foreground=colors[8], background=colors[2], padding=5), widget.Volume(foreground=colors[2], background=colors[8], padding=5), widget.TextBox(text='', foreground=colors[8], background=colors[0], padding=0, fontsize=20), widget.TextBox(text=' ', foreground=colors[3], background=colors[0], padding=-1, fontsize=20), widget.Battery(battery="BAT1", charge_char='', discharge_char="", empty_char="", full_char="", unknown_char="", low_foreground=colors[6], low_percentage=0.25, notify_below=0.21, show_short_text=False, update_interval=5, fontsize=20, format='{char}', padding=5, foreground=colors[8], background=colors[3]), widget.Battery(battery="BAT1", update_interval=5, format='{percent:2.0%}', padding=5, foreground=colors[3], background=colors[8]), widget.TextBox(text='', foreground=colors[8], background=colors[0], padding=0, fontsize=20), # widget.Sep( # linewidth = 0, # padding = 5, # foreground = colors[7], # background = colors[0] # ), widget.TextBox(text=' ', foreground=colors[1], background=colors[0], padding=-1, fontsize=20), widget.TextBox(text="", fontsize=20, padding=5, foreground=colors[8], background=colors[1]), widget.Clock(foreground=colors[1], background=colors[8], padding=5, format="%A, %B %d - %H:%M"), widget.Sep(linewidth=0, padding=5, foreground=colors[0], background=colors[8]), ] return widgets_list
def pomodoro_widget(): return widget.Pomodoro(**widget_theme, prefix_inactive="⏱", color_break=colors[3], color_inactive=colors[3], color_active=colors[4])
"", fontsize=38, foreground=gruvbox_colors["orange"], ), widget.Chord( chords_colors={ 'launch': ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), fontsize=hidpi_monitor_settngs["fontsize"] ), widget.Pomodoro( background=gruvbox_colors["aqua"], color_active=gruvbox_colors["bg"], color_break=gruvbox_colors["bg"], color_inactive=gruvbox_colors["bg0"], foreground=gruvbox_colors["bg"], length_pomodori=25, length_short_break=5, length_long_break=15, ), widget.TextBox('', fontsize=34, foreground=gruvbox_colors["bg"], background=gruvbox_colors["blue"], ), widget.Volume( foreground=gruvbox_colors["bg"], background=gruvbox_colors["blue"], fontsize=hidpi_monitor_settngs["fontsize"]), widget.Net( foreground=gruvbox_colors["bg"], background=gruvbox_colors["yellow"],
widgets = base_widgets + [ widget.Prompt(), widget.Spacer(), widget.Chord( chords_colors={ 'launch': ("#ff0000", "#ffffff"), }, name_transform=lambda name: name.upper(), ), widget.Pomodoro( fontsize=24, background=colors["bar-widget-pomodoro"], color_active=colors["bar-bg"], color_break=colors["bar-bg"], color_inactive=colors["bar-bg"], timer_visible=False, prefix_active=" ", prefix_break=" ", prefix_inactive="", prefix_long_break=" ", prefix_paused="", padding=10, ), widget.TextBox( text=" ", background=colors["bar-widget-time"], foreground=colors["bar-bg"], fontsize=28, ), widget.Clock(background=colors["bar-widget-time"], foreground=colors["bar-bg"], format='%Y-%m-%d %a %I:%M %p '),
def init_wid_list_top(): wid_list_top = [ #### Shortcuts #### widget.TextBox( font='Font Awesome 5 Free', fontsize=15, foreground=colors[7], text="", mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn( 'rofi -theme "~/.config/rofi/launcher.rasi" -show drun') }, fontshadow=colors[3]), widget.TextBox(font='Font Awesome 5 Free', fontsize=15, foreground=colors[7], text="", mouse_callbacks={'Button1': wsearx}, fontshadow=colors[3]), widget.TextBox( font='Font Awesome 5 Free', fontsize=15, foreground=colors[7], text="", mouse_callbacks={'Button1': lambda: qtile.cmd_spawn(term)}, fontshadow=colors[3]), widget.TextBox( font='Font Awesome 5 Free', fontsize=15, foreground=colors[7], text="", mouse_callbacks={'Button1': lambda: qtile.cmd_spawn('nautilus')}, fontshadow=colors[3]), widget.TextBox(font='Font Awesome 5 Free', fontsize=15, foreground=colors[7], text="", mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('/opt/bin/genwal') }, fontshadow=colors[3]), widget.TextBox(font='Font Awesome 5 Free', fontsize=15, foreground=colors[7], text="", mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('/opt/bin/shortc') }, fontshadow=colors[3]), widget.TextBox(foreground=colors[1], text="◢", fontsize=45, padding=-2), #### Groups #### widget.GroupBox(font='Font Awesome 5 Free', fontsize=15, disable_drag=True, hide_unused=False, fontshadow=colors[0], margin_y=1, padding_x=5, borderwidth=0, active=colors[7], inactive=colors[1], rounded=False, highlight_method="text", this_current_screen_border=colors[0], this_screen_border=colors[3], other_current_screen_border=colors[0], other_screen_border=colors[0], foreground=colors[2], background=colors[1]), #### Notification #### widget.Prompt(prompt=prompt, foreground=colors[0], background=colors[1]), widget.TextBox(background=colors[0], foreground=colors[1], text="◤", fontsize=45, padding=-2), #### Window Name #### widget.TextBox(font='Font Awesome 5 Free', fontsize=15, foreground=colors[7], fontshadow=colors[4], text=""), widget.WindowName(foreground=colors[7], background=colors[0], padding=5, format='{name}', empty_group_string='QARSlp', max_chars=45), widget.Notify(default_timeout=15, foreground_urgent=colors[7], foreground=colors[7], background=colors[0]), #### Spacer #### widget.Spacer(length=bar.STRETCH, background=colors[0], foreground=colors[0]), #### Spotify #### widget.TextBox(text="◢", background=colors[0], foreground=colors[6], padding=-2, fontsize=45), widget.TextBox(font='Font Awesome 5 Free', fontsize=15, text="", padding=5, foreground=colors[0], background=colors[6], fontshadow=colors[7], mouse_callbacks={'Button1': ncsp}), widget.Mpris2(name='ncspot', objname='org.mpris.MediaPlayer2.ncspot', scroll_chars=25, background=colors[6], foreground=colors[0], stop_pause_text='', display_metadata=['xesam:artist', 'xesam:title'], scroll_interval=0.5, scroll_wait_intervals=1000), #### Layouts #### widget.TextBox(text="◢", background=colors[6], foreground=colors[2], padding=-2, fontsize=45), widget.TextBox(font='Font Awesome 5 Free', fontsize=15, background=colors[2], foreground=colors[0], fontshadow=colors[7], text=""), widget.CurrentLayout(background=colors[2], foreground=colors[0]), #### Pomodoro #### widget.TextBox(text='◢', background=colors[2], foreground=colors[5], padding=-2, fontsize=45), widget.TextBox(font='Font Awesome 5 Free', fontsize=15, background=colors[5], foreground=colors[0], text="", fontshadow=colors[7]), widget.Pomodoro(background=colors[5], foreground=colors[0], color_active=colors[0], color_break=colors[2], color_inactive=colors[0], length_pomodori=50, length_short_break=5, length_long_break=15, num_pomodori=3, prefix_break='Break', prefix_inactive='start', prefix_long_break='Long Break', prefix_paused=''), #### Updates #### widget.TextBox(text='◢', background=colors[5], foreground=colors[3], padding=-2, fontsize=45), widget.TextBox( font='Font Awesome 5 Free', fontsize=15, background=colors[3], foreground=colors[0], fontshadow=colors[7], text=" ", ), widget.CheckUpdates( update_interval=1800, distro='Arch_checkupdates', foreground=colors[0], mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn(term + ' -e sudo pacman -Syu') }, display_format="{updates} updates", background=colors[3], colour_have_updates=colors[0], colour_no_updates=colors[0]), #### Khal Calendar #### #widget.KhalCalendar(lookahead=15, remindertime=60, foreground=colors[0], background=colors[7]), #### Sound Control #### widget.TextBox(text='◢', background=colors[3], foreground=colors[7], padding=-2, fontsize=45), widget.TextBox(font='Font Awesome 5 Free', text=" ", foreground=colors[0], background=colors[7], padding=0, fontsize=15, mouse_callbacks={ 'Button1': lambda: qtile.cmd_spawn('pavucontrol') }, fontshadow=colors[3]), widget.Volume(channel='Master', background=colors[7], foreground=colors[0], fontshadow=colors[7]), #### Date Clock Session Control #### widget.TextBox(text='◢', background=colors[7], foreground=colors[0], padding=-2, fontsize=45), widget.TextBox(font='Font Awesome 5 Free', padding=1, text="", fontsize=15, foreground=colors[7], background=colors[0], fontshadow=colors[3]), widget.Clock(foreground=colors[7], background=colors[0], format="%b %a %d -> %H:%M", update_interval=1), #### Lock, Logout, Poweroff #### widget.TextBox(font='Font Awesome 5 Free', fontsize=15, foreground=colors[7], text="", mouse_callbacks={'Button1': wsess}, fontshadow=colors[3]), ] return wid_list_top
def powerline_base(): return [ widget.CurrentLayoutIcon( **current_layout_icon, ), widget.Image( filename=img['middle-red'] ), widget.CurrentLayout( **base(bg='fg3'), **current_layout ), widget.Image( filename=img['s-green'] ), widget.Image( filename=img['bg-green'] ), widget.TextBox( **base(bg='green'), **text_box, text='' ), widget.Image( filename=img['middle-green'] ), widget.Pomodoro( **pomodoro ), widget.Image( filename=img['s-yellow'] ), widget.Image( filename=img['bg-yellow'] ), widget.TextBox( **base(bg='yellow'), fontsize=21, padding=7, text='', ), widget.Image( filename=img['fg-yellow'] ), widget.Clock( **base(bg='fg3'), **clock, ), widget.Image( filename=img['test1'] ), widget.Image( filename=img['bg-blue'] ), widget.Volume( **base(bg='blue'), **volume_icon ), widget.Image( filename=img['fg-blue'] ), widget.Volume( **base(bg='fg3'), padding=5, ) ]
def powerline_base(): return [ widget.CurrentLayoutIcon( **current_layout_icon, ), widget.Image( filename=img['redi'] ), widget.CurrentLayout( **base(bg='fg3'), **current_layout ), widget.Image( filename=img['greenf'] ), widget.TextBox( **base(bg='green'), fontsize=19, padding=5, text='' ), widget.Sep(**separator(pd=6), **base(bg='green')), widget.Image( filename=img['greeni'] ), widget.Pomodoro( **pomodoro ), widget.Image( filename=img['yellowf'] ), widget.TextBox( **base(bg='yellow'), fontsize=20, padding=5, text='', ), widget.Sep(**separator(), **base(bg='yellow')), widget.Image( filename=img['yellowi'] ), widget.Sep(**separator(pd=6), **base(bg='fg3')), widget.Clock( **base(bg='fg3'), **clock, ), widget.Image( filename=img['bluef'] ), widget.Volume( **base(bg='blue'), **volume_icon ), widget.Sep(**separator(pd=4), **base(bg='blue')), widget.Image( filename=img['bluei'] ), widget.Volume( **base(bg='fg3'), padding=5, font= 'Fira Mono Medium', ), widget.Sep(**separator(pd=3), **base(bg='fg3')), ]
max_title_width=300, border=YELLOW, urgent_border=colors[12], ), widget.Sep( linewidth=1, padding=5, ), widget.Pomodoro( num_pomodori=4, length_pomodori=25, length_short_break=5, length_long_break=15, color_inactive=colors[14], color_break=colors[15], color_active=colors[12], notification_on=True, prefix_inactive="🍅", prefix_active="🍅 ", prefix_break="☕ ", prefix_long_break="☕ ", prefix_paused="🍅 PAUSED", ), widget.Sep( linewidth=1, padding=5, ), widget.ThermalSensor( fmt=" {}", # 🌡 foreground_alert=colors[13], ),
widget.Memory( format='{MemPercent}%', foreground=color1, background=color4, ), widget.ThermalSensor( foreground=color1, background=color4, ), widget.WidgetBox( widgets=[ widget.Pomodoro( color_active='00ff00', color_inactive='ff0000', color_break='ffff00', foreground=color1, background=color3, #length_long_break=15, #length_pomodori=25, #length_short_break=5, ), ], background=color3, text_open='', text_closed='', ), widget.Volume( fmt='奔 {}', foreground=color1, background=color3, ), #widget.Moc( # Require moc (http://moc.daper.net)
), widget.Spacer(length=bar.STRETCH), widget.TextBox(text="", foreground=white), widget.Clock( format='%I:%M %p', font='firacode', fontsize=16, foreground=white), widget.Spacer(length=bar.STRETCH), widget.Systray(font='firacode', foreground=black), widget.TextBox(text="", foreground=black), widget.Battery(format='{percent:2.0%}', font='firacode', foreground=black), widget.Sep(linewidth=0, padding=6), widget.TextBox(text="", foreground=black), widget.Volume(font='firacode', foreground=black), widget.Sep(linewidth=0, padding=6), widget.Pomodoro(color_active=white, color_break=current_group_border, color_inactive=black, font='firacode', fontshadow=current_group_border, fontsize=14, length_long_break=15, length_pomodori=25, length_short_break=5, num_pomodori=4, prefix_active=' ', prefix_break=' ', prefix_inactive='Pomodoro', prefix_long_break=' ', prefix_paused='Paused') ], size=32, background=[grad1, grad2])
), widget.Spacer(), l_text(), widget.Systray( icon_size=26, background=colors[14], ), widget.Pomodoro( background=colors[14], padding=5, fontsize=20, color_active=colors[3], color_break=colors[6], color_inactive=colors[10], # timer_visible=False, # length_pomodori=25 # length_short_break=5 # length_long_break=15 # num_pomodori=4 prefix_active=" ", prefix_break=" ", prefix_inactive=" ", prefix_long_break=" ", prefix_paused=" ", ), r_text(), sep(), l_text(), widget.TextBox( text="墳 ", foreground=colors[8], background=colors[14],
), bottom=bar.Bar( [ widget.Prompt(), widget.WindowName(), widget.CheckUpdates( distro = 'Arch', fmt = ' - {}', background = colors[5], foreground = fgcolor, padding = 9, no_update_string = ' : N/A' ), widget.Pomodoro( background = colors[6], foreground = fgcolor, padding = 9, color_inactive = 'ff9933', ), # widget.HDDGraph( # background = colors[7], # foreground = fgcolor, # path = '/dev/sda2', # ), widget.Systray(), ], 26, margin = [1, 6, 4, 6], opacity = 0.85, ), ),
padding=6, foreground=colors[2], background=colors[5]), widget.TextBox(text=" V:", foreground=colors[2], padding=0), widget.Volume( foreground=colors[2], background=colors[7], padding=5), widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[8]), widget.Battery(format='B: {percent:2.0%}'), widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[8]), widget.Pomodoro(color_inactive="#00649f", color_active="#008565"), widget.Sep(linewidth=0, padding=6, foreground=colors[2], background=colors[8]), widget.Clock(foreground=colors[2], format=" %B %d [ %H:%M ]"), widget.Sep(linewidth=0, padding=10, foreground=colors[0], background=colors[8]), widget.Notify(), ], 32, ), ), ]
widget.TextBox("Battery: ", background="#5b76b2"), widget.Battery( low_percentage=0.2, notify_below=0.15, update_interval=30, discharge_char='↓', charge_char='↑', background="#5b76b2", ), widget.TextBox("", background="#242837"), widget.Clock(format='%a %d-%m-%Y %I:%M %p', background="#242837"), widget.Sep(foreground="#363428", size_percent=100), widget.Systray(background="5b76b2"), widget.Sep(foreground="#363428", size_percent=100), widget.Pomodoro(length_long_break=20, color_inactive="#808080", color_active="6b83b9", color_break="516aa0"), ], 24, ), ), ] mouse = [ Drag([mod], "Button1", lazy.window.set_position_floating(), start=lazy.window.get_position()), Drag([mod], "Button3", lazy.window.set_size_floating(), start=lazy.window.get_size()),
""" if num_screens[hostname] == 4: # 4 Screens (Desktop) chat_bar = bar.Bar([ widget.CurrentLayoutIcon( scale=0.9, foreground="EFEFEF", ), Keywidget(), widget.GroupBox(), widget.Sep(linewidth=2, size_percent=100, padding=12), widget.Prompt(), widget.TaskList(), widget.DF(), widget.Pomodoro(length_pomodori=20), widget.Systray(), widget.Net(interface="eno1"), widget.Sep(**soft_sep), widget.Volume(update_interval=1), widget.Sep(**soft_sep), widget.ThermalSensor(update_interval=5), widget.Sep(**soft_sep), widget.Memory(), widget.Sep(**soft_sep), widget.Clock(format='%Y-%m-%d %a %H:%M:%S'), ], 30) main_bar = bar.Bar([ widget.CurrentLayoutIcon( scale=0.9, foreground="EFEFEF",
widget.CurrentLayoutIcon(foreground="8b3826"), widget.GroupBox(), widget.Prompt( foreground="#a30d53", background="#666666", prompt="$ "), widget.WindowName(), widget.Notify(), # widget.TextBox("default config", name="default", # foreground='#8b3626'), widget.Net(interface="enp37s0", foreground="#666666", format=" {down} ↓↑ {up}"), widget.Systray(), widget.ThermalSensor(), widget.Clock(format=" %a %d.%m %H:%M %p", foreground="#8b3626"), widget.Pomodoro(prefix_inactive="P "), # widget.QuickExit(foreground='#8b3626'), ], 28, background="#0a0a0a", ), ), ] ############### # mouse # # Drag floating layouts. mouse = [ Drag( [mod],
widget.Clock(format='%Y-%m-%d %H:%M'), ], 24, ) 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.GroupBox( hide_unused=True, margin=2.5, highlight_method='block', urgent_alert_methods='block', this_current_screen_border=colors['color2'], this_screen_border=colors['color2'] ), widget.WindowName(padding=12,background=colors['color0']), widget.Prompt(), widget.TextBox(text="🌡",padding=0), widget.ThermalSensor(update_interval=10), widget.Pomodoro(prefix_inactive="🍅", prefix_active="🍅 "), widget.GenPollText( func=funk, interval=4*60 ), widget.CPU( format = "💻 {freq_current}Gz {load_percent}%", foreground = colors['color7'], interval = 4 ), widget.DF( format="/{f}G", visible_on_warn=False,