-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.py
executable file
·99 lines (86 loc) · 2.48 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# python libraries
import os
import subprocess
# qtile built-in libraries
from libqtile import bar, hook
from libqtile.config import Screen
# import bindings Modules
from bindings.apps import init_apps_run
from bindings.cores import init_keys
from bindings.groups import init_groups_keys
from bindings.mouse import init_mouse_keys
# import groups configs
from groups.creator import init_name_creator
from groups.rules import init_app_rules
# import layouts config
from layouts.settings import init_layouts
# import themes and colors
from themes.dracula import Dracula
# import widgets configs
from widgets.top import init_widgets
# Set up the hooks
@hook.subscribe.startup_once
def autostart():
subprocess.Popen("dunst")
subprocess.Popen(["picom", "-b"])
subprocess.Popen(["greenclip", "daemon"])
os.environ["QT_QPA_PLATFORMTHEME"] = "qt5ct"
subprocess.Popen("lxqt-policykit-agent")
subprocess.Popen("nm-applet")
# Set your default widget styles
colors = Dracula()
widgets_themes = dict(
font="FantasqueSansMono Nerd Font Mono",
fontsize=18,
)
# Merge the theme dictionary with the widgets_themes dictionary
widgets_themes.update(colors)
layoutConfig = dict(
margin=[5, 2, 2, 5],
border_width=2,
border_focus=colors["pink"],
border_normal=colors["cyan"],
)
# Set the Vars objects
keys = init_keys()
mouse = init_mouse_keys()
apps = init_apps_run()
keys.extend(apps)
layouts = init_layouts(layoutConfig)
groups = init_name_creator()
groups_bind = init_groups_keys()
keys.extend(groups_bind)
group_mappings = init_app_rules()
# Define the bar
def init_bar():
return bar.Bar(
init_widgets(widgets_themes),
24,
opacity=0.66,
background=colors["background"],
floating=True, # allow the bar to have a shadow effect
border_width=0, # remove the default border
margin=[0, 5, 5, 10], # add some margin for the shadow effect
draw_shadow=True, # enable the shadow effect
shadow_offset=[0, 3], # set the shadow offset
)
# Set up the screens
screens = [
Screen(
top=init_bar(),
wallpaper="~/.config/qtile/wallpapers/dracula_qtile.png",
wallpaper_mode="stretch",
),
Screen(
bottom=init_bar(),
wallpaper="~/.config/qtile/wallpapers/dracula_qtile.png",
wallpaper_mode="stretch",
),
]
focus_on_window_activation = "smart"
drag = None
follow_mouse_focus = True
bring_front_click = False
cursor_warp = False
auto_fullscreen = True
wmname = "qtile"