finished bar
This commit is contained in:
@@ -33,6 +33,7 @@ yellow_color = ['#f1fa8c','#f1fa8c']
|
|||||||
blue_color = ['#7197e7','#7197e7']
|
blue_color = ['#7197e7','#7197e7']
|
||||||
# purple
|
# purple
|
||||||
purple_color = ['#bd93f9','#bd93f9']
|
purple_color = ['#bd93f9','#bd93f9']
|
||||||
|
light_purple_color = ['#caa9fa','#caa9fa']
|
||||||
# magenta
|
# magenta
|
||||||
magenta_color = ['#ff79c6','#ff79c6']
|
magenta_color = ['#ff79c6','#ff79c6']
|
||||||
# cyan
|
# cyan
|
||||||
@@ -98,24 +99,26 @@ mouse = [
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Groups
|
#region Groups
|
||||||
group_names = [("WWW", {'layout': 'monadtall'}),
|
group_names = [("", 'h',{'layout': 'monadtall'}),
|
||||||
("DEV", {'layout': 'monadtall'}),
|
("", 'c',{'layout': 'monadtall'}),
|
||||||
("SYS", {'layout': 'monadtall'}),
|
("", 'f',{'layout': 'monadtall'}),
|
||||||
("DOC", {'layout': 'monadtall'}),
|
("", 'm',{'layout': 'monadtall'}),
|
||||||
("VBOX", {'layout': 'monadtall'}),
|
("", 's',{'layout': 'monadtall'}),
|
||||||
("CHAT", {'layout': 'monadtall'}),
|
("", 'w',{'layout': 'monadtall'}),
|
||||||
("MUS", {'layout': 'monadtall'}),
|
("", 'v',{'layout': 'monadtall'}),
|
||||||
("VID", {'layout': 'monadtall'}),
|
("", 'l',{'layout': 'monadtall'}),
|
||||||
("GFX", {'layout': 'floating'})]
|
("", 'd',{'layout': 'monadtall'}),
|
||||||
|
("", 'o',{'layout': 'monadtall'}),
|
||||||
|
("", 'g',{'layout': 'monadtall'})]
|
||||||
|
|
||||||
groups = [Group(name, **kwargs) for name, kwargs in group_names]
|
groups = [Group(name, **kwargs) for name, key, kwargs in group_names]
|
||||||
|
|
||||||
for i, (name, kwargs) in enumerate(group_names, 1):
|
for (name,key, kwargs) in group_names:
|
||||||
keys.extend([
|
keys.extend([
|
||||||
Key(["mod1","control"], str(i), lazy.group[name].toscreen(),
|
Key(["mod1","control"], str(key), lazy.group[name].toscreen(),
|
||||||
desc="Switch to group {}".format(name)),
|
desc="Switch to group {}".format(name)),
|
||||||
|
|
||||||
Key(['mod1','control', "shift"], str(i), lazy.window.togroup(name),
|
Key(['mod1','control', "shift"], str(key), lazy.window.togroup(name),
|
||||||
desc="move focused window to group {}".format(name)),
|
desc="move focused window to group {}".format(name)),
|
||||||
])
|
])
|
||||||
#endregion
|
#endregion
|
||||||
@@ -226,6 +229,36 @@ def powerline_arrow(direction, color1, color2,size):
|
|||||||
]
|
]
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Left_widgets
|
||||||
|
def Left_widgets(size,fontsize):
|
||||||
|
return [
|
||||||
|
widget.CurrentLayoutIcon(),
|
||||||
|
*powerline_arrow('r',base_color,blue_color,size),
|
||||||
|
widget.Image(
|
||||||
|
filename='~/.config/qtile/icons/archlinux-logo-small.png',
|
||||||
|
margin=5,
|
||||||
|
background=blue_color
|
||||||
|
),
|
||||||
|
*powerline_arrow('r',blue_color,base_color,size),
|
||||||
|
widget.GroupBox(
|
||||||
|
fontsize=fontsize,
|
||||||
|
rounded=False,
|
||||||
|
active=light_foreground_color,
|
||||||
|
inactive=dark_foreground_color,
|
||||||
|
highlight_method='block',
|
||||||
|
highlight_color=red_color,
|
||||||
|
other_screen_border = light_purple_color,
|
||||||
|
other_current_screen_border = purple_color,
|
||||||
|
this_current_screen_border = blue_color,
|
||||||
|
this_screen_border = blue_color,
|
||||||
|
urgent_alert_method='block',
|
||||||
|
urgent_border = red_color,
|
||||||
|
),
|
||||||
|
widget.Prompt(fontsize=fontsize),
|
||||||
|
widget.WindowName(fontsize=fontsize-2),
|
||||||
|
]
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Volume_widget
|
#region Volume_widget
|
||||||
def vloume_widget(prev_color,color,size,fontsize):
|
def vloume_widget(prev_color,color,size,fontsize):
|
||||||
return[
|
return[
|
||||||
@@ -355,11 +388,11 @@ def end_widgets(prev_color,size,fontsize):
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Bars and Widgets
|
#region Bars
|
||||||
widget_defaults = dict(
|
widget_defaults = dict(
|
||||||
background=base_color,
|
background=base_color,
|
||||||
font='Ubuntu Mono',
|
font='Ubuntu Mono',
|
||||||
fontsize=15,
|
fontsize=18,
|
||||||
padding=3,
|
padding=3,
|
||||||
)
|
)
|
||||||
extension_defaults = widget_defaults.copy()
|
extension_defaults = widget_defaults.copy()
|
||||||
@@ -370,22 +403,7 @@ secondary_bar_height=24
|
|||||||
secondary_bar_fontsize=18
|
secondary_bar_fontsize=18
|
||||||
|
|
||||||
main_bar = bar.Bar([
|
main_bar = bar.Bar([
|
||||||
widget.CurrentLayoutIcon(),
|
*Left_widgets(main_bar_height,main_bar_fontsize),
|
||||||
widget.GroupBox(
|
|
||||||
fontsize=main_bar_fontsize,
|
|
||||||
urgent_border=red_color,
|
|
||||||
urgent_text=red_color,
|
|
||||||
this_current_screen_border=purple_color,
|
|
||||||
this_screen_border=purple_color,
|
|
||||||
),
|
|
||||||
widget.Image(
|
|
||||||
filename='~/.config/qtile/icons/archlinux-logo-small.png',
|
|
||||||
margin=5,
|
|
||||||
background=blue_color
|
|
||||||
),
|
|
||||||
*powerline_arrow('r',blue_color,base_color,main_bar_height),
|
|
||||||
widget.Prompt(fontsize=main_bar_fontsize),
|
|
||||||
widget.WindowName(fontsize=16),
|
|
||||||
widget.Systray(fontsize=main_bar_fontsize),
|
widget.Systray(fontsize=main_bar_fontsize),
|
||||||
*vloume_widget(base_color,blue_color,main_bar_height,main_bar_fontsize),
|
*vloume_widget(base_color,blue_color,main_bar_height,main_bar_fontsize),
|
||||||
*System_widgets(blue_color,blue_color,main_bar_height,main_bar_fontsize),
|
*System_widgets(blue_color,blue_color,main_bar_height,main_bar_fontsize),
|
||||||
@@ -395,27 +413,13 @@ main_bar = bar.Bar([
|
|||||||
|
|
||||||
#left bar
|
#left bar
|
||||||
left_bar = bar.Bar([
|
left_bar = bar.Bar([
|
||||||
widget.CurrentLayoutIcon(),
|
*Left_widgets(secondary_bar_height,secondary_bar_fontsize),
|
||||||
widget.GroupBox(
|
|
||||||
urgent_border=red_color,
|
|
||||||
urgent_text=red_color,
|
|
||||||
this_current_screen_border=purple_color,
|
|
||||||
this_screen_border=purple_color,
|
|
||||||
),
|
|
||||||
widget.WindowName(),
|
|
||||||
*vloume_widget(base_color,blue_color,secondary_bar_height,secondary_bar_fontsize),
|
*vloume_widget(base_color,blue_color,secondary_bar_height,secondary_bar_fontsize),
|
||||||
*end_widgets(blue_color,secondary_bar_height,secondary_bar_fontsize)
|
*end_widgets(blue_color,secondary_bar_height,secondary_bar_fontsize)
|
||||||
],secondary_bar_height)
|
],secondary_bar_height)
|
||||||
|
|
||||||
top_bar = bar.Bar([
|
top_bar = bar.Bar([
|
||||||
widget.CurrentLayoutIcon(),
|
*Left_widgets(secondary_bar_height,secondary_bar_fontsize),
|
||||||
widget.GroupBox(
|
|
||||||
urgent_border=red_color,
|
|
||||||
urgent_text=red_color,
|
|
||||||
this_current_screen_border=purple_color,
|
|
||||||
this_screen_border=purple_color,
|
|
||||||
),
|
|
||||||
widget.WindowName(),
|
|
||||||
*vloume_widget(base_color,blue_color,secondary_bar_height,secondary_bar_fontsize),
|
*vloume_widget(base_color,blue_color,secondary_bar_height,secondary_bar_fontsize),
|
||||||
*end_widgets(blue_color,secondary_bar_height,secondary_bar_fontsize)
|
*end_widgets(blue_color,secondary_bar_height,secondary_bar_fontsize)
|
||||||
],secondary_bar_height)
|
],secondary_bar_height)
|
||||||
|
|||||||
Reference in New Issue
Block a user