Commit Graph

4 Commits (c1d5c7d9cbf03d8c5d544267a20c05aaae97fcd4)

Author SHA1 Message Date
Amir Alexander Abdelbaki e295910234 add photobooth.py: curses TUI rewrite of the live preview loop
Replaces per-frame fswebcam process spawns with a persistent OpenCV/v4l2
capture handle for the highest achievable refresh rate, while still
shelling out to ascii-image-converter for conversion and txt2printr.sh
for printing. Renders a bordered live preview with a status/keybind-help
bar via curses, works on a plain TTY with no graphical environment.

Reuses webcam.conf/ascii.conf/keybinds.conf, parsed as plain key=value
(not sourced, so a config file can no longer execute arbitrary code).
Brightness/exposure now go through v4l2-ctl with percentage mapped onto
each control's actual min/max range; added DEVICE/BRIGHTNESS_CTRL_ID/
EXPOSURE_CTRL_ID to webcam.conf and KEY_QUIT to keybinds.conf for this,
kept separate from the bash-oriented keys so the existing bash scripts
are unaffected. Bash scripts are left in place as a fallback.

New deps: python-opencv, v4l-utils.
2026-07-03 13:07:53 +02:00
Amir Alexander Abdelbaki 1ee9ed1036 ensure lp group membership and parport kernel modules in install-deps
txt2printr.sh writes directly to /dev/lp0, which needs the lp kernel
driver loaded (via parport/parport_pc) and lp group membership for
non-root write access; wire both up during dependency install.
2026-07-03 10:52:37 +02:00
Amir Alexander Abdelbaki 02677caeeb wrote script to install dependencies 2026-03-27 10:56:51 +01:00
Amir Alexander Abdelbaki 34ca605c2e created installer files; copied yay-installer from The_miro/Dotfiles.git 2026-03-27 10:37:58 +01:00