Add Webarchy WPE/WebKit browser, SIP ZRTP/SRTP & codecs, xirc buffer fixes, and Noto web fonts
This commit is contained in:
1 parent
61768fa88e
commit
d7335b5ebe
81 files changed
+3822
-248
No files matched your search
@@ -14,8 +14,8 @@ It uses a pure **X11 (`Xlibre` + `sxmo-de-dwm`)** stack (no Wayland) with **Adre
|
||||
- `phone_data.h`: shared X11 geometry (`240x296` below the 24px bar), FIFO IPC (`/tmp/dwm_plugin_<name>.fifo`), softkey chord detection, Sxmo TSV contact/call/SMS parsers, and `libjpeg`/`libpng` helpers.
|
||||
- `net_tls.h`: shared C++20 TCP + OpenSSL TLS + STARTTLS socket class (`NetStream`), HTTP/HTTPS `GET` client (`httpGet`), MD5/CSPRNG helpers, and RFC 2047 / Base64 / Quoted-Printable MIME decoders.
|
||||
- `monotone.h` + `bananarchy_melody.cpp` (`/usr/bin/bananarchy-melody`): Nokia RTTTL (`.nrt`, `.rtttl`, `.rtx`), Ericsson eMelody (`.emy`), and IrDA iMelody (`.imy`) monophonic ringtone parser and 48 kHz WAV synthesizer.
|
||||
- `locker_plugin.cpp` (`locker.so` / `xlocker`) + `verify_passcode.c` (`/usr/bin/bananarchy-verify-passcode`), `passcode_plugin.cpp` (`passcode.so` / `xpasscode`), `dialer_plugin.cpp` (`dialer.so` / `xdialer`), `calllog_plugin.cpp` (`calllog.so` / `xcalllog`), `callscreen_plugin.cpp` (`callscreen.so` / `xcallscreen`), `contacts_plugin.cpp` (`contacts.so` / `xcontacts`), `sms_plugin.cpp` (`sms.so` / `xsms`), `files_plugin.cpp` (`files.so` / `xfiles`), `camera_plugin.cpp` (`camera.so` / `xcamera`), `themes_plugin.cpp` (`themes.so` / `xthemes`), `modem_plugin.cpp` (`modem.so` / `xmodem`), `networks_plugin.cpp` (`networks.so` / `xnetworks` / `xbluetooth`), `ringtones_plugin.cpp` (`ringtones.so` / `xringtones`), `wallpapers_plugin.cpp` (`wallpapers.so` / `xwallpapers` / `xbackground`), `music_plugin.cpp` (`music.so` / `xmusic` / `xplayer`), `sip_plugin.cpp` (`sip.so` / `xsip`), `email_plugin.cpp` (`email.so` / `xemail` / `xmail`), `irc_plugin.cpp` (`irc.so` / `xirc`), `tox_plugin.cpp` (`tox.so` / `xtox`), `smallweb_plugin.cpp` (`smallweb.so` / `xkopher` / `kopher` / `xsmallweb`), `gps_plugin.cpp` (`gps.so` / `xgps` / `xmaps` / `xnav`).
|
||||
- `dwm_plugin_runner.c`: lightweight `/usr/bin/dwm-plugin` launcher symlinked by `xlocker`, `xpasscode`, `xdrawer`, `xdialer`, `xcalllog`, `xcallscreen`, `xcontacts`, `xsms`, `xfiles`, `xcamera`, `xthemes`, `xmodem`, `xnetworks`, `xbluetooth`, `xringtones`, `xwallpapers`, `xbackground`, `xmusic`, `xplayer`, `xsip`, `xemail`, `xmail`, `xirc`, `xtox`, `xkopher`, `kopher`, `xsmallweb`, `xgps`, `xmaps`, `xnav`, `dmenu`, and `xdmenu`.
|
||||
- `locker_plugin.cpp` (`locker.so` / `xlocker`) + `verify_passcode.c` (`/usr/bin/bananarchy-verify-passcode`), `passcode_plugin.cpp` (`passcode.so` / `xpasscode`), `dialer_plugin.cpp` (`dialer.so` / `xdialer`), `calllog_plugin.cpp` (`calllog.so` / `xcalllog`), `callscreen_plugin.cpp` (`callscreen.so` / `xcallscreen`), `contacts_plugin.cpp` (`contacts.so` / `xcontacts`), `sms_plugin.cpp` (`sms.so` / `xsms`), `files_plugin.cpp` (`files.so` / `xfiles`), `camera_plugin.cpp` (`camera.so` / `xcamera`), `themes_plugin.cpp` (`themes.so` / `xthemes`), `modem_plugin.cpp` (`modem.so` / `xmodem`), `networks_plugin.cpp` (`networks.so` / `xnetworks` / `xbluetooth`), `ringtones_plugin.cpp` (`ringtones.so` / `xringtones`), `wallpapers_plugin.cpp` (`wallpapers.so` / `xwallpapers` / `xbackground`), `music_plugin.cpp` (`music.so` / `xmusic` / `xplayer`), `sip_plugin.cpp` (`sip.so` / `xsip`), `email_plugin.cpp` (`email.so` / `xemail` / `xmail`), `irc_plugin.cpp` (`irc.so` / `xirc`), `tox_plugin.cpp` (`tox.so` / `xtox`), `smallweb_plugin.cpp` (`smallweb.so` / `xkopher` / `kopher` / `xsmallweb`), `webarchy_plugin.cpp` (`webarchy.so` / `webarchy` / `xwebarchy`), `gps_plugin.cpp` (`gps.so` / `xgps` / `xmaps` / `xnav`).
|
||||
- `dwm_plugin_runner.c`: lightweight `/usr/bin/dwm-plugin` launcher symlinked by `xlocker`, `xpasscode`, `xdrawer`, `xdialer`, `xcalllog`, `xcallscreen`, `xcontacts`, `xsms`, `xfiles`, `xcamera`, `xthemes`, `xmodem`, `xnetworks`, `xbluetooth`, `xringtones`, `xwallpapers`, `xbackground`, `xmusic`, `xplayer`, `xsip`, `xemail`, `xmail`, `xirc`, `xtox`, `xkopher`, `kopher`, `xsmallweb`, `webarchy`, `xwebarchy`, `xgps`, `xmaps`, `xnav`, `dmenu`, and `xdmenu`.
|
||||
- `src/xdrawer/`: global phone controls overlay (`xdrawer.so` / `xdrawer`), toggled by pressing both softkeys simultaneously.
|
||||
- `src/sxmo-st/`: patched `st` terminal with HarfBuzz OpenType ligatures (`Fira Code`), `XIM` (`fcitx5-t9`), and live `SIGUSR1` `.Xresources` reload.
|
||||
- `src/fcitx5-t9/`: 6-mode keypad input method (`abc`, `Abc`, `ABC`, `Sym`, `Ctl`, `123` + `*` long-press `Ctrl+` latch) with fixed bottom preedit bar (`Y=290, H=30`).
|
||||
@@ -27,7 +27,7 @@ It uses a pure **X11 (`Xlibre` + `sxmo-de-dwm`)** stack (no Wayland) with **Adre
|
||||
|
||||
## 3. Build and image generation commands
|
||||
All cross-compilation scripts run inside rootless Docker (`alpine:3.24` `armv7` sysroot) and automatically update both `prebuilt/` and `overlay/rootfs/`:
|
||||
- `./scripts/build-sxmo-x11.sh` — builds `libneoui.so`, `st`, `dmenu.so`, `dwm`, `dwm-plugin`, `bananarchy-verify-passcode`, `bananarchy-melody`, `sxmo_vibrate`, and all C++ `.so` plugins (`locker`, `passcode`, `xdrawer`, `dialer`, `calllog`, `callscreen`, `contacts`, `sms`, `files`, `camera`, `themes`, `modem`, `networks`, `ringtones`, `wallpapers`, `music`, `sip`, `email`, `irc`, `tox`, `smallweb`, `gps`).
|
||||
- `./scripts/build-sxmo-x11.sh` — builds `libneoui.so`, `st`, `dmenu.so`, `dwm`, `dwm-plugin`, `bananarchy-verify-passcode`, `bananarchy-melody`, `sxmo_vibrate`, and all C++ `.so` plugins (`locker`, `passcode`, `xdrawer`, `dialer`, `calllog`, `callscreen`, `contacts`, `sms`, `files`, `camera`, `themes`, `modem`, `networks`, `ringtones`, `wallpapers`, `music`, `sip`, `email`, `irc`, `tox`, `smallweb`, `webarchy`, `gps`).
|
||||
- `./scripts/build-dmenu.sh` — rebuilds only `dmenu.so`, `stest`, `dmenu_path`, and `dmenu_run`.
|
||||
- `./scripts/build-games.sh` — builds standalone X11 games and emulators in `src/games/` (`snake`, `tetris`, `scoundrel`, `gambatte` / `gbemu`, `remedy` / `j2me`).
|
||||
- `./scripts/build-fcitx5-t9.sh` — builds `src/fcitx5-t9` (`libt9.so` / `t9.so`).
|
||||
|
||||
+4
-3
@@ -12,12 +12,13 @@ Release versions follow the `<year-letter><MM><DD>` format (where `2026` is `a`,
|
||||
## Build `a1031` — codename `myers` (2026-10-31)
|
||||
|
||||
### New features and improvements
|
||||
- **Native NeoUI communication and internet suite (`xsip`, `xemail`, `xirc`, `xtox`, `xkopher`)**:
|
||||
- **SIP VoIP client (`sip.so` / `xsip`)**: implemented an RFC 3261 SIP softphone (`Dialer`, `Accounts`, `History` tabs) supporting both account-registered calling (with alphanumeric username/password multi-tap entry, Digest MD5 authentication, and background standby `REGISTER` keepalive) and direct accountless P2P SIP URI calling (`user@host[:port]` or `sip:user@host[:port]`), RFC 6189 **ZRTP** media-path key agreement (`DH3k` 3072-bit / `DH2k` 2048-bit Diffie-Hellman, `H0..H3` SHA-256 hash chain, Castagnoli CRC-32C framing, `a=zrtp-hash` SDP signaling, and 4-character Base32 `SAS` verification code) with RFC 3711 **SRTP** (`AES-128-CM` + `HMAC-SHA1-80`/`32`) encrypted voice media, incoming `INVITE` standby wakeup and call handling integrated with `xcallscreen` (`[SIP]` / `[ZRTP:<sas>]`), bidirectional G.711 (`PCMU`/`PCMA` 8 kHz) RTP/SRTP audio streaming, and RFC 2833 DTMF tones.
|
||||
- **Native NeoUI communication and internet suite (`xsip`, `xemail`, `xirc`, `xtox`, `xkopher`, `webarchy`)**:
|
||||
- **SIP VoIP client (`sip.so` / `xsip`)**: implemented an RFC 3261 SIP softphone (`Dialer`, `Accounts`, `History` tabs) supporting both account-registered calling (with alphanumeric username/password multi-tap entry, Digest MD5 authentication, and background standby `REGISTER` keepalive) and direct accountless P2P/federated SIP URI calling (`user@host[:port]` or `sip:user@host[:port]`) with RFC 3263 DNS `SRV` (`_sip._udp.<domain>`) proxy discovery, RFC 3261 Timer A `INVITE` retransmission with multi-`A` proxy failover, `Record-Route`/`Contact` dialog routing, RFC 6189 **ZRTP** media-path key agreement (`DH3k` 3072-bit / `DH2k` 2048-bit Diffie-Hellman, `H0..H3` SHA-256 hash chain, Castagnoli CRC-32C framing, `a=zrtp-hash` SDP signaling, and 4-character Base32 `SAS` verification code) with RFC 3711 **SRTP** (`AES-128-CM` + `HMAC-SHA1-80`/`32`) encrypted voice media, incoming `INVITE` standby wakeup and call handling integrated with `xcallscreen` (`[SIP/<codec>]` / `[SIP/<codec>:<sas>]`), wideband and narrowband multi-codec RTP/SRTP audio (`Opus` 16 kHz / 48 kHz RTP clock with in-band FEC, `ITU-T G.722` 16 kHz wideband SB-ADPCM, `G.711 PCMU`/`PCMA` 8 kHz, `GSM 06.10` Full Rate 8 kHz, `ITU-T G.726-32` 8 kHz ADPCM, `IMA ADPCM DVI4` 8/16 kHz, and `L16` uncompressed 16-bit PCM 8/16 kHz) with per-account and direct-mode codec preference selection, and RFC 2833 / RFC 4733 DTMF tones.
|
||||
- **Email client (`email.so` / `xemail` / `xmail`)**: implemented a multi-account `IMAP4rev1`, `POP3`, and `SMTP` client (`Inbox`, `Compose`, `Accounts` tabs) supporting implicit TLS (`993`/`995`/`465`), `STARTTLS` (`143`/`110`/`587`), and plain TCP, SASL `PLAIN`/`LOGIN` authentication, RFC 2047 encoded-word header decoding, Base64/Quoted-Printable MIME body decoding, HTML tag stripping, offline inbox cache (`~/.local/share/sxmo/email/`), full-screen reader, and message composer/reply.
|
||||
- **IRCv3 client (`irc.so` / `xirc`)**: implemented a multi-server IRC client (`Buffers`, `Chat`, `Servers` tabs) with OpenSSL TLS, IRCv3 capability negotiation (`CAP LS 302`: `sasl`, `server-time`, `message-tags`, `multi-prefix`, `away-notify`, `account-notify`, `chghost`, `cap-notify`), `SASL PLAIN` authentication, slash commands (`/join`, `/part`, `/msg`, `/nick`, `/me`, `/topic`, `/raw`, `/quit`), and a resident background mode (`BG_STAY`) that keeps sockets connected when the window is closed and vibrates on nick highlights or private messages.
|
||||
- **IRCv3 client (`irc.so` / `xirc`)**: implemented a multi-server IRC client (`Chat`, `Buffers`, `Servers` tabs) with OpenSSL TLS, IRCv3 capability negotiation (`CAP LS 302`: `sasl`, `server-time`, `message-tags`, `multi-prefix`, `away-notify`, `account-notify`, `chghost`, `cap-notify`), `SASL PLAIN` authentication, `433` nick-in-use fallback and `470` channel forwarding tracking, slash commands (`/join`, `/part`, `/close`, `/msg`, `/nick`, `/me`, `/clear`, `/raw`, `/quit`), targeted buffer closing (`Menu -> Close Buffer` or `BackSpace` in `Buffers`), and a resident background mode (`BG Mode`) that keeps sockets connected when the window is closed and triggers notification hooks on nick highlights or private messages.
|
||||
- **Tox / Trifa P2P messenger and audio call client (`tox.so` / `xtox`)**: built an encrypted P2P messenger and voice call client (`Friends`, `Chat`, `My Tox ID` tabs) on `c-toxcore` (`libtoxcore.so.2`), featuring persistent profile storage (`~/.local/share/sxmo/tox/profile.tox`), non-blocking IPv4 DHT + TCP relay bootstrap, friend request handling, persistent chat logs, and standby incoming `ToxAV` 48 kHz Opus voice calls integrated with `xcallscreen` (`[TOX]`).
|
||||
- **Kopher SmallWeb browser (`smallweb.so` / `xkopher` / `kopher` / `xsmallweb`)**: implemented a multi-protocol SmallWeb client supporting **Gopher** (`gopher://`) with optional TLS (`gophers://`), **Gemini** (`gemini://`), **Spartan** (`spartan://`), and **Nex** (`nex://`), featuring default WAP-style keypad controls from [Kopher](https://code.luxferre.top/luxferre/kopher.git) (`2`/`8` line scroll, `4`/`6` link navigation, `1`/`7` horizontal scroll, `3`/`9` page top/end, `5`/`OK` open link, `*` toggle wrap, `#` toggle light/dark reader theme, `0` reload, `Call` address bar), user-customizable keybindings (`~/.config/sxmo/smallweb_controls.tsv`), 10 bookmarks, and custom homepage support.
|
||||
- **Webarchy Web browser (`webarchy.so` / `webarchy` / `xwebarchy`)**: implemented a full-featured `240x320` HTML5/CSS3/JS web browser built on WPE / WebKit (`webkit2gtk-4.1` + `libwpe-1.0` + `libwpebackend-fdo-1.0`) with Adreno 304 hardware acceleration (`WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS` and WebGL) and 512 MB RAM pressure tuning (`160 MB` WebProcess cap and lazy engine startup), `Mozilla/5.0 (Mobile; rv:123.0) Gecko/123.0 Firefox/123.0 KAIOS/4.0` as the default User-Agent with preset and custom User-Agent override (`~/.config/sxmo/webarchy_ua.txt`), `UTF-8` default encoding fallback, default dark browser theme preference (`prefers-color-scheme: dark` and `color-scheme: light dark`), `Noto Sans` / `Noto Serif` (`font-noto` + `font-noto-emoji`) as the default non-monospace web and form control fonts and `Fira Code` with OpenType ligatures as the monospace font, full GStreamer multimedia (`MediaSource` / MSE, WebAudio, inline `<video>`/`<audio>`, and autoplay enabled by default without requiring user gestures), unobtrusive bookmarking (`*HTTPS`/`*HTTP` header indicator, `*`+`0-9` save / `#`+`0-9` load chords, `**`/`#*` homepage chords, and bookmark manager modal in `~/.config/sxmo/webarchy_bookmarks.tsv`), and dual navigation modes (keypad link-stepping mode with NeoUI multi-tap HTML form input by default, plus an optional `*#` accelerated mouse cursor emulation mode).
|
||||
- **GPS reception test utility (`bananarchy-gps`) and OpenStreetMap navigator (`gps.so` / `xgps` / `xmaps` / `xnav`)**:
|
||||
- Added `/usr/bin/bananarchy-gps` (`status|enable|disable|nmea|watch`) to configure and inspect GNSS (`--location-enable-gps-nmea --location-enable-gps-raw --location-enable-3gpp`) and QMI PDS (`qmicli -d qrtr://0 --pds-*`) reception from the command line.
|
||||
- Implemented `gps.so` (`xgps` / `xmaps` / `xnav`) with 3 tabs: **`1:GPS Status`** (live Fix state, Latitude, Longitude, Altitude, Speed, Heading, Satellites used/in-view, HDOP, UTC time, 3GPP cell `MCC`/`MNC`/`TAC`/`CID`, and raw NMEA stream), **`2:OSM Map`** (interactive `240x212` OpenStreetMap slippy-map tile viewer with offline PNG tile caching in `~/.cache/sxmo/osm_tiles/<z>/<x>/<y>.png`, pan/zoom, GPS follow marker, waypoint pins, and route polyline overlay), and **`3:Nav/Search`** (Nominatim geocoding search, saved waypoints in `~/.config/sxmo/gps_waypoints.tsv`, and OSRM turn-by-turn road routing).
|
||||
|
||||
@@ -122,7 +122,7 @@ You can switch layouts, focus, and workspaces using the **Window management menu
|
||||
- `Mod4+Shift+q`: close the focused window.
|
||||
|
||||
#### 3.1.2 Preloaded native DWM applications
|
||||
All twenty-three phone applications are compiled as shared-object plugins (`/usr/lib/dwm/plugins/*.so`), preloaded at `dwm` startup, and awakened over `/tmp/dwm_plugin_<name>.fifo` in `< 2 ms`:
|
||||
All twenty-four phone applications are compiled as shared-object plugins (`/usr/lib/dwm/plugins/*.so`), preloaded at `dwm` startup, and awakened over `/tmp/dwm_plugin_<name>.fifo` in `< 2 ms`:
|
||||
|
||||
1. **System and context menus (`dmenu.so` / `dmenu` / `xdmenu`)**:
|
||||
- **Open / close**: press **Left softkey (`Menu`)** for the **System menu** or **Right softkey (`Back`)** inside an application for its **Context menu**; press the same softkey or `Escape` to close.
|
||||
@@ -231,9 +231,10 @@ All twenty-three phone applications are compiled as shared-object plugins (`/usr
|
||||
- **Open**: select **SIP VoIP** from the System or Applications menu, or run `xsip`.
|
||||
- **Three tabs (`1:Dialer`, `2:Accounts`, `3:History` — switch with `Left`/`Right`)**:
|
||||
- **`1:Dialer`**: enter a SIP URI (`user@host[:port]` or `sip:user@host[:port]`) or account extension (`1001`) using multi-tap alphanumeric input (`*` or `#` cycles `[abc]` / `[ABC]` / `[123]` / `[Sym]` / `[Abc]`) or select a recent peer with `Up`/`Down`, and press **Call (green)** or **Center `OK`** to place an outgoing SIP call. Outbound calls work both with a registered SIP account and directly without any configured account (`Direct URI` mode, selectable via `Menu -> Switch Account` when accounts are also present).
|
||||
- **`2:Accounts`**: add or edit SIP accounts (`~/.config/sxmo/sip_accounts.tsv`: Label, alphanumeric Username, Password, Domain, Port, UDP/TCP/TLS transport, ZRTP toggle, Enabled). Enabled accounts maintain RFC 3261 `REGISTER` keepalives with Digest MD5 authentication in the background even when `xsip` is closed.
|
||||
- **`2:Accounts`**: add or edit SIP accounts (`~/.config/sxmo/sip_accounts.tsv`: Label, alphanumeric Username, Password, Domain, Port, UDP/TCP/TLS transport, ZRTP toggle, Preferred Codec, Enabled). Enabled accounts maintain RFC 3261 `REGISTER` keepalives with Digest MD5 authentication in the background even when `xsip` is closed.
|
||||
- **`3:History`**: browse incoming, outgoing, and missed SIP calls (`~/.local/share/sxmo/sip_history.tsv`) and press **Call (green)** or **Center `OK`** to redial.
|
||||
- **ZRTP / SRTP encryption and CallScreen (`xcallscreen`) integration**: supports RFC 6189 **ZRTP** (`DH3k` 3072-bit / `DH2k` 2048-bit Diffie-Hellman key agreement with `a=zrtp-hash` SDP signaling and persistent 96-bit `ZID`) and RFC 3711 **SRTP** (`AES-128-CM` + `HMAC-SHA1-80`/`32`) encrypted voice media (`ON` by default per account and for direct accountless calls via `Menu -> Toggle Direct ZRTP`). Incoming `INVITE` requests wake the phone, trigger the ringtone/vibrator, and open `xcallscreen` with a `[SIP]` badge; once ZRTP completes its handshake, the 4-character Short Authentication String (`SAS`) is displayed in both `xsip` (`ZRTP SECURE | SAS: <sas>`) and `xcallscreen` (`[ZRTP:<sas>]`) while streaming bidirectional 8 kHz G.711 (`PCMU`/`PCMA`) RTP/SRTP audio and RFC 2833 DTMF tones.
|
||||
- **Audio codecs (`AUTO`, `OPUS`, `G722`, `PCMU`, `PCMA`, `GSM`, `G726-32`, `DVI4`, `L16`)**: supports full SDP `m=audio` / `a=rtpmap` / `a=fmtp` negotiation across 10 wideband (`16 kHz`) and narrowband (`8 kHz`) RTP/SRTP audio profiles: **Opus** (`opus/48000/2`, RFC 7587, 16 kHz wideband VoIP with in-band FEC), **ITU-T G.722** (`G722/8000`, 16 kHz wideband 64 kbps SB-ADPCM), **ITU-T G.711** `PCMU` (`PT 0`) and `PCMA` (`PT 8`, 8 kHz 64 kbps), **GSM 06.10 Full Rate** (`GSM/8000`, `PT 3`, 8 kHz 13 kbps RPE-LTP), **ITU-T G.726-32** (`G726-32/8000`, 8 kHz 32 kbps ADPCM), **IMA ADPCM** (`DVI4/8000` `PT 5` and `DVI4/16000` `PT 6`), and **uncompressed 16-bit PCM** (`L16/8000` and `L16/16000`), plus **RFC 2833 / RFC 4733 `telephone-event/8000`** DTMF. Preferred codec priority is configurable per account (`Codec` field in the Account Editor) or for direct accountless calls (`Menu -> Cycle Direct Codec`).
|
||||
- **ZRTP / SRTP encryption and CallScreen (`xcallscreen`) integration**: supports RFC 6189 **ZRTP** (`DH3k` 3072-bit / `DH2k` 2048-bit Diffie-Hellman key agreement with `a=zrtp-hash` SDP signaling and persistent 96-bit `ZID`) and RFC 3711 **SRTP** (`AES-128-CM` + `HMAC-SHA1-80`/`32`) encrypted voice media (`ON` by default per account and for direct accountless calls via `Menu -> Toggle Direct ZRTP`). Incoming `INVITE` requests wake the phone, trigger the ringtone/vibrator, and open `xcallscreen` with a `[SIP/<codec>]` badge; once ZRTP completes its handshake, the active codec and 4-character Short Authentication String (`SAS`) are displayed in both `xsip` (`<codec> | ZRTP SAS:<sas>`) and `xcallscreen` (`[SIP/<codec>:<sas>]`).
|
||||
|
||||
17. **Email client (`email.so` / `xemail` / `xmail`)**:
|
||||
- **Open**: select **Email** from the System or Applications menu, or run `xemail` / `xmail`.
|
||||
@@ -244,11 +245,11 @@ All twenty-three phone applications are compiled as shared-object plugins (`/usr
|
||||
|
||||
18. **IRCv3 client (`irc.so` / `xirc`)**:
|
||||
- **Open**: select **IRC Chat** from the System or Applications menu, or run `xirc`.
|
||||
- **Three tabs (`1:Buffers`, `2:Chat`, `3:Servers` — switch with `Left`/`Right`)**:
|
||||
- **`1:Buffers`**: lists server status buffers, joined `#channels`, and private query buffers with unread (`[N]`) and highlight (`[!]`) badges.
|
||||
- **`2:Chat`**: displays scrollable message history (`Up`/`Down`) and multi-tap input bar (`*` cycles mode, **Center `OK`** sends message or executes `/join`, `/part`, `/msg`, `/nick`, `/me`, `/topic`, `/raw`, `/quit`).
|
||||
- **`3:Servers`**: manage multiple IRC servers (`~/.config/sxmo/irc_servers.tsv`, preconfigured with Libera.Chat and OFTC over TLS `6697`), supporting OpenSSL TLS, IRCv3 capability negotiation (`CAP LS 302`: `sasl`, `server-time`, `message-tags`, `multi-prefix`, `away-notify`, `account-notify`, `chghost`, `cap-notify`), and `SASL PLAIN` authentication.
|
||||
- **Background mode (`BG_STAY`)**: when `Stay Connected in Background` is enabled in the **Left softkey (`Menu`)**, closing `xirc` keeps all active IRC socket connections alive in the resident daemon and vibrates on nick highlights or private messages.
|
||||
- **Three tabs (`1:Chat`, `2:Buffers`, `3:Servers` — switch with `Left`/`Right`)**:
|
||||
- **`1:Chat`**: displays scrollable message history (`Up`/`Down`) and multi-tap input bar (`*`/`#` cycles mode, **Center `OK`** or **Call (green)** sends message or executes `/join`, `/part`, `/leave`, `/close`, `/msg`, `/query`, `/nick`, `/me`, `/clear`, `/connect`, `/disconnect`, `/raw`, `/quit`).
|
||||
- **`2:Buffers`**: lists server `*status*` buffers, joined `#channels`, and private query buffers with server/nick/connection subtitle and unread (`+N`) or `ACTIVE` badges. Highlight any buffer with `Up`/`Down` (or `2`/`8`) to switch the active buffer and press **Center `OK`**, `5`, **Call (green)**, `Left`, or **Right softkey (`Back`)** to open it in `Chat`; press `BackSpace` or **Left softkey (`Menu -> Close Buffer`)** to part and close the selected buffer.
|
||||
- **`3:Servers`**: manage multiple IRC servers (`~/.config/sxmo/irc_servers.tsv`, preconfigured with Libera.Chat over TLS `6697`), supporting OpenSSL TLS, IRCv3 capability negotiation (`CAP LS 302`: `sasl`, `server-time`, `message-tags`, `multi-prefix`, `away-notify`, `account-notify`, `chghost`, `cap-notify`), and `SASL PLAIN` authentication.
|
||||
- **Background mode (`BG Mode`)**: when `BG Mode` is enabled on a server, closing `xirc` keeps the active IRC socket connection alive in the resident daemon and triggers notification hooks on nick highlights or private messages.
|
||||
|
||||
19. **Tox / Trifa P2P messenger and audio call client (`tox.so` / `xtox`)**:
|
||||
- **Open**: select **Tox (Trifa)** from the System or Applications menu, or run `xtox`.
|
||||
@@ -273,18 +274,26 @@ All twenty-three phone applications are compiled as shared-object plugins (`/usr
|
||||
- **`Call (green)`**: open URL address bar (`*` cycles input mode; `Call` inside the address bar toggles `Gopher TLS`)
|
||||
- **`Right softkey` / `BackSpace`**: navigate back in history (or close when at root)
|
||||
|
||||
21. **GPS test utility and OpenStreetMap navigator (`gps.so` / `xgps` / `xmaps` / `xnav`)**:
|
||||
21. **Webarchy Web browser (`webarchy.so` / `webarchy` / `xwebarchy`)**:
|
||||
- **Open**: select **Webarchy (Web)** from the System or Applications menu, or run `webarchy [url]` / `xwebarchy [url]`.
|
||||
- **Engine, User-Agent, encoding, fonts, and multimedia**: built on WPE / WebKit (`webkit2gtk-4.1` + `libwpe-1.0` + `libwpebackend-fdo-1.0`) with Adreno 304 hardware acceleration (`WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS` and WebGL) and 512 MB RAM pressure tuning (`160 MB` WebProcess cap). Uses `UTF-8` as the primary/default encoding when a server specifies none, configures Google **Noto** (`Noto Sans`, `Noto Serif`, `Noto Sans Symbols`, `Noto Sans Math`, `Noto Color Emoji`) as the default non-monospace web fonts while keeping **Fira Code** with OpenType ligatures (`calt`, `liga`) for monospace (`code`, `pre`, `kbd`, `samp`, `tt`), enables all HTML5/GStreamer multimedia playback (`MediaSource` / MSE, WebAudio, inline `<video>`/`<audio>`, and autoplay without user gesture requirements) by default, and uses `Mozilla/5.0 (Mobile; rv:123.0) Gecko/123.0 Firefox/123.0 KAIOS/4.0` as the default User-Agent (overridable via `Menu -> User-Agent Override` across 4 presets or a custom multi-tap string persisted in `~/.config/sxmo/webarchy_ua.txt`).
|
||||
- **Dual navigation modes (`[LNK]` Keypad Link Mode vs `[CUR]` Mouse Cursor Emulation Mode)**:
|
||||
- **Keypad Link Mode (default)**: `Up` / `Down` scrolls vertically; `4` / `Left` and `6` / `Right` (or customizable Kopher keys in `~/.config/sxmo/smallweb_controls.tsv`) highlight the previous / next interactive element (`<a>`, `<button>`, `<input>`, `<select>`, `<textarea>`, `<video>`, `<audio>`) and display its label/URL in the bottom status bar; `5` / `Center OK` clicks the highlighted element or opens a NeoUI multi-tap text entry modal when an HTML `<input>` or `<textarea>` is selected (`Left softkey` or `Call` submits the form); `1` / `7` scrolls horizontally; `3` / `9` jumps to page top / bottom; `0` reloads; `#` cycles page zoom (`100%` / `85%` / `120%` / `70%`).
|
||||
- **Mouse Cursor Emulation Mode (optional, off by default — toggle with `*#` chord or `Menu -> Toggle Mouse Cursor`)**: renders an on-screen pointer that moves with acceleration using `D-Pad` or `2`/`4`/`6`/`8` (plus diagonals `1`/`3`/`7`/`9`), automatically scrolls the page when pushed against the viewport edges, updates the bottom status bar with `(x,y)` coordinates and the hovered DOM element, and clicks or opens multi-tap input on `5` / `Center OK`.
|
||||
- **Unobtrusive bookmarking (`~/.config/sxmo/webarchy_bookmarks.tsv`)**: displays a `*` prefix on the protocol badge (`*HTTPS` / `*HTTP`) whenever the current URL is bookmarked. Press `*` followed by `1`–`9`/`0` to save the current page to slot `1`–`10` (`**` sets the homepage), `#` followed by `1`–`9`/`0` to open slot `1`–`10` (`#*` opens the homepage), or open `Menu -> Bookmarks` (`Left softkey` saves into the highlighted slot, `Center OK` opens, `Call` deletes).
|
||||
|
||||
22. **GPS test utility and OpenStreetMap navigator (`gps.so` / `xgps` / `xmaps` / `xnav`)**:
|
||||
- **Open**: select **GPS & Maps** from the System or Applications menu, or run `xgps` / `xmaps` / `xnav`.
|
||||
- **Three tabs (`1:GPS Status`, `2:OSM Map`, `3:Nav/Search` — switch with `1`–`3` or `Left`/`Right` in Tabs 1 and 3)**:
|
||||
- **`1:GPS Status`**: live GNSS reception test screen displaying Fix Status (`3D/2D FIX` vs `SEARCHING`), Latitude, Longitude, Altitude, Speed (`km/h`), Heading (`deg`), Satellites (`used/view`), HDOP, UTC timestamp, 3GPP cellular tower location (`MCC`/`MNC`/`TAC`/`CID`), and recent NMEA sentences (`$GPGGA`, `$GPRMC`, `$GPGSV`). Press **Center `OK`** to refresh immediately or `5` to center the map on the current GPS fix.
|
||||
- **`2:OSM Map`**: interactive `240x212` OpenStreetMap slippy-map tile viewer with offline PNG tile caching (`~/.cache/sxmo/osm_tiles/<z>/<x>/<y>.png`), crosshair, GPS position marker, saved waypoint pins, and active route polyline overlay. Pan with `D-Pad` (`Up`/`Down`/`Left`/`Right`) or `2`/`8`/`4`/`6`, zoom in/out (`z=2..18`) with `*` / `#` (or `Center OK` / `0`), re-center on GPS (`FOLLOW`) with `5`, or press **Call (green)** to search places.
|
||||
- **`3:Nav/Search`**: displays the active turn-by-turn route summary (total distance and next maneuver) and saved waypoints (`~/.config/sxmo/gps_waypoints.tsv`). Press **Call (green)** (or `Menu -> Search Place (Nominatim)`) to geocode any address or POI via OpenStreetMap Nominatim, or highlight any waypoint and press **Center `OK`** to compute a turn-by-turn road route from your current position via OSRM.
|
||||
|
||||
22. **Passcode phone locker (`locker.so` / `xlocker`)**:
|
||||
23. **Passcode phone locker (`locker.so` / `xlocker`)**:
|
||||
- **Activate**: select **Power -> Lock** or **Power -> Lock (Screen off)**, double-press **End / Power**, close the physical slider, or run `xlocker [lock|screenoff|wake|status]`.
|
||||
- **Controls, verification, and duress mode**: renders a fullscreen `240x320` (`X=0, Y=0`) lock screen showing the live clock, date, battery percentage, and unread SMS/notification count. Enter your numeric system password (`147147` by default, 4 or more digits) using `0`–`9`; when 4 or more digits are entered and match the user's `/etc/shadow` password hash (verified via `/usr/bin/bananarchy-verify-passcode`), the phone unlocks immediately. If a separate **duress passcode** has been configured and is entered on the lock screen (`exit 2`), `/usr/bin/bananarchy-duress-activate` silently activates **duress mode** (`/tmp/bananarchy_duress_mode` and blank profile `/tmp/duress_home`): contacts, call logs, and SMS history are blanked, the microSD card is unmounted and blocked, the UI theme and wallpaper are locked to `NordFrost.xth` and `/usr/share/wallpapers/nordic-peaks.png`, `*#06#` displays a session-persistent random Luhn-valid IMEI derived from the device's preconfigured 8-digit TAC, `xfiles` is clamped inside `/tmp/duress_home`, and `xpasscode`, `xtox`, `xirc`, `xsip`, and `st` are disabled and hidden from all menus until the phone is powered off or rebooted. Press `BackSpace`, `Left`, or **Right softkey (`Clear`)** to delete a digit; press **End / Power** (or **Right softkey (`Sleep`)** when the input field is empty) to blank the display while staying locked. Repeated wrong attempts enforce a 5-second lockout cooldown.
|
||||
|
||||
23. **Passcode and duress configurator (`passcode.so` / `xpasscode`)**:
|
||||
24. **Passcode and duress configurator (`passcode.so` / `xpasscode`)**:
|
||||
- **Open**: select **Passcode** from the **Config** or **Applications** menu, or run `xpasscode`.
|
||||
- **Two tabs (`1:User PIN`, `2:Duress PIN` — switch with `Left`/`Right`)**:
|
||||
- **`1:User PIN`**: enter your current numeric passcode (`0`–`9`), enter and confirm a new user passcode of any length starting at `4` numeric digits, and press **Center `OK`** on **Save User Passcode** to update the real Linux system password (`user` in `/etc/shadow`).
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
- **Pure X11 graphical stack with GPU acceleration**: cross-compiled **Xlibre** (`X11Libre/xserver`) display server offloading 2D/3D screen rendering to the **Adreno 304 GPU** via **Glamor, DRI3, GLX, and Mesa Freedreno (`FD304`, OpenGL 3.1 / OpenGL ES 3.0)** over `panel-mipi-dbi` KMSRO, paired with a customized **Sxmo (`sxmo-de-dwm`)** window manager (`240x320` vertical stack layout, Conky desktop clock and system status widget, `< 2 ms` slider/key wake latency, and zero Wayland overhead).
|
||||
|
||||
### Keypad-first user experience and native DWM plugins
|
||||
Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs a suite of 22 preloaded C/C++ plugins inside DWM that sleep at 0% CPU and open in `< 2 ms`:
|
||||
Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs a suite of 23 preloaded C/C++ plugins inside DWM that sleep at 0% CPU and open in `< 2 ms`:
|
||||
- **System and context menus (`dmenu`)**: instant full-screen 10-line vertical menus with live T9 filtering, built-in submenus, and hardware toggles.
|
||||
- **Passcode-based fullscreen phone locker (`xlocker`), GUI passcode configurator (`xpasscode`), and Duress Mode**: zero-bypass `240x320` fullscreen numeric passcode lock screen verified against the current user's system shadow password (`/usr/bin/bananarchy-verify-passcode`), blocking all desktop, menu, drawer, terminal, and power actions while locked and automatically handing off the display only during incoming calls. Includes a NeoUI **Passcode Configurator (`xpasscode` / `passcode.so`)** in `Config -> Passcode` to change the real Linux user password (`user`, any numeric length `>= 4` digits) and configure a separate **Duress Passcode**. Entering the duress passcode on the lock screen switches the session into **Duress Mode** (`/tmp/duress_home` blank profile with no contacts, SMS, call logs, or personal files, microSD unmounted and disabled, `xfiles` clamped to the profile directory, Passcode/Tox/IRC/SIP/`st` terminal hidden and blocked, `*#06#` displaying a session-persistent random Luhn-valid IMEI derived from the device's TAC, and theme/wallpaper locked to `NordFrost.xth` and `nordic-peaks.png` until poweroff or reboot).
|
||||
- **Global controls drawer (`xdrawer`) and `*` + `#` screenshot combo**: press **both softkeys together** from anywhere to adjust linear (`1%`–`100%`) speaker, earpiece, and ringtone volume, audio output routing (`Speaker`, `Earpiece`, `Headphones` with automatic 3.5mm jack plug/unplug routing), ringer mode (`Ring+Vib` / `Vibrate` / `Silent` / `DND`), 3-level vibration intensity (`Light` / `Medium` / `Strong`), flashlight, sound and microphone mute, screen brightness, and keypad backlight; press **`*` and `#` together** from anywhere to capture a `240x320` PNG screenshot (`scrot` via `bananarchy-screenshot`) to `~/Pictures/screenshot-YYYYMMDD-HHMMSS.png`.
|
||||
@@ -30,12 +30,13 @@ Instead of spawning slow shell scripts for everyday phone tasks, Bananarchy runs
|
||||
- **Modem and Dual-SIM manager (`xmodem`)**: 4-tab cellular control center (`SIMs`, `Radio`, `AT`, `Log`) supporting Dual-SIM Dual Standby (DSDS) with simultaneous network registration on both SIM slots, instant default SIM switching (`Set as Default SIM (Calls/SMS)`), full Primary/Secondary GW (`4G/Data`) slot swapping (`Make Primary GW (4G/Data Swap)`), SIM PIN unlock and PUK unblock wizards, 2G/3G/4G radio mode selection, interactive USSD sessions, and a live AT command console.
|
||||
- **Networks and Bluetooth manager (`xnetworks`) with OBEX file transfer (`bananarchy-bt-obex`)**: 3-tab connectivity manager for Wi-Fi networks, WPA2 password entry, Wi-Fi hotspot, USB tethering, 4G/LTE mobile data (`wwan0`) and APN editing, and Bluetooth pairing, with built-in Bluetooth OBEX Object Push file reception (`~/Downloads` status and receiver toggle in the `Bluetooth` tab) and **Send via Bluetooth** in `xfiles`.
|
||||
- **File manager (`xfiles`) with microSD automount (`sxmo_sdcard.sh`), Bluetooth file sharing, music and tracker player (`xmusic`), and camera (`xcamera`)**: keypad directory browser with automatic microSD card (`/dev/mmcblk1`) detection and `/media/sdcard` mounting/unmounting, **Send via Bluetooth** OBEX file push to paired/discovered devices, built-in text viewer, integrated GUI multi-tap text editor (`Edit in Text Editor`, available as an action on any file), image viewer, and dedicated monophonic ringtone viewer (`RingtoneView` for Nokia RTTTL `.nrt`/`.rtttl`/`.rtx`, Ericsson eMelody `.emy`, and IrDA iMelody `.imy` with graphical piano-roll pitch contour, note sequence viewer, live audio preview, and one-key assignment as call ringtone or notification/SMS sound — plus one-click actions to launch `.jar`/`.jad` MIDlets in the **ReMEdy (`remedy`)** J2ME emulator, launch `.gb`/`.gbc` ROMs in the Game Boy emulator, run `.yab` scripts in Yabasic inside the terminal, play audio, preview images, set any image as wallpaper, or install any audio, tracker, or monophonic melody file as call ringtone or notification/SMS sound), a 3-tab music and chiptune tracker module player (`WAV`, `MP3`, `OGG`, `FLAC`, `Opus`, `MOD`, `XM`, `IT`, `S3M`, `NRT`, `RTTTL`, `RTX`, `EMY`, `IMY`, and more), and a live V4L2 camera viewfinder with digital zoom, flash/torch control, self-timer, and photo gallery.
|
||||
- **Native NeoUI communication and internet suite (`xsip`, `xemail`, `xirc`, `xtox`, `xkopher`)**:
|
||||
- **SIP VoIP client (`xsip` / `sip.so`)**: RFC 3261 SIP softphone (`Dialer`, `Accounts`, `History`) supporting both account-registered calling (with Digest MD5 authentication and standby `REGISTER` keepalive) and direct accountless P2P SIP URI calling (`user@host[:port]` or `sip:user@host[:port]`), RFC 6189 **ZRTP** media-path Diffie-Hellman (`DH3k`/`DH2k`) key agreement and RFC 3711 **SRTP** (`AES-128-CM` + `HMAC-SHA1-80`) voice encryption with a 4-character `SAS` verification code, incoming `INVITE` ringing and call handling integrated with `xcallscreen` (`[SIP]` / `[ZRTP:<sas>]`), bidirectional G.711 (`PCMU`/`PCMA` 8 kHz) RTP/SRTP audio, and RFC 2833 DTMF.
|
||||
- **Native NeoUI communication and internet suite (`xsip`, `xemail`, `xirc`, `xtox`, `xkopher`, `webarchy`)**:
|
||||
- **SIP VoIP client (`xsip` / `sip.so`)**: RFC 3261 SIP softphone (`Dialer`, `Accounts`, `History`) supporting both account-registered calling (with Digest MD5 authentication and standby `REGISTER` keepalive) and direct accountless P2P SIP URI calling (`user@host[:port]` or `sip:user@host[:port]`), RFC 3263 DNS `SRV` (`_sip._udp.<domain>`) proxy discovery and dialog routing, RFC 6189 **ZRTP** media-path Diffie-Hellman (`DH3k`/`DH2k`) key agreement and RFC 3711 **SRTP** (`AES-128-CM` + `HMAC-SHA1-80`) voice encryption with a 4-character `SAS` verification code, incoming `INVITE` ringing and call handling integrated with `xcallscreen` (`[SIP/<codec>]` / `[SIP/<codec>:<sas>]`), multi-codec wideband and narrowband RTP/SRTP audio (`Opus` 16 kHz / 48 kHz RTP clock with in-band FEC, `ITU-T G.722` 16 kHz wideband SB-ADPCM, `G.711 PCMU`/`PCMA` 8 kHz, `GSM 06.10` Full Rate 8 kHz, `ITU-T G.726-32` 8 kHz ADPCM, `IMA ADPCM DVI4` 8/16 kHz, and `L16` uncompressed 16-bit PCM 8/16 kHz) with per-account and direct-mode codec preference selection, and RFC 2833 / RFC 4733 DTMF.
|
||||
- **Email client (`xemail` / `xmail` / `email.so`)**: multi-account `IMAP4rev1`, `POP3`, and `SMTP` client (`Inbox`, `Compose`, `Accounts`) supporting implicit TLS, `STARTTLS`, and plain TCP, SASL `PLAIN`/`LOGIN`, MIME RFC 2047/Base64/Quoted-Printable decoding, offline inbox cache, full-screen message reader, and composer.
|
||||
- **IRCv3 client (`xirc` / `irc.so`)**: multi-server IRC client (`Buffers`, `Chat`, `Servers`) with OpenSSL TLS, IRCv3 capability negotiation (`CAP LS 302`: `sasl`, `server-time`, `message-tags`, `multi-prefix`, `away-notify`, `account-notify`, `chghost`, `cap-notify`), `SASL PLAIN` authentication, slash commands, and resident background mode with highlight vibration alerts.
|
||||
- **Tox / Trifa P2P messenger and audio call client (`xtox` / `tox.so`)**: encrypted P2P messenger (`Friends`, `Chat`, `My Tox ID`) built on `c-toxcore` (`libtoxcore.so.2`) with DHT + TCP relay bootstrap, friend requests, persistent message history, and `ToxAV` 48 kHz Opus voice calls integrated with `xcallscreen`.
|
||||
- **Kopher SmallWeb browser (`xkopher` / `kopher` / `xsmallweb` / `smallweb.so`)**: multi-protocol SmallWeb client for **Gopher** (`gopher://`) with optional TLS (`gophers://`), **Gemini** (`gemini://`), **Spartan** (`spartan://`), and **Nex** (`nex://`), featuring WAP-style default keypad controls from [Kopher](https://code.luxferre.top/luxferre/kopher.git), user-adjustable keybindings (`~/.config/sxmo/smallweb_controls.tsv`), 10 bookmarks, and custom homepage support.
|
||||
- **Webarchy Web browser (`webarchy` / `xwebarchy` / `webarchy.so`)**: full-featured HTML5/CSS3/JS web browser built on WPE / WebKit (`webkit2gtk-4.1` + `libwpe-1.0` + `libwpebackend-fdo-1.0`) with Adreno 304 hardware acceleration (`WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS`, WebGL, accelerated 2D canvas, and 512 MB RAM pressure tuning), default KaiOS 4.0 User-Agent (`Mozilla/5.0 (Mobile; rv:123.0) Gecko/123.0 Firefox/123.0 KAIOS/4.0`) with preset and custom User-Agent override (`~/.config/sxmo/webarchy_ua.txt`), `UTF-8` default encoding fallback, `Noto Sans` / `Noto Serif` (`font-noto` + `font-noto-emoji`) as the default non-monospace browser fonts and `Fira Code` with OpenType ligatures as the monospace font, full GStreamer multimedia (`MediaSource` / MSE, WebAudio, inline HTML5 `<video>`/`<audio>` autoplay without user gesture requirements), unobtrusive bookmarking (`*HTTPS`/`*HTTP` header badge, `*`+`0-9` save / `#`+`0-9` load chords, and bookmark manager), and dual navigation modes (keypad link-stepping mode with NeoUI multi-tap form input by default, plus an optional `*#` accelerated mouse cursor emulation mode).
|
||||
- **GPS reception test utility (`bananarchy-gps`) and OpenStreetMap navigator (`xgps` / `xmaps` / `xnav` / `gps.so`)**: CLI GNSS/GPS diagnostic tool (`bananarchy-gps status|enable|disable|nmea|watch`) and 3-tab NeoUI GPS navigator (`1:GPS Status`, `2:OSM Map`, `3:Nav/Search`) with live NMEA/QMI PDS satellite and 3GPP cell telemetry, interactive `240x212` OpenStreetMap slippy-map tile viewer with offline PNG tile cache (`~/.cache/sxmo/osm_tiles/`), Nominatim place search, saved waypoints, and OSRM turn-by-turn route geometry and step navigation.
|
||||
- **Themes (`xthemes`), wallpapers (`xwallpapers`), and ringtones (`xringtones`)**: installable `.Xresources` color and font themes (`~/.xthemes/*.xth`, 20 preinstalled schemes) with live zero-restart reload across the entire UI, `dunst` notification popups (`bananarchy-sync-dunst-theme`), and terminal, alongside dedicated managers for desktop wallpapers and 3-tab call ringtones & notification/SMS alerts (`1:Ringtone`, `2:Notif/SMS`, `3:Settings`, supporting standard audio, tracker modules, and Nokia RTTTL `.nrt`/`.rtttl`/`.rtx`, Ericsson eMelody `.emy`, and IrDA iMelody `.imy` monophonic ringtones via `/usr/bin/bananarchy-melody`, wired into `sxmo_notifs.sh` and `sxmo_hook_notification.sh`) with 3-level vibration control.
|
||||
|
||||
@@ -79,9 +80,9 @@ bananarchy/
|
||||
├── src/
|
||||
│ ├── neoui/ # NeoUI 240x320 UI SDK (libneoui.so + /usr/include/neoui.h, C FFI & C++20)
|
||||
│ ├── sxmo-dwm/ # Patched sxmo-dwm (240x320 bstack, Pango bar, softkey bar, and plugin API)
|
||||
│ ├── dwm-plugins/ # DWM plugins (locker, dialer, calllog, callscreen, contacts, sms, files,
|
||||
│ │ # camera, themes, modem, networks, ringtones, wallpapers, music, sip,
|
||||
│ │ # email, irc, tox, smallweb, gps), net_tls.h, theme.h, and runner
|
||||
│ ├── dwm-plugins/ # DWM plugins (locker, passcode, dialer, calllog, callscreen, contacts, sms,
|
||||
│ │ # files, camera, themes, modem, networks, ringtones, wallpapers, music, sip,
|
||||
│ │ # email, irc, tox, smallweb, webarchy, gps), net_tls.h, theme.h, and runner
|
||||
│ ├── xdrawer/ # XDrawer global phone controls DWM plugin (xdrawer.so / xdrawer)
|
||||
│ ├── sxmo-dmenu/ # Resident DWM menu plugin (dmenu.so) and client (dmenu / xdmenu)
|
||||
│ ├── sxmo-st/ # Patched sxmo-st terminal with HarfBuzz Fira Code ligatures and XIM
|
||||
@@ -112,7 +113,7 @@ All components are pre-compiled in `prebuilt/` and `overlay/rootfs/`, and can be
|
||||
# Rebuild cross-compiled Xlibre (X11Libre/xserver) + Glamor/GLX + libinput/fbdev DDX drivers
|
||||
./scripts/build-xlibre.sh
|
||||
|
||||
# Rebuild patched sxmo-st, sxmo-dmenu, sxmo-dwm, and all 21 C++ DWM plugins
|
||||
# Rebuild patched sxmo-st, sxmo-dmenu, sxmo-dwm, and all 22 C++ DWM plugins
|
||||
./scripts/build-sxmo-x11.sh
|
||||
|
||||
# Rebuild standalone X11 games and emulators (snake, tetris, scoundrel, gambatte, remedy)
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
level=ERR
|
||||
|
||||
[connection]
|
||||
wifi.powersave=3
|
||||
wifi.powersave=2
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<fontconfig>
|
||||
<alias binding="strong">
|
||||
<alias binding="same">
|
||||
<family>DejaVu SansM Nerd Font</family>
|
||||
<prefer>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
@@ -12,6 +12,10 @@
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias binding="strong">
|
||||
@@ -19,20 +23,54 @@
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
<family>Noto Sans Mono</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias binding="strong">
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias binding="strong">
|
||||
<family>system-ui</family>
|
||||
<prefer>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias binding="strong">
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>Noto Serif</family>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<match target="font">
|
||||
<test name="family" compare="eq">
|
||||
<string>Fira Code</string>
|
||||
</test>
|
||||
<edit name="fontfeatures" mode="append">
|
||||
<string>calt on</string>
|
||||
<string>liga on</string>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- configversion: c90188e736e042ebe71879799645b0c4 -->
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>Sxmo</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
<family>Noto Sans Mono</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>system-ui</family>
|
||||
<prefer>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>Noto Serif</family>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<match target="font">
|
||||
<test name="family" compare="eq">
|
||||
<string>Fira Code</string>
|
||||
</test>
|
||||
<edit name="fontfeatures" mode="append">
|
||||
<string>calt on</string>
|
||||
<string>liga on</string>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
@@ -0,0 +1,4 @@
|
||||
[Settings]
|
||||
gtk-application-prefer-dark-theme=1
|
||||
gtk-theme-name=Adwaita:dark
|
||||
gtk-font-name=Noto Sans 10
|
||||
@@ -6,32 +6,66 @@
|
||||
<family>Sxmo</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVu SansM Nerd Font</family>
|
||||
<family>Dejavu Sans Mono Nerd Font</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVu SansM Nerd Font</family>
|
||||
<family>Dejavu Sans Mono Nerd Font</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
<family>Noto Sans Mono</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVu SansM Nerd Font</family>
|
||||
<family>Dejavu Sans Mono Nerd Font</family>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>system-ui</family>
|
||||
<prefer>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVu SansM Nerd Font</family>
|
||||
<family>Dejavu Sans Mono Nerd Font</family>
|
||||
<family>Noto Serif</family>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<match target="font">
|
||||
<test name="family" compare="eq">
|
||||
<string>Fira Code</string>
|
||||
</test>
|
||||
<edit name="fontfeatures" mode="append">
|
||||
<string>calt on</string>
|
||||
<string>liga on</string>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
@@ -1,3 +1,4 @@
|
||||
[Settings]
|
||||
gtk-application-prefer-dark-theme=1
|
||||
gtk-font-name=Fira Code 10
|
||||
gtk-theme-name=Adwaita:dark
|
||||
gtk-font-name=Noto Sans 10
|
||||
@@ -105,7 +105,7 @@ feh --no-fehbg --bg-fill /usr/share/wallpapers/nordic-peaks.png >/dev/null 2>&1
|
||||
pkill -9 -x st >/dev/null 2>&1 || true
|
||||
|
||||
# Notify all plugins to close overlays and reload theme/profile
|
||||
for p in dmenu xdrawer passcode tox irc sip engmenu dialer calllog contacts sms files camera themes modem networks ringtones wallpapers music email smallweb gps; do
|
||||
for p in dmenu xdrawer passcode tox irc sip engmenu dialer calllog contacts sms files camera themes modem networks ringtones wallpapers music email smallweb webarchy gps; do
|
||||
fifo="/tmp/dwm_plugin_${p}.fifo"
|
||||
if [ -p "$fifo" ]; then
|
||||
printf 'CLOSE\nRELOAD_THEME\n' > "$fifo" 2>/dev/null || true
|
||||
|
||||
Binary file not shown.
@@ -312,11 +312,13 @@ apply_alsa_in() {
|
||||
printf "1\n" > /tmp/xdrawer_mic_mux 2>/dev/null || true
|
||||
fi
|
||||
amixer -c 0 cset "name='TX1 Digital Volume'" "$tx_hw" >/dev/null 2>&1 || true
|
||||
amixer -c 0 cset "name='MultiMedia2 Mixer TERT_MI2S_TX'" 1 >/dev/null 2>&1 || true
|
||||
else
|
||||
amixer -c 0 cset "name='DEC1 MUX'" 'ZERO' >/dev/null 2>&1 || true
|
||||
amixer -c 0 cset "name='ADC1 Volume'" 0 >/dev/null 2>&1 || true
|
||||
amixer -c 0 cset "name='ADC2 Volume'" 0 >/dev/null 2>&1 || true
|
||||
amixer -c 0 cset "name='TX1 Digital Volume'" 0 >/dev/null 2>&1 || true
|
||||
amixer -c 0 cset "name='MultiMedia2 Mixer TERT_MI2S_TX'" 0 >/dev/null 2>&1 || true
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
dwm-plugin
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
dwm-plugin
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,32 +6,66 @@
|
||||
<family>Sxmo</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVu SansM Nerd Font</family>
|
||||
<family>Dejavu Sans Mono Nerd Font</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVu SansM Nerd Font</family>
|
||||
<family>Dejavu Sans Mono Nerd Font</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
<family>Noto Sans Mono</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVu SansM Nerd Font</family>
|
||||
<family>Dejavu Sans Mono Nerd Font</family>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>system-ui</family>
|
||||
<prefer>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer>
|
||||
<family>Fira Code</family>
|
||||
<family>DejaVu SansM Nerd Font</family>
|
||||
<family>Dejavu Sans Mono Nerd Font</family>
|
||||
<family>Noto Serif</family>
|
||||
<family>Noto Sans</family>
|
||||
<family>Noto Sans Symbols</family>
|
||||
<family>Noto Sans Symbols 2</family>
|
||||
<family>Noto Sans Math</family>
|
||||
<family>Noto Color Emoji</family>
|
||||
<family>DejaVuSansM Nerd Font</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
<match target="font">
|
||||
<test name="family" compare="eq">
|
||||
<string>Fira Code</string>
|
||||
</test>
|
||||
<edit name="fontfeatures" mode="append">
|
||||
<string>calt on</string>
|
||||
<string>liga on</string>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
@@ -55,6 +55,7 @@ write_line_app xsip "$icon_phn SIP VoIP" "xsip"
|
||||
write_line_app xemail "$icon_eml Email" "xemail"
|
||||
write_line_app xirc "$icon_msg IRC Chat" "xirc"
|
||||
write_line_app xtox "$icon_msg Tox Messenger" "xtox"
|
||||
write_line_app xwebarchy "$icon_glb Webarchy Browser" "xwebarchy"
|
||||
write_line_app xkopher "$icon_glb Kopher (SmallWeb)" "xkopher"
|
||||
write_line_app xgps "$icon_map GPS & Maps" "xgps"
|
||||
write_line_app celluloid "$icon_mvi Celluloid" "celluloid"
|
||||
|
||||
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
dwm-plugin
|
||||
+1
@@ -0,0 +1 @@
|
||||
dwm-plugin
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -59,7 +59,13 @@ EOF
|
||||
libjpeg-turbo-dev \
|
||||
libpng-dev \
|
||||
openssl-dev \
|
||||
toxcore-dev >/dev/null
|
||||
opus-dev \
|
||||
gsm-dev \
|
||||
toxcore-dev \
|
||||
gtk+3.0-dev \
|
||||
webkit2gtk-4.1-dev \
|
||||
libwpe-dev \
|
||||
libwpebackend-fdo-dev >/dev/null
|
||||
|
||||
export PKG_CONFIG_SYSROOT_DIR="$SYSROOT"
|
||||
export PKG_CONFIG_LIBDIR="$SYSROOT/usr/lib/pkgconfig:$SYSROOT/usr/share/pkgconfig"
|
||||
@@ -197,7 +203,7 @@ EOF
|
||||
pids="$pids $!"
|
||||
|
||||
$CXX $CXX_PLUG_FLAGS $PLUG_INCS \
|
||||
/bananarchy/src/dwm-plugins/sip_plugin.cpp $NEOUI_LIBS $PLUG_LIBS -lssl -lcrypto -lpthread \
|
||||
/bananarchy/src/dwm-plugins/sip_plugin.cpp $NEOUI_LIBS $PLUG_LIBS -lssl -lcrypto -lopus -lgsm -lpthread \
|
||||
-o /bananarchy/prebuilt/sxmo-x11/usr/lib/dwm/plugins/sip.so &
|
||||
pids="$pids $!"
|
||||
|
||||
@@ -221,6 +227,13 @@ EOF
|
||||
-o /bananarchy/prebuilt/sxmo-x11/usr/lib/dwm/plugins/smallweb.so &
|
||||
pids="$pids $!"
|
||||
|
||||
WEBARCHY_INCS="$(pkgconf --cflags webkit2gtk-4.1 gtk+-3.0 wpe-1.0 wpebackend-fdo-1.0)"
|
||||
WEBARCHY_LIBS="$(pkgconf --libs webkit2gtk-4.1 gtk+-3.0 wpe-1.0 wpebackend-fdo-1.0)"
|
||||
$CXX $CXX_PLUG_FLAGS $PLUG_INCS $WEBARCHY_INCS \
|
||||
/bananarchy/src/dwm-plugins/webarchy_plugin.cpp $NEOUI_LIBS $PLUG_LIBS $WEBARCHY_LIBS \
|
||||
-o /bananarchy/prebuilt/sxmo-x11/usr/lib/dwm/plugins/webarchy.so &
|
||||
pids="$pids $!"
|
||||
|
||||
$CXX $CXX_PLUG_FLAGS $PLUG_INCS \
|
||||
/bananarchy/src/dwm-plugins/gps_plugin.cpp $NEOUI_LIBS $PLUG_LIBS $MEDIA_LIBS -lssl -lcrypto -lpthread \
|
||||
-o /bananarchy/prebuilt/sxmo-x11/usr/lib/dwm/plugins/gps.so &
|
||||
@@ -265,6 +278,7 @@ EOF
|
||||
/bananarchy/prebuilt/sxmo-x11/usr/lib/dwm/plugins/irc.so \
|
||||
/bananarchy/prebuilt/sxmo-x11/usr/lib/dwm/plugins/tox.so \
|
||||
/bananarchy/prebuilt/sxmo-x11/usr/lib/dwm/plugins/smallweb.so \
|
||||
/bananarchy/prebuilt/sxmo-x11/usr/lib/dwm/plugins/webarchy.so \
|
||||
/bananarchy/prebuilt/sxmo-x11/usr/lib/dwm/plugins/gps.so \
|
||||
/bananarchy/prebuilt/sxmo-x11/usr/lib/dwm/plugins/passcode.so \
|
||||
/bananarchy/prebuilt/sxmo-x11/usr/lib/dwm/plugins/engmenu.so
|
||||
@@ -324,6 +338,8 @@ EOF
|
||||
ln -sf dwm-plugin /bananarchy/prebuilt/sxmo-x11/usr/bin/xkopher
|
||||
ln -sf dwm-plugin /bananarchy/prebuilt/sxmo-x11/usr/bin/kopher
|
||||
ln -sf dwm-plugin /bananarchy/prebuilt/sxmo-x11/usr/bin/xsmallweb
|
||||
ln -sf dwm-plugin /bananarchy/prebuilt/sxmo-x11/usr/bin/xwebarchy
|
||||
ln -sf dwm-plugin /bananarchy/prebuilt/sxmo-x11/usr/bin/webarchy
|
||||
ln -sf dwm-plugin /bananarchy/prebuilt/sxmo-x11/usr/bin/xgps
|
||||
ln -sf dwm-plugin /bananarchy/prebuilt/sxmo-x11/usr/bin/xmaps
|
||||
ln -sf dwm-plugin /bananarchy/prebuilt/sxmo-x11/usr/bin/xnav
|
||||
|
||||
@@ -498,6 +498,7 @@ int callscreen_run_main(int argc, char** argv) {
|
||||
alsa.setInteger("ADC3 Volume", mute ? 0 : 8);
|
||||
alsa.setInteger("TX1 Digital Volume", mute ? 0 : 88);
|
||||
alsa.setBoolean("VoiceMMode1 Capture Mixer TERT_MI2S_TX", !mute);
|
||||
alsa.setBoolean("MultiMedia2 Mixer TERT_MI2S_TX", !mute);
|
||||
runAsyncCmd(mute ? "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 1 >/dev/null 2>&1"
|
||||
: "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ 0 >/dev/null 2>&1");
|
||||
statusNotice = mute ? "Microphone muted" : "Microphone unmuted";
|
||||
@@ -516,6 +517,9 @@ int callscreen_run_main(int argc, char** argv) {
|
||||
if (!voip) {
|
||||
alsa.setBoolean("PRI_MI2S_RX Voice Mixer VoiceMMode1", true);
|
||||
alsa.setBoolean("VoiceMMode1 Capture Mixer TERT_MI2S_TX", !micMuted);
|
||||
} else {
|
||||
alsa.setBoolean("PRI_MI2S_RX Audio Mixer MultiMedia1", true);
|
||||
alsa.setBoolean("MultiMedia2 Mixer TERT_MI2S_TX", !micMuted);
|
||||
}
|
||||
alsa.setEnum("CIC1 MUX", 0);
|
||||
if (!micMuted) {
|
||||
@@ -523,6 +527,10 @@ int callscreen_run_main(int argc, char** argv) {
|
||||
alsa.setInteger("ADC1 Volume", 8);
|
||||
alsa.setInteger("TX1 Digital Volume", 88);
|
||||
}
|
||||
auto setOutDevFile = [](const char* devName) {
|
||||
std::ofstream out("/tmp/sxmo_audio_out_device", std::ios::trunc);
|
||||
if (out.is_open()) out << devName << "\n";
|
||||
};
|
||||
if (toSpeaker) {
|
||||
alsa.setEnum("EAR_S", 0);
|
||||
alsa.setEnum("HPHL", 0);
|
||||
@@ -532,7 +540,7 @@ int callscreen_run_main(int argc, char** argv) {
|
||||
alsa.setBoolean("SPK DAC Switch", true);
|
||||
alsa.setEnum("RX3 MIX1 INP1", 3);
|
||||
alsa.setInteger("RX3 Digital Volume", hwVol);
|
||||
runAsyncCmd("sxmo_audio.sh device set Speaker >/dev/null 2>&1");
|
||||
setOutDevFile("Speaker");
|
||||
statusNotice = "Audio routed to Speaker";
|
||||
} else if (jackPlugged) {
|
||||
alsa.setBoolean("SPK DAC Switch", false);
|
||||
@@ -547,7 +555,7 @@ int callscreen_run_main(int argc, char** argv) {
|
||||
alsa.setBoolean("RX1 Mute Switch", false);
|
||||
alsa.setInteger("RX1 Digital Volume", hwVol);
|
||||
alsa.setInteger("RX2 Digital Volume", hwVol);
|
||||
runAsyncCmd("sxmo_audio.sh device set Headphones >/dev/null 2>&1");
|
||||
setOutDevFile("Headphones");
|
||||
statusNotice = "Audio routed to Headphones";
|
||||
} else {
|
||||
alsa.setBoolean("SPK DAC Switch", false);
|
||||
@@ -561,9 +569,11 @@ int callscreen_run_main(int argc, char** argv) {
|
||||
alsa.setEnum("EAR_S", 1);
|
||||
alsa.setBoolean("RX1 Mute Switch", false);
|
||||
alsa.setInteger("RX1 Digital Volume", hwVol);
|
||||
runAsyncCmd("sxmo_audio.sh device set Earpiece >/dev/null 2>&1");
|
||||
setOutDevFile("Earpiece");
|
||||
statusNotice = "Audio routed to Earpiece";
|
||||
}
|
||||
runAsyncCmd("PATH=\"$HOME/.config/sxmo/hooks:/usr/share/sxmo/default_hooks:$PATH\" "
|
||||
"sxmo_hook_statusbar.sh volume >/dev/null 2>&1");
|
||||
statusNoticeUntilMs = nowMs() + 2000;
|
||||
};
|
||||
|
||||
@@ -588,7 +598,7 @@ int callscreen_run_main(int argc, char** argv) {
|
||||
};
|
||||
|
||||
auto finishRecordingFile = [&]() {
|
||||
alsa.setBoolean("MultiMedia2 Mixer TERT_MI2S_TX", false);
|
||||
alsa.setBoolean("MultiMedia2 Mixer TERT_MI2S_TX", !micMuted);
|
||||
finalizeWavHeader(recordFilePath);
|
||||
struct stat st {};
|
||||
if (!recordFilePath.empty() && ::stat(recordFilePath.c_str(), &st) == 0 &&
|
||||
@@ -1726,11 +1736,12 @@ int callscreen_run_main(int argc, char** argv) {
|
||||
|
||||
auto parseSimTag = [&](const std::string& cidStr, const std::string& tagStr) {
|
||||
if (tagStr == "SIP" || tagStr.rfind("SIP:", 0) == 0 ||
|
||||
cidStr.rfind("sip:", 0) == 0) {
|
||||
tagStr.rfind("SIP/", 0) == 0 || cidStr.rfind("sip:", 0) == 0) {
|
||||
activeSimSlot = 3;
|
||||
if (tagStr.rfind("SIP:", 0) == 0 && tagStr.size() > 4) {
|
||||
sipZrtpSas = tagStr.substr(4);
|
||||
} else if (tagStr == "SIP") {
|
||||
size_t colonPos = tagStr.find(':');
|
||||
if (colonPos != std::string::npos && colonPos + 1 < tagStr.size()) {
|
||||
sipZrtpSas = tagStr.substr(colonPos + 1);
|
||||
} else if (tagStr == "SIP" || tagStr.rfind("SIP/", 0) == 0) {
|
||||
sipZrtpSas.clear();
|
||||
}
|
||||
return;
|
||||
|
||||
@@ -316,6 +316,9 @@ static const char *resolve_plugin_name_from_argv0(const char *argv0) {
|
||||
strcasecmp(base, "xsmallweb") == 0 || strcasecmp(base, "smallweb") == 0) {
|
||||
return "smallweb";
|
||||
}
|
||||
if (strcasecmp(base, "xwebarchy") == 0 || strcasecmp(base, "webarchy") == 0) {
|
||||
return "webarchy";
|
||||
}
|
||||
if (strcasecmp(base, "xgps") == 0 || strcasecmp(base, "xmaps") == 0 ||
|
||||
strcasecmp(base, "xnav") == 0 || strcasecmp(base, "gps") == 0) {
|
||||
return "gps";
|
||||
|
||||
+230
-35
@@ -247,6 +247,7 @@ int irc_run_main(int argc, char** argv) {
|
||||
if (s.realname.empty()) s.realname = s.nick;
|
||||
sendIrcRaw(srvIdx, "NICK " + s.nick);
|
||||
sendIrcRaw(srvIdx, "USER " + s.username + " 0 * :" + s.realname);
|
||||
activeBufIdx = stBuf;
|
||||
return true;
|
||||
};
|
||||
|
||||
@@ -399,6 +400,9 @@ int irc_run_main(int argc, char** argv) {
|
||||
if (cmd == "001") {
|
||||
srv.registered = true;
|
||||
srv.state = srv.useTls ? "ONLINE(TLS)" : "ONLINE";
|
||||
if (!params.empty() && !params[0].empty() && params[0] != "*") {
|
||||
srv.nick = params[0];
|
||||
}
|
||||
buffers[stBuf].append("*", trailing, false, true, serverTimeHHMM);
|
||||
if (!srv.autoJoin.empty()) {
|
||||
std::stringstream ss(srv.autoJoin);
|
||||
@@ -413,13 +417,54 @@ int irc_run_main(int argc, char** argv) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (cmd == "433") {
|
||||
// ERR_NICKNAMEINUSE: automatically pick an alternate nickname if registering
|
||||
buffers[stBuf].append("!", trailing.empty() ? "Nickname in use" : trailing,
|
||||
false, true, serverTimeHHMM);
|
||||
if (!srv.registered) {
|
||||
srv.nick += "_";
|
||||
sendIrcRaw(srvIdx, "NICK " + srv.nick);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (cmd == "nick") {
|
||||
std::string newNick = !trailing.empty() ? trailing : (params.empty() ? "" : params[0]);
|
||||
if (!newNick.empty()) {
|
||||
if (toLowerStr(senderNick) == toLowerStr(srv.nick)) {
|
||||
srv.nick = newNick;
|
||||
}
|
||||
buffers[stBuf].append("*", senderNick + " is now known as " + newNick,
|
||||
false, true, serverTimeHHMM);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (cmd == "470" && params.size() >= 3) {
|
||||
// Channel forward (e.g. #bananarchy -> ##bananarchy)
|
||||
std::string oldCh = toLowerStr(params[1]);
|
||||
std::string newCh = params[2];
|
||||
for (auto& b : buffers) {
|
||||
if (b.serverIdx == srvIdx && toLowerStr(b.name) == oldCh) {
|
||||
b.name = newCh;
|
||||
break;
|
||||
}
|
||||
}
|
||||
buffers[stBuf].append("*", params[1] + " forwarded to " + newCh,
|
||||
false, true, serverTimeHHMM);
|
||||
return;
|
||||
}
|
||||
|
||||
if (cmd == "join") {
|
||||
std::string chan = !trailing.empty() ? trailing : (params.empty() ? "" : params[0]);
|
||||
if (!chan.empty()) {
|
||||
int bIdx = findOrCreateBuffer(srvIdx, chan);
|
||||
buffers[bIdx].append("*", senderNick + " joined " + chan, false, true, serverTimeHHMM);
|
||||
if (toLowerStr(senderNick) == toLowerStr(srv.nick)) {
|
||||
if (toLowerStr(senderNick) == toLowerStr(srv.nick) || !srv.registered) {
|
||||
activeBufIdx = bIdx;
|
||||
if (activeTab == 1) {
|
||||
selectedRow = bIdx;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
@@ -470,11 +515,73 @@ int irc_run_main(int argc, char** argv) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (cmd == "353" && params.size() >= 3) {
|
||||
int bIdx = findOrCreateBuffer(srvIdx, params[2]);
|
||||
buffers[bIdx].append("*", "Users: " + trailing, false, true, serverTimeHHMM);
|
||||
return;
|
||||
}
|
||||
|
||||
if (cmd == "366") {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!trailing.empty()) {
|
||||
buffers[stBuf].append(senderNick, trailing, false, true, serverTimeHHMM);
|
||||
}
|
||||
};
|
||||
|
||||
auto closeBufferAt = [&](int targetIdx, const std::string& partReason = "") {
|
||||
if (buffers.empty()) return;
|
||||
targetIdx = std::clamp(targetIdx, 0, static_cast<int>(buffers.size()) - 1);
|
||||
int srvIdx = buffers[targetIdx].serverIdx;
|
||||
std::string bName = buffers[targetIdx].name;
|
||||
|
||||
if (bName == "*status*") {
|
||||
// Never erase a server's *status* buffer; clear its scrollback instead
|
||||
buffers[targetIdx].lines.clear();
|
||||
buffers[targetIdx].unreadCount = 0;
|
||||
buffers[targetIdx].hasHighlight = false;
|
||||
buffers[targetIdx].append("*", "Status buffer cleared", false, true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!bName.empty() && (bName[0] == '#' || bName[0] == '&')) {
|
||||
sendIrcRaw(srvIdx, "PART " + bName + (partReason.empty() ? "" : (" :" + partReason)));
|
||||
}
|
||||
|
||||
if (buffers.size() <= 1) {
|
||||
buffers[targetIdx].name = "*status*";
|
||||
buffers[targetIdx].lines.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
buffers.erase(buffers.begin() + targetIdx);
|
||||
|
||||
if (activeBufIdx == targetIdx) {
|
||||
int fallback = -1;
|
||||
for (int i = std::min(targetIdx, static_cast<int>(buffers.size()) - 1); i >= 0; --i) {
|
||||
if (buffers[i].serverIdx == srvIdx) {
|
||||
fallback = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (fallback < 0) {
|
||||
for (size_t i = 0; i < buffers.size(); ++i) {
|
||||
if (buffers[i].serverIdx == srvIdx) {
|
||||
fallback = static_cast<int>(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
activeBufIdx = (fallback >= 0)
|
||||
? fallback
|
||||
: std::clamp(targetIdx - 1, 0, static_cast<int>(buffers.size()) - 1);
|
||||
} else if (activeBufIdx > targetIdx) {
|
||||
--activeBufIdx;
|
||||
}
|
||||
selectedRow = std::clamp(selectedRow, 0, static_cast<int>(buffers.size()) - 1);
|
||||
};
|
||||
|
||||
auto submitChatLine = [&]() {
|
||||
chatInput = neoui_input_get_text();
|
||||
std::string line = trimStr(chatInput);
|
||||
@@ -484,6 +591,15 @@ int irc_run_main(int argc, char** argv) {
|
||||
|
||||
activeBufIdx = std::clamp(activeBufIdx, 0, static_cast<int>(buffers.size()) - 1);
|
||||
int srvIdx = buffers[activeBufIdx].serverIdx;
|
||||
if ((!servers[srvIdx].net || !servers[srvIdx].net->isConnected()) &&
|
||||
buffers[activeBufIdx].name == "*status*") {
|
||||
for (size_t i = 0; i < servers.size(); ++i) {
|
||||
if (servers[i].net && servers[i].net->isConnected()) {
|
||||
srvIdx = static_cast<int>(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
auto& srv = servers[srvIdx];
|
||||
|
||||
if (line[0] == '/') {
|
||||
@@ -497,15 +613,28 @@ int irc_run_main(int argc, char** argv) {
|
||||
|
||||
if (low == "join" || low == "j") {
|
||||
if (!rest.empty()) {
|
||||
if (rest[0] != '#' && rest[0] != '&') rest = "#" + rest;
|
||||
sendIrcRaw(srvIdx, "JOIN " + rest);
|
||||
activeBufIdx = findOrCreateBuffer(srvIdx, rest);
|
||||
}
|
||||
} else if (low == "part" || low == "leave") {
|
||||
std::string ch = buffers[activeBufIdx].name;
|
||||
if (!ch.empty() && ch[0] == '#') {
|
||||
sendIrcRaw(srvIdx, "PART " + ch + (rest.empty() ? "" : (" :" + rest)));
|
||||
std::istringstream css(rest);
|
||||
std::string chTok;
|
||||
int lastJoined = -1;
|
||||
while (std::getline(css, chTok, ',')) {
|
||||
chTok = trimStr(chTok);
|
||||
if (chTok.empty()) continue;
|
||||
size_t sp = chTok.find(' ');
|
||||
std::string chName = (sp == std::string::npos) ? chTok : chTok.substr(0, sp);
|
||||
if (chName[0] != '#' && chName[0] != '&') chName = "#" + chName;
|
||||
lastJoined = findOrCreateBuffer(srvIdx, chName);
|
||||
if (!sendIrcRaw(srvIdx, "JOIN " + chTok)) {
|
||||
buffers[lastJoined].append("!", "Not connected (Servers -> Connect)", false, true);
|
||||
}
|
||||
}
|
||||
if (lastJoined >= 0) {
|
||||
activeBufIdx = lastJoined;
|
||||
chatScrollBack = 0;
|
||||
}
|
||||
}
|
||||
} else if (low == "part" || low == "leave" || low == "close") {
|
||||
closeBufferAt(activeBufIdx, rest);
|
||||
chatScrollBack = 0;
|
||||
} else if (low == "msg" || low == "query") {
|
||||
std::istringstream mss(rest);
|
||||
std::string target, text;
|
||||
@@ -547,11 +676,14 @@ int irc_run_main(int argc, char** argv) {
|
||||
|
||||
std::string target = buffers[activeBufIdx].name;
|
||||
if (target == "*status*") {
|
||||
sendIrcRaw(srvIdx, line);
|
||||
buffers[activeBufIdx].append(srv.nick, line, false, true);
|
||||
if (!sendIrcRaw(srvIdx, line)) {
|
||||
buffers[activeBufIdx].append("!", "Not connected (Servers -> Connect)", false, true);
|
||||
} else {
|
||||
buffers[activeBufIdx].append(srv.nick, line, false, true);
|
||||
}
|
||||
} else {
|
||||
if (!sendIrcRaw(srvIdx, "PRIVMSG " + target + " :" + line)) {
|
||||
buffers[activeBufIdx].append("!", "Not connected (Server -> Connect)", false, true);
|
||||
buffers[activeBufIdx].append("!", "Not connected (Servers -> Connect)", false, true);
|
||||
} else {
|
||||
buffers[activeBufIdx].append(srv.nick, line);
|
||||
}
|
||||
@@ -660,14 +792,19 @@ int irc_run_main(int argc, char** argv) {
|
||||
for (int i = 0; i < maxVis && (scrollOffset + i) < static_cast<int>(buffers.size()); ++i) {
|
||||
int idx = scrollOffset + i;
|
||||
const auto& b = buffers[idx];
|
||||
std::string srvLbl = servers[b.serverIdx].label;
|
||||
std::string badge = b.unreadCount > 0 ? ("+" + std::to_string(b.unreadCount)) : "";
|
||||
int bSrv = std::clamp(b.serverIdx, 0, static_cast<int>(servers.size()) - 1);
|
||||
std::string srvLbl = servers[bSrv].label + " (" + servers[bSrv].nick + ") [" +
|
||||
servers[bSrv].state + "]";
|
||||
std::string badge = b.unreadCount > 0 ? ("+" + std::to_string(b.unreadCount))
|
||||
: (idx == activeBufIdx ? "ACTIVE" : "");
|
||||
int col = b.hasHighlight ? NEO_TEXT_YELLOW
|
||||
: (idx == activeBufIdx ? NEO_TEXT_GREEN : NEO_TEXT_LIGHT);
|
||||
neoui_draw_list_row(idx, kBodyY + i * rowH, rowH, idx == selectedRow ? 1 : 0,
|
||||
kIconList, col, b.name.c_str(), srvLbl.c_str(),
|
||||
badge.c_str());
|
||||
}
|
||||
neoui_draw_scrollbar(236, kBodyY, kBodyH, static_cast<int>(buffers.size()),
|
||||
maxVis, scrollOffset);
|
||||
neoui_draw_softkeys("Menu", "OPEN", "Back");
|
||||
} else {
|
||||
int rowH = 42;
|
||||
@@ -684,6 +821,8 @@ int irc_run_main(int argc, char** argv) {
|
||||
kIconGlobe, col, s.label.c_str(), sub.c_str(),
|
||||
s.state.c_str());
|
||||
}
|
||||
neoui_draw_scrollbar(236, kBodyY, kBodyH, static_cast<int>(servers.size()),
|
||||
maxVis, scrollOffset);
|
||||
neoui_draw_softkeys("Menu", "CONN/DISC", "Back");
|
||||
}
|
||||
|
||||
@@ -850,7 +989,13 @@ int irc_run_main(int argc, char** argv) {
|
||||
else if (k == NEO_KEY_DOWN) menuSel = (menuSel + 1) % 5;
|
||||
else if (k == NEO_KEY_OK) {
|
||||
menuOpen = false;
|
||||
int srvIdx = buffers[activeBufIdx].serverIdx;
|
||||
int targetBufIdx = (activeTab == 1)
|
||||
? std::clamp(selectedRow, 0, static_cast<int>(buffers.size()) - 1)
|
||||
: std::clamp(activeBufIdx, 0, static_cast<int>(buffers.size()) - 1);
|
||||
int srvIdx = (activeTab == 2)
|
||||
? std::clamp(selectedRow, 0, static_cast<int>(servers.size()) - 1)
|
||||
: buffers[targetBufIdx].serverIdx;
|
||||
srvIdx = std::clamp(srvIdx, 0, static_cast<int>(servers.size()) - 1);
|
||||
if (menuSel == 0) {
|
||||
if (servers[srvIdx].net && servers[srvIdx].net->isConnected()) {
|
||||
disconnectServer(srvIdx);
|
||||
@@ -864,8 +1009,7 @@ int irc_run_main(int argc, char** argv) {
|
||||
editModalOpen = true;
|
||||
syncEditInput();
|
||||
} else if (menuSel == 2) {
|
||||
int idx = (activeTab == 2) ? selectedRow : srvIdx;
|
||||
idx = std::clamp(idx, 0, static_cast<int>(servers.size()) - 1);
|
||||
int idx = srvIdx;
|
||||
editSrvIdx = idx;
|
||||
editDraft.label = servers[idx].label;
|
||||
editDraft.host = servers[idx].host;
|
||||
@@ -881,13 +1025,23 @@ int irc_run_main(int argc, char** argv) {
|
||||
editModalOpen = true;
|
||||
syncEditInput();
|
||||
} else if (menuSel == 3) {
|
||||
if (!servers[srvIdx].net || !servers[srvIdx].net->isConnected()) {
|
||||
for (size_t i = 0; i < servers.size(); ++i) {
|
||||
if (servers[i].net && servers[i].net->isConnected()) {
|
||||
srvIdx = static_cast<int>(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
sendIrcRaw(srvIdx, "JOIN #bananarchy");
|
||||
activeBufIdx = findOrCreateBuffer(srvIdx, "#bananarchy");
|
||||
selectedRow = activeBufIdx;
|
||||
activeTab = 0;
|
||||
} else if (menuSel == 4 && buffers[activeBufIdx].name != "*status*" &&
|
||||
buffers.size() > 1) {
|
||||
buffers.erase(buffers.begin() + activeBufIdx);
|
||||
activeBufIdx = 0;
|
||||
chatScrollBack = 0;
|
||||
syncEditInput();
|
||||
} else if (menuSel == 4) {
|
||||
closeBufferAt(targetBufIdx);
|
||||
chatScrollBack = 0;
|
||||
}
|
||||
} else if (k == NEO_KEY_BACK || k == NEO_KEY_END) {
|
||||
menuOpen = false;
|
||||
@@ -934,16 +1088,33 @@ int irc_run_main(int argc, char** argv) {
|
||||
}
|
||||
render();
|
||||
} else {
|
||||
if (k == NEO_KEY_LEFT) {
|
||||
if (activeTab == 0 && k == NEO_KEY_RIGHT && neoui_input_is_tap_active()) {
|
||||
neoui_input_commit_tap();
|
||||
applyEditInput();
|
||||
} else if (k == NEO_KEY_LEFT) {
|
||||
applyEditInput();
|
||||
activeTab = (activeTab + 2) % 3;
|
||||
selectedRow = 0;
|
||||
if (activeTab == 1) {
|
||||
selectedRow = std::clamp(activeBufIdx, 0, static_cast<int>(buffers.size()) - 1);
|
||||
} else if (activeTab == 2) {
|
||||
int sIdx = buffers[std::clamp(activeBufIdx, 0, static_cast<int>(buffers.size()) - 1)].serverIdx;
|
||||
selectedRow = std::clamp(sIdx, 0, static_cast<int>(servers.size()) - 1);
|
||||
} else {
|
||||
selectedRow = 0;
|
||||
}
|
||||
scrollOffset = 0;
|
||||
syncEditInput();
|
||||
} else if (k == NEO_KEY_RIGHT) {
|
||||
applyEditInput();
|
||||
activeTab = (activeTab + 1) % 3;
|
||||
selectedRow = 0;
|
||||
if (activeTab == 1) {
|
||||
selectedRow = std::clamp(activeBufIdx, 0, static_cast<int>(buffers.size()) - 1);
|
||||
} else if (activeTab == 2) {
|
||||
int sIdx = buffers[std::clamp(activeBufIdx, 0, static_cast<int>(buffers.size()) - 1)].serverIdx;
|
||||
selectedRow = std::clamp(sIdx, 0, static_cast<int>(servers.size()) - 1);
|
||||
} else {
|
||||
selectedRow = 0;
|
||||
}
|
||||
scrollOffset = 0;
|
||||
syncEditInput();
|
||||
} else if (activeTab == 0) {
|
||||
@@ -952,7 +1123,7 @@ int irc_run_main(int argc, char** argv) {
|
||||
else if (k == NEO_KEY_OK || k == NEO_KEY_CALL) {
|
||||
submitChatLine();
|
||||
chatScrollBack = 0;
|
||||
} else if (k == NEO_KEY_STAR) {
|
||||
} else if (k == NEO_KEY_STAR || k == NEO_KEY_HASH) {
|
||||
neoui_input_cycle_mode();
|
||||
} else if (k == NEO_KEY_BACK) {
|
||||
if (!std::string(neoui_input_get_text()).empty()) {
|
||||
@@ -968,28 +1139,52 @@ int irc_run_main(int argc, char** argv) {
|
||||
} else if (k == NEO_KEY_END) {
|
||||
closeWindow();
|
||||
break;
|
||||
} else {
|
||||
int ks = neoui_event_keysym();
|
||||
if (ks >= 0x20 && ks <= 0x7e) {
|
||||
neoui_input_commit_tap();
|
||||
std::string cur = neoui_input_get_text();
|
||||
cur.push_back(static_cast<char>(ks));
|
||||
neoui_input_set_text(cur.c_str());
|
||||
applyEditInput();
|
||||
}
|
||||
}
|
||||
} else if (activeTab == 1) {
|
||||
if (k == NEO_KEY_UP && selectedRow > 0) --selectedRow;
|
||||
else if (k == NEO_KEY_DOWN) ++selectedRow;
|
||||
else if (k == NEO_KEY_OK) {
|
||||
activeBufIdx = std::clamp(selectedRow, 0,
|
||||
static_cast<int>(buffers.size()) - 1);
|
||||
int nBuf = static_cast<int>(buffers.size());
|
||||
if ((k == NEO_KEY_UP || k == NEO_KEY_2) && nBuf > 0) {
|
||||
selectedRow = (selectedRow + nBuf - 1) % nBuf;
|
||||
activeBufIdx = selectedRow;
|
||||
} else if ((k == NEO_KEY_DOWN || k == NEO_KEY_8) && nBuf > 0) {
|
||||
selectedRow = (selectedRow + 1) % nBuf;
|
||||
activeBufIdx = selectedRow;
|
||||
} else if (k == NEO_KEY_OK || k == NEO_KEY_5 || k == NEO_KEY_CALL) {
|
||||
activeBufIdx = std::clamp(selectedRow, 0, nBuf - 1);
|
||||
activeTab = 0;
|
||||
chatScrollBack = 0;
|
||||
syncEditInput();
|
||||
} else if (k == NEO_KEY_BACK) {
|
||||
closeBufferAt(selectedRow);
|
||||
chatScrollBack = 0;
|
||||
} else if (k == NEO_KEY_END) {
|
||||
closeWindow();
|
||||
break;
|
||||
}
|
||||
} else if (activeTab == 2) {
|
||||
if (k == NEO_KEY_UP && selectedRow > 0) --selectedRow;
|
||||
else if (k == NEO_KEY_DOWN) ++selectedRow;
|
||||
else if (k == NEO_KEY_OK) {
|
||||
int idx = std::clamp(selectedRow, 0,
|
||||
static_cast<int>(servers.size()) - 1);
|
||||
int nSrv = static_cast<int>(servers.size());
|
||||
if ((k == NEO_KEY_UP || k == NEO_KEY_2) && nSrv > 0) {
|
||||
selectedRow = (selectedRow + nSrv - 1) % nSrv;
|
||||
} else if ((k == NEO_KEY_DOWN || k == NEO_KEY_8) && nSrv > 0) {
|
||||
selectedRow = (selectedRow + 1) % nSrv;
|
||||
} else if (k == NEO_KEY_OK || k == NEO_KEY_5 || k == NEO_KEY_CALL) {
|
||||
int idx = std::clamp(selectedRow, 0, nSrv - 1);
|
||||
if (servers[idx].net && servers[idx].net->isConnected()) {
|
||||
disconnectServer(idx);
|
||||
} else {
|
||||
connectServer(idx);
|
||||
}
|
||||
} else if (k == NEO_KEY_END) {
|
||||
closeWindow();
|
||||
break;
|
||||
}
|
||||
}
|
||||
render();
|
||||
|
||||
@@ -97,6 +97,8 @@ constexpr const char* kIconBell = "\xef\x83\xb3"; // U+F0F3 bell / ringto
|
||||
constexpr const char* kIconBan = "\xef\x81\x9e"; // U+F05E ban / block
|
||||
constexpr const char* kIconShield = "\xef\x84\xb2"; // U+F132 shield / anti-spam
|
||||
constexpr const char* kIconGamepad = "\xef\x84\x9b"; // U+F11B gamepad / emulator
|
||||
constexpr const char* kIconStar = "\xef\x80\x85"; // U+F005 star / bookmark
|
||||
constexpr const char* kIconCircle = "\xef\x84\x8c"; // U+F10C empty circle slot
|
||||
|
||||
inline int64_t nowMs() {
|
||||
struct timespec ts {};
|
||||
@@ -1871,6 +1873,7 @@ inline void closeOtherPlugins(const char* selfPluginName) {
|
||||
{"xirc.pid", "irc"},
|
||||
{"xtox.pid", "tox"},
|
||||
{"xsmallweb.pid", "smallweb"},
|
||||
{"xwebarchy.pid", "webarchy"},
|
||||
{"xgps.pid", "gps"},
|
||||
{"xpasscode.pid", "passcode"},
|
||||
{"xengmenu.pid", "engmenu"},
|
||||
@@ -1915,6 +1918,7 @@ inline bool isAnotherPluginActive(const char* selfPluginName) {
|
||||
{"xirc.pid", "irc"},
|
||||
{"xtox.pid", "tox"},
|
||||
{"xsmallweb.pid", "smallweb"},
|
||||
{"xwebarchy.pid", "webarchy"},
|
||||
{"xgps.pid", "gps"},
|
||||
{"xpasscode.pid", "passcode"},
|
||||
{"xengmenu.pid", "engmenu"},
|
||||
@@ -1968,6 +1972,7 @@ inline void broadcastThemeReload(const char* selfPluginName = nullptr) {
|
||||
"irc",
|
||||
"tox",
|
||||
"smallweb",
|
||||
"webarchy",
|
||||
"gps",
|
||||
"passcode",
|
||||
"engmenu",
|
||||
|
||||
+1389
-134
File diff suppressed because it is too large.
Load diff
@@ -176,11 +176,17 @@ std::string getFriendPubKeyHex(Tox* tox, uint32_t friendNum) {
|
||||
|
||||
void startToxAvAudioPipes(ToxRuntimeContext* ctx) {
|
||||
std::lock_guard<std::mutex> lk(ctx->audioMtx);
|
||||
::system("amixer -c 0 cset \"name='PRI_MI2S_RX Audio Mixer MultiMedia1'\" 1 >/dev/null 2>&1; "
|
||||
"amixer -c 0 cset \"name='MultiMedia2 Mixer TERT_MI2S_TX'\" 1 >/dev/null 2>&1");
|
||||
if (!ctx->playPipe) {
|
||||
ctx->playPipe = ::popen("aplay -q -f S16_LE -r 48000 -c 1 -t raw 2>/dev/null", "w");
|
||||
ctx->playPipe = ::popen(
|
||||
"aplay -q --buffer-time=80000 --period-time=20000 -f S16_LE -r 48000 -c 1 -t raw 2>/dev/null",
|
||||
"w");
|
||||
}
|
||||
if (!ctx->capPipe) {
|
||||
ctx->capPipe = ::popen("arecord -q -f S16_LE -r 48000 -c 1 -t raw 2>/dev/null", "r");
|
||||
ctx->capPipe = ::popen(
|
||||
"arecord -q -D plughw:0,1 --buffer-time=80000 --period-time=20000 -f S16_LE -r 48000 -c 1 -t raw 2>/dev/null",
|
||||
"r");
|
||||
if (ctx->capPipe) {
|
||||
ctx->capFd = ::fileno(ctx->capPipe);
|
||||
int fl = ::fcntl(ctx->capFd, F_GETFL, 0);
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
+21
-16
@@ -1777,7 +1777,7 @@ int neoui_broadcast_theme_reload(const char* skip_plugin) {
|
||||
const char* kPlugins[] = {
|
||||
"dmenu", "locker", "xdrawer", "dialer", "calllog", "callscreen", "contacts",
|
||||
"sms", "files", "camera", "themes", "modem", "networks", "ringtones",
|
||||
"wallpapers", "music", "sip", "email", "irc", "tox", "smallweb", "gps",
|
||||
"wallpapers", "music", "sip", "email", "irc", "tox", "smallweb", "webarchy", "gps",
|
||||
"passcode", "engmenu"
|
||||
};
|
||||
std::string skip = (skip_plugin && skip_plugin[0]) ? skip_plugin : "";
|
||||
@@ -2526,7 +2526,11 @@ int neoui_draw_menu_popup(const char* pipe_items, const char* pipe_icons,
|
||||
int optCount = static_cast<int>(items.size());
|
||||
if (optCount <= 0) return 0;
|
||||
|
||||
int maxVis = (max_visible_rows > 0) ? max_visible_rows : 6;
|
||||
int winW = gCtx->w->width;
|
||||
int winH = gCtx->w->height;
|
||||
int rowH = 34;
|
||||
int maxFitRows = std::max(1, (winH - NEO_HEADER_H - NEO_SOFTBAR_H - 4) / rowH);
|
||||
int maxVis = std::min((max_visible_rows > 0) ? max_visible_rows : 6, maxFitRows);
|
||||
int visCount = std::min(optCount, maxVis);
|
||||
int optScroll = 0;
|
||||
if (selected_idx >= visCount) {
|
||||
@@ -2536,15 +2540,15 @@ int neoui_draw_menu_popup(const char* pipe_items, const char* pipe_icons,
|
||||
optScroll = std::max(0, optCount - visCount);
|
||||
}
|
||||
|
||||
int winW = gCtx->w->width;
|
||||
int winH = gCtx->w->height;
|
||||
int rowH = 34;
|
||||
int menuH = visCount * rowH + 4;
|
||||
int menuY = winH - NEO_SOFTBAR_H - menuH;
|
||||
int menuY = std::max(static_cast<int>(NEO_HEADER_H), winH - NEO_SOFTBAR_H - menuH);
|
||||
const auto& spec = gCtx->w->theme.spec;
|
||||
|
||||
neoui_fill_rect(8, menuY, winW - 16, menuH, spec.bgFooter);
|
||||
neoui_draw_rect(8, menuY, winW - 16, menuH, spec.selBg);
|
||||
neoui_fill_rect(6, menuY, winW - 12, menuH, spec.bgFooter);
|
||||
neoui_draw_rect(6, menuY, winW - 12, menuH, spec.selBg);
|
||||
|
||||
bool hasScroll = (optCount > visCount);
|
||||
int rowW = hasScroll ? (winW - 24) : (winW - 16);
|
||||
|
||||
for (int i = 0; i < visCount; ++i) {
|
||||
int idx = optScroll + i;
|
||||
@@ -2552,22 +2556,23 @@ int neoui_draw_menu_popup(const char* pipe_items, const char* pipe_icons,
|
||||
int ry = menuY + 2 + i * rowH;
|
||||
bool isSel = (idx == selected_idx);
|
||||
if (isSel) {
|
||||
neoui_fill_rect(10, ry, winW - 20, rowH, spec.selBg);
|
||||
neoui_fill_rect(10, ry, 4, rowH, spec.accent);
|
||||
neoui_fill_rect(8, ry, rowW, rowH, spec.selBg);
|
||||
neoui_fill_rect(8, ry, 4, rowH, spec.accent);
|
||||
}
|
||||
int tx = 16;
|
||||
int tx = 14;
|
||||
if (idx < static_cast<int>(icons.size()) && !icons[idx].empty()) {
|
||||
const char* ic = neoui_icon(icons[idx].c_str());
|
||||
neoui_draw_text(NEO_FONT_ICON, isSel ? NEO_TEXT_YELLOW : NEO_TEXT_GREEN,
|
||||
18, ry, rowH, ic, -1);
|
||||
tx = 42;
|
||||
16, ry, rowH, ic, -1);
|
||||
tx = 38;
|
||||
}
|
||||
int textMaxW = hasScroll ? (winW - tx - 14) : (winW - tx - 10);
|
||||
neoui_draw_text(NEO_FONT_MAIN, isSel ? NEO_TEXT_WHITE : NEO_TEXT_LIGHT, tx,
|
||||
ry, rowH, items[idx].c_str(), winW - tx - 16);
|
||||
ry, rowH, items[idx].c_str(), textMaxW);
|
||||
}
|
||||
|
||||
if (optCount > visCount) {
|
||||
neoui_draw_scrollbar(winW - 12, menuY + 2, menuH - 4, optCount, visCount,
|
||||
if (hasScroll) {
|
||||
neoui_draw_scrollbar(winW - 11, menuY + 2, menuH - 4, optCount, visCount,
|
||||
optScroll);
|
||||
}
|
||||
return 1;
|
||||
|
||||
@@ -2455,6 +2455,9 @@ open_builtin_menu(const char *menu_name, int keep_idx)
|
||||
add_menu_item(label, "@plugin:tox", 0);
|
||||
}
|
||||
|
||||
snprintf(label, sizeof(label), "%s Webarchy Browser", ICON_GLB);
|
||||
add_menu_item(label, "@plugin:webarchy", 0);
|
||||
|
||||
snprintf(label, sizeof(label), "%s Kopher (SmallWeb)", ICON_GLB);
|
||||
add_menu_item(label, "@plugin:smallweb", 0);
|
||||
|
||||
@@ -2535,6 +2538,9 @@ open_builtin_menu(const char *menu_name, int keep_idx)
|
||||
snprintf(label, sizeof(label), "%s Tox Messenger", ICON_MSG);
|
||||
add_menu_item(label, "@plugin:tox", 0);
|
||||
}
|
||||
snprintf(label, sizeof(label), "%s Webarchy Browser", ICON_GLB);
|
||||
add_menu_item(label, "@plugin:webarchy", 0);
|
||||
|
||||
snprintf(label, sizeof(label), "%s Kopher (SmallWeb)", ICON_GLB);
|
||||
add_menu_item(label, "@plugin:smallweb", 0);
|
||||
snprintf(label, sizeof(label), "%s GPS & Maps", ICON_MAP);
|
||||
@@ -2957,6 +2963,7 @@ any_other_plugin_active(void)
|
||||
"xirc.pid",
|
||||
"xtox.pid",
|
||||
"xsmallweb.pid",
|
||||
"xwebarchy.pid",
|
||||
"xgps.pid",
|
||||
"xpasscode.pid",
|
||||
"xengmenu.pid",
|
||||
@@ -3009,6 +3016,7 @@ close_other_active_plugins(void)
|
||||
{ "xirc.pid", "/tmp/dwm_plugin_irc.fifo" },
|
||||
{ "xtox.pid", "/tmp/dwm_plugin_tox.fifo" },
|
||||
{ "xsmallweb.pid", "/tmp/dwm_plugin_smallweb.fifo" },
|
||||
{ "xwebarchy.pid", "/tmp/dwm_plugin_webarchy.fifo" },
|
||||
{ "xgps.pid", "/tmp/dwm_plugin_gps.fifo" },
|
||||
{ "xpasscode.pid", "/tmp/dwm_plugin_passcode.fifo" },
|
||||
{ "xengmenu.pid", "/tmp/dwm_plugin_engmenu.fifo" },
|
||||
|
||||
@@ -1036,7 +1036,7 @@ static int xdrawer_run_main(int argc, char** argv) {
|
||||
"xcontacts.pid", "xsms.pid", "xfiles.pid", "xcamera.pid",
|
||||
"xthemes.pid", "xmodem.pid", "xnetworks.pid", "xringtones.pid",
|
||||
"xwallpapers.pid", "xmusic.pid", "xsip.pid", "xemail.pid",
|
||||
"xirc.pid", "xtox.pid", "xsmallweb.pid", "xgps.pid",
|
||||
"xirc.pid", "xtox.pid", "xsmallweb.pid", "xwebarchy.pid", "xgps.pid",
|
||||
};
|
||||
for (const char* pf : kPids) {
|
||||
int p = readIntFile(getRuntimeFile(pf), -1);
|
||||
@@ -1073,6 +1073,7 @@ static int xdrawer_run_main(int argc, char** argv) {
|
||||
closeOtherPlugin("xirc.pid", "/tmp/dwm_plugin_irc.fifo");
|
||||
closeOtherPlugin("xtox.pid", "/tmp/dwm_plugin_tox.fifo");
|
||||
closeOtherPlugin("xsmallweb.pid", "/tmp/dwm_plugin_smallweb.fifo");
|
||||
closeOtherPlugin("xwebarchy.pid", "/tmp/dwm_plugin_webarchy.fifo");
|
||||
closeOtherPlugin("xgps.pid", "/tmp/dwm_plugin_gps.fifo");
|
||||
if (::access("/tmp/dwm_plugin_dmenu.active", F_OK) == 0) {
|
||||
int dfd = ::open("/tmp/dwm_plugin_dmenu.fifo", O_WRONLY | O_NONBLOCK | O_CLOEXEC);
|
||||
|
||||
Reference in new issue
Block a user