mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 13:03:13 +02:00
Split diet_guard/_gatelock.py, wake_alarm/_alarm.py, and the usage_report.py/_usage_report_parsing.py pair into focused sub-modules so every Python file is <= 500 lines, satisfying test_file_length.py. Install python-kasa into .venv (declared in requirements but missing after the 3.13->3.14 venv upgrade), fixing 8 failing smart_plug tests and restoring 100% coverage. Also includes prior in-progress work from the working tree: the wake_alarm Progress/View/Hardware field-grouping refactor, brother_printer query module + tests, diet_guard foodbank/state/cli updates, new shared coerce/logging_setup helpers, morning_routine orchestrator tweaks, dwm window-manager config, gaming scripts, and misc maintenance/digital-wellbeing script updates. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
746 B
Diff
27 lines
746 B
Diff
--- a/dwm.c
|
|
+++ b/dwm.c
|
|
@@ -1464,6 +1464,7 @@
|
|
XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32,
|
|
PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
|
|
c->isfullscreen = 1;
|
|
+ if (system("pconfine-auto on &")) {}
|
|
c->oldstate = c->isfloating;
|
|
c->oldbw = c->bw;
|
|
c->bw = 0;
|
|
@@ -1474,6 +1475,7 @@
|
|
XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32,
|
|
PropModeReplace, (unsigned char*)0, 0);
|
|
c->isfullscreen = 0;
|
|
+ if (system("pconfine-auto off &")) {}
|
|
c->isfloating = c->oldstate;
|
|
c->bw = c->oldbw;
|
|
c->x = c->oldx;
|
|
@@ -1758,6 +1760,7 @@
|
|
{
|
|
Monitor *m = c->mon;
|
|
XWindowChanges wc;
|
|
+ if (c->isfullscreen) { if (system("pconfine-auto off &")) {} }
|
|
|
|
detach(c);
|
|
detachstack(c);
|