diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2022-02-10 11:16:22 +0100 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2022-02-10 11:16:22 +0100 |
commit | 6e3d2f12b249fded40251508ff71794cde3ee6f8 (patch) | |
tree | c03be7d6cb3c2a678dc4b1ac40e8b9c6d88bd9b3 /.config/qtile/config.py | |
parent | 9e95cdd5853c847e71024a789f2547a526202148 (diff) | |
download | dotfiles-6e3d2f12b249fded40251508ff71794cde3ee6f8.tar.gz dotfiles-6e3d2f12b249fded40251508ff71794cde3ee6f8.zip |
update configs
Diffstat (limited to '.config/qtile/config.py')
-rw-r--r-- | .config/qtile/config.py | 69 |
1 files changed, 67 insertions, 2 deletions
diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 0ab888b..1741027 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py | |||
@@ -14,10 +14,13 @@ mod = "mod4" | |||
14 | terminal = guess_terminal() | 14 | terminal = guess_terminal() |
15 | 15 | ||
16 | BAR = '#282a36' | 16 | BAR = '#282a36' |
17 | LIGHT_BAR = '#393b37' | ||
17 | YELLOW = '#f1fa8c' | 18 | YELLOW = '#f1fa8c' |
18 | RED = '#ff5555' | 19 | RED = '#ff5555' |
20 | LIGHT_RED = '#ff9999' | ||
19 | GREEN = '#50fa7b' | 21 | GREEN = '#50fa7b' |
20 | CYAN = '#8be9fd' | 22 | CYAN = '#8be9fd' |
23 | LIGHT_CYAN = '#abfbff' | ||
21 | 24 | ||
22 | 25 | ||
23 | @hook.subscribe.startup_once | 26 | @hook.subscribe.startup_once |
@@ -30,6 +33,7 @@ keys = [ | |||
30 | Key([mod], "l", lazy.layout.right(), desc="Move focus to right"), | 33 | Key([mod], "l", lazy.layout.right(), desc="Move focus to right"), |
31 | Key([mod], "j", lazy.layout.down(), desc="Move focus down"), | 34 | Key([mod], "j", lazy.layout.down(), desc="Move focus down"), |
32 | Key([mod], "k", lazy.layout.up(), desc="Move focus up"), | 35 | Key([mod], "k", lazy.layout.up(), desc="Move focus up"), |
36 | Key([mod], "s", lazy.next_screen() ), | ||
33 | Key([mod], "space", lazy.layout.next(), | 37 | Key([mod], "space", lazy.layout.next(), |
34 | desc="Move window focus to other window"), | 38 | desc="Move window focus to other window"), |
35 | 39 | ||
@@ -59,6 +63,7 @@ keys = [ | |||
59 | 63 | ||
60 | Key([mod, "control"], "r", lazy.restart(), desc="Restart Qtile"), | 64 | Key([mod, "control"], "r", lazy.restart(), desc="Restart Qtile"), |
61 | Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"), | 65 | Key([mod, "control"], "q", lazy.shutdown(), desc="Shutdown Qtile"), |
66 | |||
62 | Key([mod], "r", lazy.spawncmd(), | 67 | Key([mod], "r", lazy.spawncmd(), |
63 | desc="Spawn a command using a prompt widget"), | 68 | desc="Spawn a command using a prompt widget"), |
64 | 69 | ||
@@ -72,8 +77,11 @@ keys = [ | |||
72 | 77 | ||
73 | Key([mod, "mod1"], "q", lazy.spawn("qutebrowser"), desc="Spawn qutebrowser"), | 78 | Key([mod, "mod1"], "q", lazy.spawn("qutebrowser"), desc="Spawn qutebrowser"), |
74 | Key([mod, "mod1"], "b", lazy.spawn("brave"), desc="Spawn brave"), | 79 | Key([mod, "mod1"], "b", lazy.spawn("brave"), desc="Spawn brave"), |
80 | Key([mod, "mod1"], "f", lazy.spawn("firefox netflix.com"), desc="Spawn firefox"), | ||
75 | Key([mod, "mod1"], "e", lazy.spawn("emacs"), desc="Spawn emacs"), | 81 | Key([mod, "mod1"], "e", lazy.spawn("emacs"), desc="Spawn emacs"), |
76 | Key([mod, "mod1"], "s", lazy.spawn("alacritty -e spt"), desc="Spawn spt (spotify clent)"), | 82 | Key([mod, "mod1"], "s", lazy.spawn("alacritty -e spt"), desc="Spawn spt (spotify clent)"), |
83 | Key([mod, "mod1"], "g", lazy.spawn("alacritty -e /home/jakub/.config/qtile/mdt_shell"), desc="connect to google coral device"), | ||
84 | Key([mod, "mod1"], "l", lazy.spawn("slock"), desc="lock desktop"), | ||
77 | ] | 85 | ] |
78 | groups_names = [ | 86 | groups_names = [ |
79 | "dev", | 87 | "dev", |
@@ -146,7 +154,20 @@ screens = [ | |||
146 | widget.Sep(**transparent_sep), | 154 | widget.Sep(**transparent_sep), |
147 | widget.CurrentLayout(), | 155 | widget.CurrentLayout(), |
148 | widget.Sep(**transparent_sep), | 156 | widget.Sep(**transparent_sep), |
149 | widget.GroupBox(), | 157 | widget.GroupBox( |
158 | margin_y = 3, | ||
159 | margin_x = 0, | ||
160 | padding_y = 5, | ||
161 | padding_x = 3, | ||
162 | borderwidth = 3, | ||
163 | rounded = False, | ||
164 | highlight_color = LIGHT_BAR, | ||
165 | highlight_method = "line", | ||
166 | this_current_screen_border = CYAN, | ||
167 | this_screen_border = CYAN, | ||
168 | other_current_screen_border = LIGHT_BAR, | ||
169 | other_screen_border = LIGHT_BAR, | ||
170 | ), | ||
150 | widget.Prompt(), | 171 | widget.Prompt(), |
151 | widget.Sep(**transparent_sep), | 172 | widget.Sep(**transparent_sep), |
152 | widget.WindowName(), | 173 | widget.WindowName(), |
@@ -156,7 +177,51 @@ screens = [ | |||
156 | widget.Sep(**soft_sep), | 177 | widget.Sep(**soft_sep), |
157 | widget.Battery(foreground=GREEN), | 178 | widget.Battery(foreground=GREEN), |
158 | widget.Sep(**soft_sep), | 179 | widget.Sep(**soft_sep), |
159 | widget.Clock(timezone='Europe/Warsaw', format='%B %-d, %H:%M', foreground=CYAN), | 180 | widget.Clock(format='%B %-d, %H:%M', foreground=CYAN), |
181 | widget.Sep(**soft_sep), | ||
182 | widget.CurrentScreen() | ||
183 | ], | ||
184 | 24, | ||
185 | margin=8, | ||
186 | background=BAR, | ||
187 | border_color=CYAN, | ||
188 | border_width=1 | ||
189 | ), | ||
190 | ), | ||
191 | Screen( | ||
192 | top=bar.Bar( | ||
193 | [ | ||
194 | widget.Sep(**transparent_sep), | ||
195 | widget.Image(filename="~/.config/qtile/python.png", margin=4), | ||
196 | widget.Sep(**transparent_sep), | ||
197 | widget.CurrentLayout(), | ||
198 | widget.Sep(**transparent_sep), | ||
199 | widget.GroupBox( | ||
200 | margin_y = 3, | ||
201 | margin_x = 0, | ||
202 | padding_y = 5, | ||
203 | padding_x = 3, | ||
204 | borderwidth = 3, | ||
205 | rounded = False, | ||
206 | highlight_color = LIGHT_BAR, | ||
207 | highlight_method = "line", | ||
208 | this_current_screen_border = CYAN, | ||
209 | this_screen_border = CYAN, | ||
210 | other_current_screen_border = LIGHT_BAR, | ||
211 | other_screen_border = LIGHT_BAR, | ||
212 | ), | ||
213 | widget.Prompt(), | ||
214 | widget.Sep(**transparent_sep), | ||
215 | widget.WindowName(), | ||
216 | widget.Net(format="↓{down} ↑{up}", foreground=YELLOW), | ||
217 | widget.Sep(**soft_sep), | ||
218 | widget.CPU(format=' {load_percent}%', fontsize=12, foreground=RED), | ||
219 | widget.Sep(**soft_sep), | ||
220 | widget.Battery(foreground=GREEN), | ||
221 | widget.Sep(**soft_sep), | ||
222 | widget.Clock(format='%B %-d, %H:%M', foreground=CYAN), | ||
223 | widget.Sep(**soft_sep), | ||
224 | widget.CurrentScreen() | ||
160 | ], | 225 | ], |
161 | 24, | 226 | 24, |
162 | margin=8, | 227 | margin=8, |