testsAndMisc/linux_configuration/i3blocks/config
Krzysztof kuhy Rudnicki 2713ae9d66
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
Put the screen-locker status back on the i3 bar
The GTK tray icon was the only status surface, and it had been commented out
of ~/.config/i3/config since 2026-08-21. With nothing in the bar, the locker
miscounted the week for a fortnight and the machine never said so.

Shows "<count>/<minimum> · <gaming budget>", read from the local status API
(screen-locker-web.service on 127.0.0.1:8770); clicking opens the full UI.

Three things it deliberately will not do quietly:
- a dead status server renders "status server down" in red, or the last known
  value marked (stale) in orange -- never a blank block. That server is what
  the gaming budget reads, so its absence costs two hours;
- a disarmed or unscheduled timer overrides the compliance colour entirely
  and shows "DISARMED" in red. A locker that cannot fire is the worse
  problem and the one that hides;
- clicking only opens the UI. There is no bar action that can clear a lock.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fcwu78wk17FWMHbbfbyicc
2026-08-29 22:55:24 +02:00

68 lines
980 B
Plaintext

[cpu_monitor]
command=~/.config/i3blocks/cpu_monitor.sh
interval=10
markup=pango
[gpu_monitor]
command=~/.config/i3blocks/gpu_monitor.sh
interval=persist
markup=pango
[motherboard_temperature]
command=~/.config/i3blocks/motherboard_temp.sh
interval=30
markup=pango
[memory]
command=~/.config/i3blocks/memory.sh
interval=30
color=#50FA7B
[disk]
command=~/.config/i3blocks/disk.sh
interval=60
color=#50FA7B
[volume]
command=~/.config/i3blocks/volume.sh
interval=persist
markup=pango
[ethernet]
command=~/.config/i3blocks/ethernet.sh
interval=persist
color=#FFFFFF
[claude_usage]
command=~/.config/i3blocks/claude_usage.sh
interval=60
[pc_startup]
command=~/.config/i3blocks/pc_startup_status.sh
interval=30
color=#FFFFFF
[screen_locker]
command=~/.config/i3blocks/screen_locker.sh
interval=30
[shutdown_countdown]
command=~/.config/i3blocks/shutdown_countdown.sh
interval=60
markup=pango
[time]
command=~/.config/i3blocks/time.sh
interval=persist
color=#50FA7B