Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c667d5d

Browse files
committedJan 3, 2025
Update qtile config
1 parent d7419dc commit c667d5d

File tree

3 files changed

+26
-56
lines changed

3 files changed

+26
-56
lines changed
 

‎qtile/.config/qtile/autostart.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
xrandr --output HDMI-1 --auto --output HDMI-2 --auto --left-of HDMI-1 &
3+
picom &
4+
megasync &

‎qtile/.config/qtile/config.py

+22-56
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ def send_to_empty_group(qtile, switch_group: bool = False):
105105
@hook.subscribe.client_focus
106106
def bring_floating_to_front(window):
107107
if window.floating:
108-
window.cmd_bring_to_front()
108+
window.bring_to_front()
109109

110110

111111
@hook.subscribe.startup_once
112112
def autostart():
113-
home = os.path.expanduser('~/.config/autostart.sh')
113+
home = os.path.expanduser('~/.config/qtile/autostart.sh')
114114
subprocess.Popen([home])
115115

116116

@@ -165,20 +165,20 @@ def autostart():
165165
# Application keybindings
166166
Key([mod, "shift"], "Return", lazy.spawn("firefox"),
167167
desc="Launch browser"),
168-
Key([mod], "Return", lazy.spawn("alacritty"),
168+
Key([mod], "Return", lazy.spawn("kitty"),
169169
desc="Launch terminal"),
170170
Key([mod], "space",
171171
lazy.spawn("rofi -modi drun,run -show drun -show-icons"),
172172
desc="Open application with rofi"),
173173
Key([mod, "control"], "space", lazy.spawn("rofi -show window -show-icons"),
174174
desc="Switch window with rofi"),
175-
Key([mod], "n", lazy.spawn("alacritty --class ranger -e ranger"),
175+
Key([mod], "e", lazy.spawn("kitty --class ranger -e ranger"),
176176
desc="Open ranger"),
177-
Key([mod, "shift"], "n", lazy.spawn("thunar"),
177+
Key([mod, "shift"], "e", lazy.spawn("thunar"),
178178
desc="Open thunar"),
179-
Key([mod], "m", lazy.spawn("alacritty --class pulsemixer -e pulsemixer"),
179+
Key([mod], "m", lazy.spawn("kitty --class pulsemixer -e pulsemixer"),
180180
desc="Open pulsemixer"),
181-
Key([mod, "shift"], "slash", lazy.spawn("alacritty --class btop -e btop"),
181+
Key([mod, "shift"], "slash", lazy.spawn("kitty --class btop -e btop"),
182182
desc="Open btop"),
183183

184184
# Screenshot keybindings
@@ -216,11 +216,11 @@ def autostart():
216216
desc="Decrement screen brightness"),
217217

218218
# Dunst keybindings
219-
Key(['control'], "space", lazy.spawn("dunstctl close-all"),
219+
Key([mod, 'control'], "n", lazy.spawn("dunstctl close-all"),
220220
desc="Close all notifications"),
221-
Key(['control'], "grave", lazy.spawn("dunstctl history-pop"),
221+
Key([mod], "n", lazy.spawn("dunstctl history-pop"),
222222
desc="Show last notification"),
223-
Key(['control', 'shift'], "grave", lazy.spawn("dunstctl context"),
223+
Key([mod, 'shift'], "n", lazy.spawn("dunstctl context"),
224224
desc="Open notification context"),
225225

226226
Key([mod, "shift"], "q", lazy.window.kill(),
@@ -257,7 +257,7 @@ def autostart():
257257
]
258258

259259
widget_defaults = {
260-
"font": "Iosevka Term Nerd Font",
260+
"font": "Iosevka Term",
261261
"fontsize": 16,
262262
"padding": 10,
263263
}
@@ -279,7 +279,6 @@ def autostart():
279279
other_current_screen_border=colors["gray"],
280280
padding=8),
281281
widget.Spacer(),
282-
widget.Systray(padding=0),
283282
widget.Net(foreground=colors["fg"],
284283
format='{down} ↓↑ {up}'),
285284
widget.CPU(foreground=colors["fg"],
@@ -291,32 +290,16 @@ def autostart():
291290
fmt='󰕾 {}',
292291
step=5,
293292
limit_max_volume=True),
294-
widget.Backlight(backlight_name='intel_backlight',
295-
foreground=colors["fg"],
296-
fmt='󰛨 {}',
297-
step=5),
298-
widget.UPowerWidget(foreground=colors["fg"],
299-
border_charge_colour=colors["green_fg"],
300-
border_colour=colors["fg"],
301-
border_critical_colour=colors["red_fg"],
302-
fill_charge=colors["fg"],
303-
fill_critical=colors["red_fg"],
304-
fill_low=colors["orange_fg"],
305-
fill_normal=colors["fg"],
306-
percentage_low=0.3,
307-
margin=4),
308-
widget.Battery(foreground=colors["fg"],
309-
low_foreground=colors["red_fg"],
310-
format='{percent:2.0%}',
311-
padding=4,
312-
unknown_char="",
313-
notify_below=10,
314-
notification_timeout=0),
293+
# widget.Backlight(backlight_name='intel_backlight',
294+
# foreground=colors["fg"],
295+
# fmt='󰛨 {}',
296+
# step=5) ,
297+
widget.Systray(),
315298
],
316299
26,
317300
background=colors["bg"],
318301
),
319-
wallpaper=os.path.expanduser('~/.config/wallpaper.png')
302+
wallpaper=os.path.expanduser('~/Pictures/wallpaper.png')
320303
),
321304
Screen(
322305
top=bar.Bar(
@@ -344,32 +327,15 @@ def autostart():
344327
fmt='󰕾 {}',
345328
step=5,
346329
limit_max_volume=True),
347-
widget.Backlight(backlight_name='intel_backlight',
348-
foreground=colors["fg"],
349-
fmt='󰛨 {}',
350-
step=5),
351-
widget.UPowerWidget(foreground=colors["fg"],
352-
border_charge_colour=colors["green_fg"],
353-
border_colour=colors["fg"],
354-
border_critical_colour=colors["red_fg"],
355-
fill_charge=colors["fg"],
356-
fill_critical=colors["red_fg"],
357-
fill_low=colors["orange_fg"],
358-
fill_normal=colors["fg"],
359-
percentage_low=0.3,
360-
margin=4),
361-
widget.Battery(foreground=colors["fg"],
362-
low_foreground=colors["red_fg"],
363-
format='{percent:2.0%}',
364-
padding=4,
365-
unknown_char="",
366-
notify_below=10,
367-
notification_timeout=0),
330+
# widget.Backlight(backlight_name='intel_backlight',
331+
# foreground=colors["fg"],
332+
# fmt='󰛨 {}',
333+
# step=5) ,
368334
],
369335
26,
370336
background=colors["bg"],
371337
),
372-
wallpaper=os.path.expanduser('~/.config/wallpaper.png')),
338+
wallpaper=os.path.expanduser('~/Pictures/wallpaper.png')),
373339
]
374340

375341
# Drag floating layouts.

‎qtile/Pictures/wallpaper.png

2.67 MB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.