Commit c6329158c18ebbb122b0d05cd7cfc2884b92ba02 Parent: e5ef861b6569bd91e0711744c3d9dd65fb8eb793 Author: mcol <mcol@posteo.net> Date: 2022-10-10 20:56:28 +0100 Committer: mcol <mcol@posteo.net> Committed: 2022-10-10 20:56:28 +0100 config updates
wayland.py Modified
@@ -34,7 +34,7 @@ "type:keyboard": InputConfig( kb_options="caps:swapescape,altwin:swap_alt_win", kb_layout="gb", - kb_repeat_rate=35, + kb_repeat_rate=50, kb_repeat_delay=250, ), # Zenbook touchpad @@ -79,7 +79,7 @@ @hook.subscribe.client_managed -def _(win): +async def _(win): # Some other miscellaneous rules if win.name == "Firefox — Sharing Indicator": win.place(win.x + win.borderwidth, 0, win.width, win.height, 0, None) @@ -91,6 +91,28 @@ win.place(x, 240, 450, 600, win.borderwidth, win.bordercolor) return + if "mpv" in wm_class: + # Resizing mpv if it's sized itself too big to fit on screen + sw = qtile.current_screen.width + sh = qtile.current_screen.height + x = y = w = h = None + if win.height > sh: + h = sh + y = qtile.current_screen.y + if win.width > sw: + w = sw + x = qtile.current_screen.x + if w is not None or h is not None: + if h is None: + h = win.height + y = win.y + else: + w = win.width + x = win.x + bw = win.borderwidth + win.place(x - bw, y - bw, w + 2 * bw, h + 2 * bw, 0, None) + return + @hook.subscribe.startup_once async def _():
config.py Modified
@@ -244,6 +244,12 @@ lazy.spawn("swaync-client -t"), "Toggle notification panel", ), + ( + [mod, "control"], + "y", + lazy.spawn("yt-first"), + "yt-first script", + ), ] ) @@ -395,6 +401,7 @@ Match(wm_class="Dragon"), Match(wm_class="Dragon-drag-and-drop"), Match(wm_class="toolbar"), + Match(wm_class="tridactyl"), Match(wm_class="wlroots"), Match(wm_class="wdisplays"), Match(wm_class="Xephyr"),