qtile: colors, widgets, bigger font

This commit is contained in:
Inhji 2021-07-12 09:11:06 +02:00
parent 33e3e2c281
commit a9aad0ea4f
1 changed files with 44 additions and 16 deletions

View File

@ -42,6 +42,11 @@ def autostart():
home = os.path.expanduser('~/.config/qtile/autostart.sh')
subprocess.call([home])
color_primary = "#047857"
color_secondary = "#059669"
color_tertiary = "#065F46"
color_white = "#ffffff"
keys = [
# Switch between windows
Key([mod], "Left", lazy.layout.left(), desc="Move focus to left"),
@ -94,17 +99,19 @@ keys = [
Key([mod, "control"], "q", lazy.shutdown(),
desc="Shutdown Qtile"),
Key([mod], "space", lazy.spawn('rofi -show drun'))
Key([mod], "space", lazy.spawn('rofi -show drun')),
Key([mod], "e", lazy.spawn('nemo')),
Key([mod], "w", lazy.spawn('firefox'))
]
# ----------------------- GROUPS -----------------------
group_names = 'web dev docs social misc'.split()
group_names = 'web dev git docs misc'.split()
groups = [
Group('web', matches=[Match(wm_class=["firefox"])]),
Group('dev', matches=[Match(wm_class=["Subl"])]),
Group('git', matches=[Match(wm_class=["Sublime_merge"])]),
Group('docs', matches=[Match(wm_class=["libreoffice"])]),
Group('social', matches=[Match(wm_class=["whatsdesk", "Com.github.bleakgrey.tootle"])]),
Group('misc')
]
@ -117,7 +124,7 @@ for i, name in enumerate(group_names):
# ----------------------- LAYOUTS -----------------------
layouts = [
layout.Columns(border_focus_stack='#16a085'),
layout.Columns(border_focus_stack=color_primary),
layout.Max(),
# Try more layouts by unleashing below layouts.
# layout.Stack(num_stacks=2),
@ -133,9 +140,9 @@ layouts = [
]
widget_defaults = dict(
font='Inter',
fontsize=14,
padding=3,
font='Cascadia Mono',
fontsize=16,
padding=5,
)
extension_defaults = widget_defaults.copy()
@ -143,15 +150,17 @@ extension_defaults = widget_defaults.copy()
screens = [
Screen(
bottom=bar.Bar(
top=bar.Bar(
[
widget.GroupBox(
active="#ffffff",
highlight_method="line",
block_highlight_text_color="#ffffff",
highlight_color=['#16a085', '#16a085']
rounded=False,
borderwidth=0,
highlight_method="block",
this_screen_border=color_primary,
this_current_screen_border=color_primary,
other_current_screen_border=color_white,
other_screen_border=color_white
),
widget.Prompt(),
widget.WindowName(),
widget.Chord(
chords_colors={
@ -159,10 +168,29 @@ screens = [
},
name_transform=lambda name: name.upper(),
),
widget.TextBox("Press <M-SPACE> to spawn", foreground="#16a085"),
widget.Wttr(
lang='ru',
location={
'Minsk': 'Minsk',
'64.127146,-21.873472': 'Reykjavik',
'~Vostok Station': 'Nice place',
},
format='%l: %C, temp: %t, feels: %f',
units='m',
update_interval=30,
)
widget.Systray(),
widget.Clock(format='%Y-%m-%d %a %I:%M %p'),
widget.QuickExit(),
widget.CPU(background=color_primary),
widget.Memory(background=color_tertiary),
widget.Clock(
format='%A, %d. %B %Y',
background=color_primary
),
widget.Clock(
format='%I:%M %p',
background=color_secondary
)
],
24,
),