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 | |
parent | 9e95cdd5853c847e71024a789f2547a526202148 (diff) | |
download | dotfiles-6e3d2f12b249fded40251508ff71794cde3ee6f8.tar.gz dotfiles-6e3d2f12b249fded40251508ff71794cde3ee6f8.zip |
update configs
Diffstat (limited to '.config')
-rw-r--r-- | .config/qtile/__pycache__/config.cpython-310.pyc | bin | 0 -> 5643 bytes | |||
-rw-r--r-- | .config/qtile/__pycache__/config.cpython-38.pyc | bin | 0 -> 5728 bytes | |||
-rwxr-xr-x | .config/qtile/autorc | 13 | ||||
-rw-r--r-- | .config/qtile/config.py | 69 | ||||
-rwxr-xr-x | .config/qtile/mdt_shell | 1 |
5 files changed, 75 insertions, 8 deletions
diff --git a/.config/qtile/__pycache__/config.cpython-310.pyc b/.config/qtile/__pycache__/config.cpython-310.pyc new file mode 100644 index 0000000..542d4c5 --- /dev/null +++ b/.config/qtile/__pycache__/config.cpython-310.pyc | |||
Binary files differ | |||
diff --git a/.config/qtile/__pycache__/config.cpython-38.pyc b/.config/qtile/__pycache__/config.cpython-38.pyc new file mode 100644 index 0000000..66d3302 --- /dev/null +++ b/.config/qtile/__pycache__/config.cpython-38.pyc | |||
Binary files differ | |||
diff --git a/.config/qtile/autorc b/.config/qtile/autorc index 14969c9..e195665 100755 --- a/.config/qtile/autorc +++ b/.config/qtile/autorc | |||
@@ -1,12 +1,14 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | function off_monitor_if_hdmi_plugged_in() { | 3 | function monitor_settings() { |
4 | sleep .5 | ||
4 | monitor_status=$(xrandr | grep "HDMI-1-4 connected" | wc -l) | 5 | monitor_status=$(xrandr | grep "HDMI-1-4 connected" | wc -l) |
5 | 6 | ||
6 | if [ $monitor_status == 1 ]; | 7 | if [ $monitor_status == 1 ]; |
7 | then | 8 | then |
8 | xrandr --auto | 9 | # xrandr --auto |
9 | xrandr --output eDP-1 --off | 10 | # xrandr --output eDP-1 --off |
11 | xrandr --output eDP-1-1 --auto --output HDMI-0 --auto --left-of eDP-1-1 | ||
10 | fi | 12 | fi |
11 | } | 13 | } |
12 | 14 | ||
@@ -18,9 +20,8 @@ function start() { | |||
18 | $($1 $2) & | 20 | $($1 $2) & |
19 | } | 21 | } |
20 | 22 | ||
21 | off_monitor_if_hdmi_plugged_in | 23 | start nitrogen "--restore" |
24 | monitor_settings | ||
22 | caps_to_esc | 25 | caps_to_esc |
23 | 26 | ||
24 | start picom "-b -D 4 --vsync" | 27 | start picom "-b -D 4 --vsync" |
25 | start nitrogen "--restore" | ||
26 | start run_spotifyd | ||
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, |
diff --git a/.config/qtile/mdt_shell b/.config/qtile/mdt_shell new file mode 100755 index 0000000..90fa6f3 --- /dev/null +++ b/.config/qtile/mdt_shell | |||
@@ -0,0 +1 @@ | |||
TERM=xterm-256color /home/jakub/.local/bin/mdt shell | |||