style: apply prettier formatting to evidence JSON and dwm/gaming READMEs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Krzysztof kuhy Rudnicki 2026-06-14 07:22:04 +02:00
parent 038e08d2be
commit 615183556d
3 changed files with 24 additions and 16 deletions

View File

@ -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"
]
}

View File

@ -29,7 +29,7 @@ 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. |

View File

@ -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
```
@ -54,6 +59,6 @@ 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 |