Commit Graph
29 Commits
Author SHA1 Message Date
Luxferre 2a12f8bdb4 fix(games): size windows to content with edge border; add Games to app-context menu 2026-10-23 16:54:13 +03:00
Luxferre bf4652ca5b fix(games): single playfield border, snake score in top strip, no soft-drop scoring, 239x295 window 2026-10-23 16:07:35 +03:00
Luxferre 1dd9fac313 fix(games): correct Tetris rotation, fix input/render lag, visible window frame
- Tetris: replace pivot-based rotation with explicit 4-state SHAPES
  table (classic SRS-style) so rotation is correct and the O piece no
  longer drifts on rotate; keep simple wall-kick offsets.
- Both: render immediately after processing input (not only on gravity
  steps) so rotation/movement is no longer laggy.
- Both: draw the window frame inset by 2-3px (double line) so the right
  and bottom edges are actually visible instead of clipped at the edge.
2026-10-23 15:47:30 +03:00
Luxferre 6bf4139263 fix(games): complete font (U/W + A-Z), fix Tetris gravity, frame + center overlays
- Font: add missing glyphs (U, W and complete A-Z) to both Snake and
  Tetris 5x7 bitmap fonts so PAUSE/RESUME/NEW GAME render correctly.
- Tetris: the gravity loop never advanced nextTick after a step, so the
  piece dropped almost instantly every frame. Advance nextTick by speed
  after each step (matching Snake) so gravity honours the configured rate.
- Both: draw a 1px frame around the whole 240x296 window (right/bottom
  edges were previously absent) and clear the playfield to black behind
  PAUSE/GAME OVER text for contrast.
- Both: fix centering of overlay labels (GAME OVER, 5 RESUME, 5 NEW GAME).
2026-10-23 15:30:29 +03:00
Luxferre 3eb54e4306 fix(games): correct Snake self-collision on spawn, enlarge Tetris, brighten labels
Snake: the snake was initialized with its head at the left end while
moving right, so the first gravity step walked the head into its own
body and the game started at Game Over. Initialize the head at the
right end (cx) so the initial direction is valid.

Tetris: enlarge the playfield cell (10 -> 12px) so pieces are not too
small, and slow gravity (800ms base, gentler per-level ramp, 250ms
floor) so pieces do not fall too fast.

Both: brighten the secondary/dim text colour (0x0a3a0a -> 0x2f9f2f)
so score/label/menu text is actually legible on the black background.

Also wire the Games section into the real main menu: the system menu
is hardcoded in the dwm-plugin dmenu (src/sxmo-dmenu/dmenu.c), not in
sxmo_appmenu.sh, so add a 'games' builtin menu that loads
sxmo_hook_games.sh and a Games entry after Apps in the sys menu, plus
scripts/build-dmenu.sh to cross-compile dmenu.so.
2026-10-23 14:57:59 +03:00
Luxferre 5f467b02fa feat(games): add Snake and Tetris X11 games with menu integration
Add two standalone X11 games (not DWM plugins) for the Nokia 8110 keypad:
- src/games/snake.cpp: Nokia Snake II-style game, 240x296, built-in 5x7 font
- src/games/tetris.cpp: Tetris with next-piece preview, levels, line clears

Both float as dialog windows in dwm, use a self-contained bitmap font (no
font-file dependency), and are controlled via the numeric keypad (2/4/6/8
directions, 5 action) with arrow-key fallbacks.

- scripts/build-games.sh: Docker armv7 cross-compile (mirrors build-sxmo-x11.sh)
- overlay/rootfs/usr/share/sxmo/default_hooks/sxmo_hook_games.sh: Games menu hook
- overlay/rootfs/usr/bin/sxmo_appmenu.sh: add 'Games' entry after 'Apps' and a
  games submenu case

Binaries committed to prebuilt/games and overlay/rootfs/usr/bin per repo
convention. Deployed and verified on the live device (window maps, dwm focuses
it, keypad input reaches the game).
2026-10-23 14:29:48 +03:00
Luxferre 3777a27bac fix(x11): engage fcitx by default so dmenu text-input dialogs work
Text-input dialogs (Wi-Fi SSID/Passphrase, search queries, config
prompts, etc.) invoke dmenu with -p but never -t, so the XIM/fcitx
routing that was gated solely by use_text_input was never enabled and
fcitx never activated on dmenu input; on the numeric keypad only raw
digits could be entered, making the dialogs non-functional.

Decouple the fcitx/IME routing from the -t flag via a new engage_ime
flag (default on) while keeping use_text_input for its output/selection
semantics, and skip routing Enter to fcitx when a menu list is present
so menu selection is never stolen by the T9 commit. XFilterEvent already
returns False when fcitx is toggled off via the mode switcher, so the
dialogs now respect the Fcitx mode switcher automatically.
2026-10-22 23:44:50 +03:00
Luxferre 179cc3066b feat(x11): disable X screensaver/DPMS blanking and enforce explicit-only locking 2026-10-22 22:15:28 +03:00
Luxferre 48aaacf04f Match top bar background to main theme background across all themes 2026-10-22 18:22:49 +03:00
Luxferre 4e503d0654 Fix Bantam Apps menu entry, st XIM focus, and fcitx5-t9 InputContextDestroyed crash 2026-10-22 16:10:56 +03:00
Luxferre 6e58218e10 Add callscreen DWM plugin for incoming and active voice calls 2026-10-22 10:17:24 +03:00
Luxferre 9002560a38 Fix fcitx5-t9 * longpress auto-repeat and reset Ctl mode on focus/window change 2026-10-21 21:04:53 +03:00
Luxferre a31595070c Add unified Xresources theme engine, Default.xth export, and xthemes manager plugin 2026-10-21 20:36:27 +03:00
Luxferre 1ee112561c Fix sxmo_power.sh polkit multi-session auth and dmenu PATH 2026-10-21 17:59:11 +03:00
Luxferre d240f25131 Integrate dmenu as a preloaded zero-lag DWM plugin (dmenu.so) 2026-10-21 17:37:51 +03:00
Luxferre 4bb95d42b0 fix(camera,sms,dwm): fix CAMSS AXI frame-boundary stop, SMS draft button label, and post-reboot softkey responsiveness 2026-10-21 16:00:41 +03:00
Luxferre 55b20c5b85 Add preloaded SMS, File Manager, and Camera (live viewfinder) DWM plugins 2026-10-21 14:46:11 +03:00
Luxferre c1e5c646d6 Expand vertical dmenu to full screen (10 lines, 240x296) and rename St menu item to Terminal 2026-10-21 12:54:26 +03:00
Luxferre d27ca9f224 Add Contacts DWM plugin, desktop Menu/Names softkey labels, and 15px plugin label fonts 2026-10-21 12:32:21 +03:00
Luxferre 996e80b095 Preload DWM plugins (dialer, calllog, xdrawer) with resident X11/Pango state and FIFO IPC 2026-10-21 11:57:23 +03:00
Luxferre 0a02400505 feat(dwm): add dynamic plugin system with xdrawer, dialer, and calllog plugins 2026-10-21 11:11:45 +03:00
Luxferre 7b7ae1dcc5 fix(xdrawer,dwm,dmenu): remove top bar gap and eliminate softkey menu latency 2026-10-21 10:11:11 +03:00
Luxferre 8045929c87 feat(x11): add XDrawer global phone controls drawer, softkey chord detection, and st/T9 scrollback 2026-10-21 09:26:41 +03:00
Luxferre da24f0d9ac fix(system,x11): set system-wide TERM=xterm-256color and C.UTF-8 locale 2026-10-21 00:16:33 +03:00
Luxferre 673ee72dbc fix(x11,docs): use busctl+pkcheck for polkit power actions, increase st font to 18px, and format README overview list 2026-10-20 21:38:49 +03:00
Luxferre 7bab7b7a11 feat(x11): migrate to pure Xlibre + dwm/dmenu/st stack, fix fcitx5-t9 bottom bar, PM8909 PON shutdown, and remove Wayland 2026-10-20 21:15:16 +03:00
Luxferre ad012360c3 feat(camera): add bananarchy-photo CLI, Sxmo menu integration, and multi-capture ISPIF/VFE0 reset 2026-10-19 23:51:09 +03:00
Luxferre a14a7aa543 Add GC2395/CAMSS rear camera driver and fix audio, earpiece, micbias, and modem routing 2026-10-19 23:34:06 +03:00
Luxferre 6942acf5cf init commit 2026-10-19 09:23:54 +03:00