Fixed a couple of old refs

This commit is contained in:
Rain Clark 2021-11-03 18:04:25 -04:00
parent a0a4b22bc4
commit 456684cd57

View File

@ -312,15 +312,15 @@ for i in groups:
)
colors = colors.gruvbox
color = colors.gruvbox
def init_layout_theme():
return {
"margin": 10,
"border_width": 2,
"border_focus": colors["gray"],
"border_normal": colors["dark-aqua"],
"border_focus": color["gray"],
"border_normal": color["dark-aqua"],
}
@ -331,14 +331,14 @@ layouts = [
layout.MonadTall(
margin=16,
border_width=2,
border_focus=colors["gray"],
border_normal=colors["dark-aqua"],
border_focus=color["gray"],
border_normal=color["dark-aqua"],
),
layout.MonadWide(
margin=16,
border_width=2,
border_focus=colors["gray"],
border_normal=colors["dark-aqua"],
border_focus=color["gray"],
border_normal=color["dark-aqua"],
),
layout.Matrix(**layout_theme),
layout.Bsp(**layout_theme),
@ -350,9 +350,9 @@ layouts = [
layout.Tile(**layout_theme),
layout.TreeTab(
sections=["FIRST", "SECOND"],
bg_color=colors["bg1"],
active_bg=colors["dark-blue"],
inactive_bg=colors["light-blue"],
bg_color=color["bg1"],
active_bg=color["dark-blue"],
inactive_bg=color["light-blue"],
padding_y=5,
section_top=10,
panel_width=280,
@ -365,14 +365,14 @@ layouts = [
def base(fg="text", bg="dark"):
return {"foreground": colors["fg"], "background": colors["bg"]}
return {"foreground": color["fg"], "background": color["bg"]}
# WIDGETS FOR THE BAR
def init_widgets_defaults():
return dict(font="Noto Sans", fontsize=9, padding=2, background=colors["bg1"])
return dict(font="Noto Sans", fontsize=9, padding=2, background=color["bg1"])
widget_defaults = init_widgets_defaults()
@ -382,16 +382,16 @@ def init_widgets_list():
prompt = "{0}@{1}: ".format(os.environ["USER"], socket.gethostname())
widgets_list = [
widget.Sep(
linewidth=1, padding=10, foreground=colors["bg1"], background=colors["bg1"]
linewidth=1, padding=10, foreground=color["bg1"], background=color["bg1"]
), #
widget.Image(
filename="~/.config/qtile/icons/qtilelogo.png",
iconsize=9,
background=colors["bg1"],
background=color["bg1"],
mouse_callbacks={"Button1": lambda: qtile.cmd_spawn("jgmenu_run")},
),
widget.GroupBox(
**base(bg=colors["bg1"]),
**base(bg=color["bg1"]),
font="UbuntuMono Nerd Font",
fontsize=11,
margin_y=3,
@ -399,16 +399,16 @@ def init_widgets_list():
padding_y=5,
padding_x=4,
borderwidth=3,
active=colors["fg"],
inactive=colors[6],
active=color["fg"],
inactive=color["light-red"],
rounded=True,
highlight_method="block",
urgent_alert_method="block",
urgent_border=colors["dark-red"],
this_current_screen_border=colors["dark-aqua"],
this_screen_border=colors["gray"],
other_current_screen_border=colors["bg0_h"],
other_screen_border=colors["gray"],
urgent_border=color["dark-red"],
this_current_screen_border=color["dark-aqua"],
this_screen_border=color["gray"],
other_current_screen_border=color["bg0_h"],
other_screen_border=color["gray"],
disable_drag=True
),
widget.TaskList(
@ -420,36 +420,36 @@ def init_widgets_list():
padding_y=0,
margin_y=0,
fontsize=14,
border=colors["light-green"],
foreground=colors["dark-red"],
border=color["light-green"],
foreground=color["dark-red"],
margin=2,
txt_floating="🗗",
txt_minimized=">_ ",
borderwidth=1,
background=colors["light-purple"],
background=color["light-purple"],
# unfocused_border = 'border'
),
widget.CurrentLayoutIcon(
custom_icon_paths=[os.path.expanduser("~/.config/qtile/icons")],
foreground=colors["fg"],
background=colors["light-red"],
foreground=color["fg"],
background=color["light-red"],
padding=0,
scale=0.7,
),
widget.CurrentLayout(
font="Noto Sans Bold",
fontsize=12,
foreground=colors["fg"],
background=colors["light-red"],
foreground=color["fg"],
background=color["light-red"],
),
widget.Net(
font="Noto Sans",
fontsize=12,
# Here enter your network name
interface=["wlp6s0"],
interface=["wlp2s0"],
format="{down} ↓↑ {up}",
foreground=colors["fg"],
background=colors["light-blue"],
foreground=color["fg"],
background=color["light-blue"],
padding=0,
),
widget.CPU(
@ -457,8 +457,8 @@ def init_widgets_list():
# format = '{MemUsed}M/{MemTotal}M',
update_interval=1,
fontsize=12,
foreground=colors["fg"],
background=colors["light-orange"],
foreground=color["fg"],
background=color["light-orange"],
mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(myTerm + " -e htop")},
),
widget.Memory(
@ -467,17 +467,17 @@ def init_widgets_list():
update_interval=1,
fontsize=12,
measure_mem="M",
foreground=colors["fg"],
background=colors["gray"],
foreground=color["fg"],
background=color["gray"],
mouse_callbacks={"Button1": lambda: qtile.cmd_spawn(myTerm + " -e htop")},
),
widget.Clock(
foreground=colors["light-red"],
background=colors["light-yellow"],
foreground=color["light-red"],
background=color["light-yellow"],
fontsize=12,
format="%Y-%m-%d %H:%M",
),
widget.Systray(background=colors["dark-blue"], icon_size=20, padding=4),
widget.Systray(background=color["dark-blue"], icon_size=20, padding=4),
]
return widgets_list