From 615183556d7e734ba0195e8cd20c6ff6da0eb55f Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sun, 14 Jun 2026 07:22:04 +0200 Subject: [PATCH] style: apply prettier formatting to evidence JSON and dwm/gaming READMEs Co-Authored-By: Claude Sonnet 4.6 --- .../file-length-split-2026-06-14.json | 5 ++++- linux_configuration/dwm/README.md | 22 +++++++++---------- linux_configuration/scripts/gaming/README.md | 13 +++++++---- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/docs/superpowers/evidence/file-length-split-2026-06-14.json b/docs/superpowers/evidence/file-length-split-2026-06-14.json index 6d5b018..d53e647 100644 --- a/docs/superpowers/evidence/file-length-split-2026-06-14.json +++ b/docs/superpowers/evidence/file-length-split-2026-06-14.json @@ -52,5 +52,8 @@ "mypy reports 5 pre-existing tkinter-stub errors in _gatelock_window.py/_gatelock_nutrition.py; confirmed identical on the pre-split file at commit 31992b2, not a regression, not flagged by pre-commit's pinned mypy 1.13.0", "patch() targets for relocated helpers (display, pmon, render) were retargeted to their new modules; verified via full test run" ], - "rollback": ["git revert the commit", "Re-run python3 -m pytest -q to confirm 100% coverage on the reverted tree"] + "rollback": [ + "git revert the commit", + "Re-run python3 -m pytest -q to confirm 100% coverage on the reverted tree" + ] } diff --git a/linux_configuration/dwm/README.md b/linux_configuration/dwm/README.md index 3f23c33..66d8bd7 100644 --- a/linux_configuration/dwm/README.md +++ b/linux_configuration/dwm/README.md @@ -28,17 +28,17 @@ which is what keeps "always latest master" working. ## Files -| Path | What it is | -| --- | --- | -| `config.h` | dwm config: Mod4, Dracula colours, 10 tags, bottom bar, vim-style focus/move, multi-monitor keys, media keys, `movestack`/`togglefullscr` defined inline so `dwm.c` needs no extra patch for them. | -| `pointer-confine.c` | Standalone helper: traps the X pointer on the current monitor with XFixes pointer barriers until killed. Used for fullscreen gaming so the cursor can't slide onto the other screen. | -| `patches/focus-on-click.patch` | No-ops `enternotify`/`motionnotify` so the pointer never changes focus or switches monitors — focus only changes on click or via keys. | -| `patches/fullscreen-pointer-confine.patch` | Hooks `setfullscreen`/`unmanage` to start/stop `pconfine-auto` so the cursor-lock turns on automatically when a window goes fullscreen. | -| `bin/dwm-session` | lightdm session launcher (autostart + `dwmstatus` + `exec dwm`). | -| `bin/dwmstatus` | Status feeder: CPU/GPU/board temps, RAM, load, volume, clock → root window name. `dwmstatus once` prints the line without `xsetroot`. | -| `bin/dwm-rebuild` | Recompile `~/.local/src/dwm` in place (quick local rebuild). | -| `bin/switch-wm` | Flip the lightdm boot session between `i3` and `dwm`. | -| `bin/pconfine-auto` | `on`/`off` single-instance control of the `pointer-confine` daemon (called by the dwm hooks and the panic key). | +| Path | What it is | +| ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `config.h` | dwm config: Mod4, Dracula colours, 10 tags, bottom bar, vim-style focus/move, multi-monitor keys, media keys, `movestack`/`togglefullscr` defined inline so `dwm.c` needs no extra patch for them. | +| `pointer-confine.c` | Standalone helper: traps the X pointer on the current monitor with XFixes pointer barriers until killed. Used for fullscreen gaming so the cursor can't slide onto the other screen. | +| `patches/focus-on-click.patch` | No-ops `enternotify`/`motionnotify` so the pointer never changes focus or switches monitors — focus only changes on click or via keys. | +| `patches/fullscreen-pointer-confine.patch` | Hooks `setfullscreen`/`unmanage` to start/stop `pconfine-auto` so the cursor-lock turns on automatically when a window goes fullscreen. | +| `bin/dwm-session` | lightdm session launcher (autostart + `dwmstatus` + `exec dwm`). | +| `bin/dwmstatus` | Status feeder: CPU/GPU/board temps, RAM, load, volume, clock → root window name. `dwmstatus once` prints the line without `xsetroot`. | +| `bin/dwm-rebuild` | Recompile `~/.local/src/dwm` in place (quick local rebuild). | +| `bin/switch-wm` | Flip the lightdm boot session between `i3` and `dwm`. | +| `bin/pconfine-auto` | `on`/`off` single-instance control of the `pointer-confine` daemon (called by the dwm hooks and the panic key). | ## Customising diff --git a/linux_configuration/scripts/gaming/README.md b/linux_configuration/scripts/gaming/README.md index 1ee70f9..6dda07a 100644 --- a/linux_configuration/scripts/gaming/README.md +++ b/linux_configuration/scripts/gaming/README.md @@ -6,28 +6,33 @@ Both accounts play simultaneously with full GPU acceleration — no VT switching ### One-time setup (fresh install) **1. Create the player2 user:** + ```bash sudo useradd -m -G audio,video,input -s /bin/bash player2 sudo passwd player2 ``` **2. Install dependencies:** + ```bash sudo pacman -S xorg-xhost ``` **3. Add passwordless sudoers rule** (allows launching Steam as player2 without a prompt): + ```bash echo "kuhy ALL=(player2) NOPASSWD: /usr/bin/steam" | sudo tee /etc/sudoers.d/player2-steam sudo chmod 440 /etc/sudoers.d/player2-steam ``` **4. Symlink the script into PATH:** + ```bash sudo ln -sf ~/testsAndMisc/linux_configuration/scripts/gaming/start-player2.sh /usr/local/bin/start-player2 ``` **5. Start the getty on tty2** (needed if LightDM autologin is configured, otherwise tty2 has no login prompt): + ```bash sudo systemctl enable getty@tty2 ``` @@ -53,7 +58,7 @@ To stop: close the Steam window or `pkill -u player2 -f steam`. ### Monitor layout -| Output | Resolution | Session | -|--------|------------|--------------| -| DP-0 | 3840×2160 | kuhy (main) | -| HDMI-0 | 2560×1440 | player2 | +| Output | Resolution | Session | +| ------ | ---------- | ----------- | +| DP-0 | 3840×2160 | kuhy (main) | +| HDMI-0 | 2560×1440 | player2 |