Package release ZIPs, streamline docs, and backport X11 DPMS/lock fixes
- Streamline README, INSTALL, MANUAL, ARCHITECTURE, and POWER-OPTIMIZATION docs - Add release ZIP packager (package-image.sh, scripts/package-release-zip.py, rebuild-image.sh --package) with sanitized rootfs, SHA256SUMS, and FLASH-INSTRUCTIONS.txt - Add automatic offline MT6797 firmware ext4 injection in flash-mtk.py and scripts/extract-vendor-fw.py - Backport X11 DPMS wake + XResetScreenSaver in geminux-powerd and _GEMINUX_LOCK_READY + grab-first sync in geminux-lock, rebuild aarch64 prebuilts, and expand tests
This commit is contained in:
1 parent
5472d4273a
commit
180d0a91e6
18 files changed
+1242
-480
No files matched your search
@@ -1,210 +1,124 @@
|
||||
# User manual
|
||||
|
||||
This manual covers keyboard bindings, DWM controls, touch gestures, themes, desktop wallpapers, built-in applications, and Alpine Edge package maintenance on Geminux.
|
||||
Daily usage reference for the Geminux desktop on the Planet Computers Gemini PDA (x27): keyboard layout, DWM window management, gestures, themes, wallpapers, applications, and safe Alpine Edge package updates.
|
||||
|
||||
## Gemini PDA US keyboard and XKB layout
|
||||
## Keyboard and XKB layout
|
||||
|
||||
Geminux installs a custom XKB layout (`planet_vndr/geminux`, variant `us`) alongside a matching Linux console keymap (`etc/keymap/gemini-us.map`):
|
||||
Geminux installs custom XKB (`planet_vndr/geminux`, `us`) and Linux console (`etc/keymap/gemini-us.map`) keymaps:
|
||||
|
||||
| Key combination | Mapping / Action |
|
||||
| --- | --- |
|
||||
| `Fn + 1` .. `Fn + 0` | `F1` .. `F10` |
|
||||
| `Fn + Z` / `Fn + X` | `F11` / `F12` (`Shift + Fn + Z/X` produces `«` / `»`) |
|
||||
| `Fn + Alt` | `Super_L` (`Mod4`, primary DWM modifier) |
|
||||
| `Fn + F` (`XF86UWB` / `XF86RFKill`) | Toggle hardware Airplane Mode (`geminux-media-key airplane`), displaying a Dunst OSD toast and `AIRPLANE` in the DWM bar |
|
||||
| **Planet key** | `Mod4` / launcher trigger (also acts as a clean one-shot `Mod4` tap-latch in DWM for single-handed operation) |
|
||||
| **Media & special keys** | Backlight (`XF86MonBrightnessUp`/`Down`), volume & mic mute (`wpctl`), playback (`XF86AudioPlay`/`Pause`/`Prev`/`Next`/`Stop` -> `mpv` IPC `/tmp/geminux-mpv.sock`), `XF86WLAN` (`geminux-net`), `XF86Tools` (`geminux-control`), `XF86Option` (`geminux-audio`), and `XF86Sleep` (suspend), with immediate `geminux-statusd` `SIGUSR1` bar refresh |
|
||||
| `Print` / `Shift+Print` / `Ctrl+Print` | Capture full screen (`screenshot`) or active window (`screenshot-window`) |
|
||||
| `Fn + Z` / `Fn + X` | `F11` / `F12` (`Shift + Fn + Z/X`: `«` / `»`) |
|
||||
| `Fn + Alt` | `Super_L` (`Mod4`, main window-manager modifier) |
|
||||
| **Planet key** | `Mod4` / `geminux-launcher` trigger (supports single-handed one-shot `Mod4` tap-latch in DWM) |
|
||||
| `Fn + F` | Toggle hardware Airplane Mode (`geminux-media-key airplane`) + Dunst OSD + `AIRPLANE` status tag |
|
||||
| **Media & HW keys** | Brightness (`XF86MonBrightness*`), `wpctl` volume/mic mute, `mpv` IPC playback (`/tmp/geminux-mpv.sock`), `XF86WLAN` (`geminux-net`), `XF86Tools` (`geminux-control`), `XF86Option` (`geminux-audio`), `XF86Sleep` (suspend) |
|
||||
| `Print` / `Shift+Print` / `Ctrl+Print` | Capture full screen or active window screenshot |
|
||||
|
||||
## DWM window manager shortcuts
|
||||
|
||||
Defined in [src/dwm/config.def.h](src/dwm/config.def.h), where `MODKEY` is `Mod4` (`Fn + Alt`):
|
||||
Defined in [src/dwm/config.def.h](src/dwm/config.def.h) (`MODKEY = Mod4`, i.e., `Fn + Alt`):
|
||||
|
||||
| Shortcut | Action |
|
||||
| --- | --- |
|
||||
| `Mod4 + Return` | Open `st` terminal (with Fira Code HarfBuzz ligatures) |
|
||||
| `Mod4 + Shift + Return` | Promote focused window to master (`zoom`) |
|
||||
| `Mod4 + Space` / `Mod4 + p` | Open `geminux-launcher` (`dmenu` with Nerd Font icons, pinned apps, `Wallpaper`, `Webarchy Browser`, `Bantam AI agent`, and `Lynx Web Browser` in `st`) |
|
||||
| `Mod4 + c` | Open `geminux-control` (backlight, volume, power profiles, LEDs, suspend) |
|
||||
| `Mod4 + a` | Open `geminux-audio` |
|
||||
| `Mod4 + d` | Open `geminux-dialer` |
|
||||
| `Mod4 + s` | Open `geminux-sms` |
|
||||
| `Mod4 + n` | Open `geminux-net` |
|
||||
| `Mod4 + v` | Open `geminux-camera` |
|
||||
| `Mod4 + t` | Open `geminux-themes` (`Themes & Editor` / `Wallpaper`) |
|
||||
| `Mod4 + Shift + l` | Lock screen (`geminux-lock`) |
|
||||
| `Mod4 + Shift + r` | Reload `~/.Xresources` and active desktop theme live |
|
||||
| `Mod4 + b` | Toggle top DWM bar |
|
||||
| `Mod4 + Shift + Space` | Toggle floating mode on focused window |
|
||||
| `Mod4 + j` / `k` (or `Down` / `Up`) | Focus next / previous window in stack |
|
||||
| `Mod4 + h` / `l` | Adjust master split ratio (`Mod4 + i` / `o` adjusts master count) |
|
||||
| `Mod4 + F1` .. `F4` | Switch layout: `Tile`, `Monocle`, `Floating`, `Grid` (`Mod4 + m` Monocle, `Mod4 + g` Grid) |
|
||||
| `Mod4 + 1` .. `5` | Switch workspace tags (`Mod4 + Shift + 1..5` moves focused window to tag) |
|
||||
| `Mod4 + Shift + c` / `Mod4 + Shift + q` | Close focused window (`Mod4 + Ctrl + Shift + q` quits DWM) |
|
||||
| `Mod4 + Return` / `Mod4 + Shift + Return` | Open `st` terminal / promote window to master (`zoom`) |
|
||||
| `Mod4 + Space` / `Mod4 + p` | Open `geminux-launcher` (`dmenu` with pinned GUI apps, `Wallpaper`, `Webarchy`, `Bantam`, `Lynx`) |
|
||||
| `Mod4 + c` / `a` / `n` / `t` | Open `geminux-control` / `geminux-audio` / `geminux-net` / `geminux-themes` |
|
||||
| `Mod4 + d` / `s` / `v` | Open `geminux-dialer` / `geminux-sms` / `geminux-camera` |
|
||||
| `Mod4 + Shift + l` / `Mod4 + Shift + r` | Lock screen (`geminux-lock`) / reload `~/.Xresources` & theme live |
|
||||
| `Mod4 + b` / `Mod4 + Shift + Space` | Toggle top bar / toggle floating mode |
|
||||
| `Mod4 + j` / `k` (or `Down` / `Up`) | Focus next / previous window |
|
||||
| `Mod4 + h` / `l` (`Mod4 + i` / `o`) | Adjust master split ratio (increment/decrement master count) |
|
||||
| `Mod4 + F1` .. `F4` (`m`, `g`) | Switch layout: `Tile`, `Monocle`, `Floating`, `Grid` |
|
||||
| `Mod4 + 1..5` (`Shift + 1..5`) | View workspace tag (move window to tag) |
|
||||
| `Mod4 + Shift + c` / `q` (`Ctrl+Shift+q`) | Close focused window (quit DWM) |
|
||||
|
||||
Touchscreen input works directly across XLibre (`libinput`), DWM tag/layout/close buttons (top bar height `>= 78 px`), full-height `dmenu` menus (`82 px` touch rows), `st`, and all 11 `libgemui` apps (configured at `192 DPI` / `2x` scaling, `Xcursor.size: 64`).
|
||||
Touch input works natively across XLibre (`libinput`), DWM bar controls (`>= 78 px`), `dmenu` touch rows (`82 px`), `st`, and all 11 HiDPI (`192 DPI` / `2x`, `Xcursor.size: 64`) applications.
|
||||
|
||||
### Touchscreen multi-touch gestures
|
||||
|
||||
`geminux-touchd` intercepts raw XInput 2.2 touch events on the root window to provide right-click, middle-click, and two-finger scrolling without interfering with normal 1-finger taps or drags:
|
||||
### Multi-touch gestures (`geminux-touchd`)
|
||||
|
||||
| Gesture | X11 action | Notes |
|
||||
| --- | --- | --- |
|
||||
| 1-finger tap or drag | Left-click (`Button1`) / drag | Native passthrough for taps, text selection, sliders, and `Mod4 + drag` window move |
|
||||
| 2-finger tap | Right-click (`Button3`) | Context menus without moving the cursor first |
|
||||
| 1-finger stationary hold (`0.5 s`) | Right-click (`Button3`) | Single-handed right-click alternative |
|
||||
| 3-finger tap | Middle-click (`Button2`) | Pastes X11 primary selection in `st` and opens links/tabs in browsers |
|
||||
| 2-finger drag | Scroll wheel (`Button4`–`Button7`) | Natural vertical and horizontal scroll across X11 apps and `st` scrollback (`GEMINUX_NATURAL_SCROLL=0` restores classic scroll direction) |
|
||||
| 1-finger tap / drag | Left-click (`Button1`) / drag | Standard tap, text selection, sliders, `Mod4 + drag` move |
|
||||
| 2-finger tap / 1-finger hold (`0.5 s`) | Right-click (`Button3`) | Context menus without moving cursor first |
|
||||
| 3-finger tap | Middle-click (`Button2`) | Paste X11 primary selection in `st` or open tabs/links |
|
||||
| 2-finger drag | Scroll (`Button4`–`Button7`) | Vertical & horizontal natural scroll (`GEMINUX_NATURAL_SCROLL=0` reverses) |
|
||||
|
||||
## Unified theming, Theme Editor, and `.xth` importer
|
||||
## Unified themes, Theme Editor, and `.xth` importer
|
||||
|
||||
Geminux ships **22** unified `.xth` color themes under `~/.xthemes/` (copied from `/etc/skel/.xthemes/`, with new system `.xth` files merged non-destructively at login by `geminux-session`). The default desktop theme is **Anodized** (obsidian `#08090b`, brushed silver `#cfd6e0`, brass-amber `#e2bc72` highlight).
|
||||
Geminux includes **22** built-in `.xth` themes in `~/.xthemes/` (new `/etc/skel/.xthemes/*.xth` files sync non-destructively at login), defaulting to **Anodized** (obsidian `#08090b`, brushed silver `#cfd6e0`, brass-amber `#e2bc72`). Custom and imported themes live under `~/.config/geminux/themes/` and override built-in names.
|
||||
|
||||
User-created, edited, and imported themes are stored in `~/.config/geminux/themes/` and take priority over built-in themes with the same name.
|
||||
|
||||
### Interactive Theme Editor & Importer
|
||||
|
||||
Open **Themes** via `Mod4 + t` or `geminux-launcher` (`Geminux Themes & Wallpaper` -> `Themes & Editor` tab):
|
||||
|
||||
- **Browse & Apply**: Preview built-in and user themes live and apply across the desktop.
|
||||
- **Create & Edit**: Use **Edit**, **Duplicate**, **New**, and **Reset** / **Delete** across four property tabs (**General & Fonts**, **UI Colors**, **WM & Menu**, **Terminal**) with RGB sliders, `#RRGGBB` hex inputs, clipboard paste, a live preview panel, and automatic WCAG contrast ratio checks against `bgMain`.
|
||||
- **Import `.xth`**: Use **Import .xth** to browse `.xth` files, preview their palette, and install them into `~/.config/geminux/themes/` (auto-sync toggle applies changes immediately).
|
||||
|
||||
### Theme CLI commands
|
||||
|
||||
```sh
|
||||
geminux-apply-theme # list available themes
|
||||
geminux-apply-theme TokyoNight # switch active theme
|
||||
geminux-apply-theme --install ~/MyTheme.xth [Name] # import & apply custom .xth
|
||||
geminux-themes --install ~/MyTheme.xth [Name] # equivalent CLI via geminux-themes
|
||||
```
|
||||
|
||||
### Synchronized toolkits
|
||||
|
||||
Switching or applying a theme updates every layer consistently:
|
||||
|
||||
| Layer / Toolkit | Update mechanism |
|
||||
| --- | --- |
|
||||
| **X11 resources & clients** | Copies `.xth` to `~/.Xresources` and replaces X11 resources cleanly via `xrdb -nocpp -load`; live `dwm`, `st`, `webarchy`, and `libgemui` clients redraw immediately via `XA_RESOURCE_MANAGER` / `SIGUSR1` |
|
||||
| **Dunst OSD** | Translates `theme.*` keys into `~/.config/dunst/dunstrc` via `geminux-sync-dunst-theme` and restarts `dunst` |
|
||||
| **GTK2 / GTK3 / `xsettingsd`** | `geminux-sync-gtk-theme` builds light- or dark-adapted `Geminux-<Theme>` assets under `~/.themes/` / `~/.local/share/themes/`, updates `~/.gtkrc-2.0`, `~/.config/gtk-3.0/{settings.ini,gtk.css}`, and `~/.config/xsettingsd/xsettingsd.conf`, and sends `SIGHUP` to `xsettingsd` |
|
||||
| **GTK4 & `libadwaita`** | Updates `~/.config/gtk-4.0/{settings.ini,gtk.css}` (`@define-color` and `:root` tokens) plus `dconf`-backed `gsettings` `color-scheme`, bound via `ADW_DISABLE_PORTAL=1` |
|
||||
| **Qt5 & Qt6** | Writes `~/.config/qt6ct/{qt6ct.conf,colors/Geminux-<Theme>.conf}` (21-role `QPalette`, `QT_QPA_PLATFORMTHEME=qt6ct:gtk3`) and Kvantum config (`~/.config/Kvantum/Geminux/Geminux.kvconfig` for `QT_STYLE_OVERRIDE=kvantum`) |
|
||||
| **Tcl/Tk (`gtkTtk 0.9`)** | Sets `*TkTheme: gtkTtk` and DPI-scaled GTK2 metrics (`192 DPI` / `2x`); `gtkTtk` reloads automatically on `XA_RESOURCE_MANAGER` updates |
|
||||
| **Wallpaper matte** | When `USE_THEME_BG=1` is enabled in `~/.config/geminux/wallpaper.conf`, `geminux-apply-theme` re-renders the active wallpaper against the new theme background |
|
||||
- **Interactive GUI** (`Mod4 + t` -> `Themes & Editor` tab): Browse/apply palettes; use **Edit**, **Duplicate**, **New**, and **Reset**/**Delete** across four tabs (`General & Fonts`, `UI Colors`, `WM & Menu`, `Terminal`) with RGB sliders, `#RRGGBB` paste, live preview, and WCAG contrast readouts; or **Import .xth** files directly.
|
||||
- **CLI usage**:
|
||||
```sh
|
||||
geminux-apply-theme # list themes
|
||||
geminux-apply-theme TokyoNight # switch theme live
|
||||
geminux-apply-theme --install ~/MyTheme.xth [Name] # install & apply .xth
|
||||
geminux-themes --install ~/MyTheme.xth [Name] # install via geminux-themes
|
||||
```
|
||||
- **Synced targets**: Updates `~/.Xresources` (`xrdb -nocpp -load`), Dunst (`~/.config/dunst/dunstrc`), GTK2/GTK3/GTK4/`libadwaita`, `xsettingsd`, Qt5/Qt6 (`qt6ct` & Kvantum), Tk/Ttk (`gtkTtk`), live X11 apps (`dwm`, `st`, `webarchy`, `libgemui`), and wallpaper matte colors when `USE_THEME_BG=1`.
|
||||
|
||||
## Desktop wallpaper management
|
||||
|
||||
Open the **Wallpaper** tab directly via `geminux-themes --wallpaper`, the **Wallpaper** entry in `geminux-launcher`, or press `Tab` inside `geminux-themes` to switch between **Themes & Editor** and **Wallpaper**.
|
||||
Open the **Wallpaper** view via `geminux-themes --wallpaper`, **Wallpaper** in `geminux-launcher`, or pressing `Tab` inside `geminux-themes`.
|
||||
|
||||
### GUI modes and controls
|
||||
|
||||
Geminux bundles `geminux-dark.png` (configured as the default wallpaper on first boot) and `geminux-light.png` under `/usr/share/geminux/wallpapers/`.
|
||||
|
||||
- **Image Wallpaper**: Browse quickly via **Stock** (`/usr/share/geminux/wallpapers`), **Home**, **Pictures**, **SD Card** (`/media/sdcard`), or **/** (`All` toggle reveals non-image files), type or paste paths (or pass short names like `geminux-apply-wallpaper geminux-light`), preview layout with a simulated DWM top bar, choose among six scaling modes (**Fill**, **Fit**, **Center**, **Tile**, **Stretch**, **Span**), and set a matte color matching the active theme or a custom `#RRGGBB`.
|
||||
- **Solid Color**: Pick **Match Active Theme Background**, dial custom RGB sliders, paste hex codes, or choose quick theme and dark swatches.
|
||||
|
||||
### CLI & automatic restore
|
||||
|
||||
Settings persist in `~/.config/geminux/wallpaper.conf` and automatically re-apply at session startup (`geminux-session`), on theme changes when `USE_THEME_BG=1` (`geminux-apply-theme`), and after external HDMI `xrandr` layout changes (`geminux-net`).
|
||||
|
||||
```sh
|
||||
geminux-apply-wallpaper --restore
|
||||
geminux-apply-wallpaper ~/Pictures/photo.jpg --mode fill --bg theme
|
||||
geminux-apply-wallpaper --solid '#101318'
|
||||
geminux-apply-wallpaper --theme-bg
|
||||
```
|
||||
|
||||
Pass `--no-save` to preview or set a wallpaper temporarily without modifying `~/.config/geminux/wallpaper.conf`.
|
||||
- **Bundled artwork & quick folders**: Ships `geminux-dark.png` (first-boot default) and `geminux-light.png` under `/usr/share/geminux/wallpapers/`. Use quick buttons (**Stock**, **Home**, **Pictures**, **SD Card** `/media/sdcard`, **/**, plus **All** file filter) or type/paste paths.
|
||||
- **Modes & Solid colors**: Supports **Fill**, **Fit**, **Center**, **Tile**, **Stretch**, and **Span** with theme-matched or custom `#RRGGBB` matte colors, plus pure **Solid Color** mode with RGB sliders and theme/dark swatches.
|
||||
- **Persistence & CLI**: Saves to `~/.config/geminux/wallpaper.conf` (seeded cleanly on first session launch) and auto-restores across login (`geminux-session`), theme switches (`USE_THEME_BG=1`), and external HDMI layout changes (`geminux-net`):
|
||||
```sh
|
||||
geminux-apply-wallpaper --restore
|
||||
geminux-apply-wallpaper geminux-light --mode fill --bg theme
|
||||
geminux-apply-wallpaper ~/Pictures/photo.jpg --mode fit --no-save
|
||||
geminux-apply-wallpaper --solid '#101318'
|
||||
geminux-apply-wallpaper --theme-bg
|
||||
```
|
||||
|
||||
## Applications and daemons
|
||||
|
||||
### Webarchy Browser (`webarchy` / `xwebarchy`)
|
||||
|
||||
Ultrawide `2160x1080` `GTK3` + `WebKit2GTK` browser built for landscape PDA use:
|
||||
Ultrawide `2160x1080` `GTK3` + `WebKit2GTK` browser with collapsible right vertical tabs (`Ctrl+B` / `Alt+T`), omnibar search, SQLite cookies/bookmarks (`~/.config/geminux/webarchy/`, `~/.local/share/geminux/webarchy/`), Dark Mode inverter (`Ctrl+Shift+D`), Reader Width Fit, `SIGUSR1` live theming, and automatic software fallback on crash (`--software`).
|
||||
|
||||
- **Interface**: Collapsible right-side vertical tab bar (`Tabs` button or `Ctrl+B` / `Alt+T`), unified omnibar (URL + DuckDuckGo search), persistent SQLite cookies and bookmarks (`~/.config/geminux/webarchy/`, `~/.local/share/geminux/webarchy/`), User-Agent presets, Dark Mode inverter (`Ctrl+Shift+D`), Reader Width Fit, Find in Page (`Ctrl+F`), and single-instance CLI URL forwarding.
|
||||
- **Resilience & theming**: Live `.Xresources` reloading via `SIGUSR1` and automatic software rendering fallback on WebProcess crash (`--software` or `~/.config/geminux/webarchy/software_renderer`).
|
||||
- **Shortcuts**: `Ctrl+T` new tab, `Ctrl+W` close tab, `Ctrl+Shift+T` reopen closed tab, `Ctrl+Tab` / `Alt+Up`/`Down` / `Alt+1..9` switch tabs, `Ctrl+L` / `F6` focus URL bar, `Alt+Left` / `Alt+Right` history back/forward, `Ctrl+D` bookmark, `Ctrl++` / `-` / `0` zoom, `F11` fullscreen.
|
||||
**Shortcuts**: `Ctrl+T` new tab, `Ctrl+W` close, `Ctrl+Shift+T` reopen, `Ctrl+Tab` / `Alt+Up`/`Down` / `Alt+1..9` switch tab, `Ctrl+L` / `F6` URL bar, `Alt+Left`/`Right` back/forward, `Ctrl+F` find, `Ctrl+D` bookmark, `Ctrl++`/`-`/`0` zoom, `F11` fullscreen.
|
||||
|
||||
### Telephony, eSIM & IMS
|
||||
|
||||
`geminux-dialer`, `geminux-callscreen`, `geminux-sms`, and `geminux-contacts` sit on top of `geminux-modem-ctl`, `geminux-ccci-daemon`, `geminux-cellctl`, and `geminux-imsd` (using ALSA UCM2 `VoiceCall`/`HiFi` switching and call suspend inhibitors). `geminux-imsd` supports 3GPP VoLTE over `ccmni*`, VoWiFi (`SWu` via `strongswan`), and SMS-over-IMS with automatic CS fallback.
|
||||
|
||||
Manage SIM slots, cellular data, and ST33 eUICC profiles from `geminux-net` or CLI:
|
||||
`geminux-dialer`, `geminux-callscreen`, `geminux-sms`, and `geminux-contacts` work with `geminux-modem-ctl`, `geminux-ccci-daemon`, `geminux-cellctl`, and `geminux-imsd` (3GPP VoLTE over `ccmni*`, VoWiFi `SWu`, SMS-over-IMS with CS fallback, ALSA `VoiceCall` switching, call suspend inhibitors).
|
||||
|
||||
```sh
|
||||
doas geminux-cellctl status
|
||||
doas geminux-cellctl sim-slot <esim|physical>
|
||||
doas geminux-cellctl apn-set <apn>
|
||||
doas geminux-cellctl apn-set <apn> && doas geminux-cellctl data-up [apn]
|
||||
doas geminux-cellctl ims-set <on|off>
|
||||
doas geminux-cellctl data-up [apn]
|
||||
doas geminux-cellctl data-down
|
||||
|
||||
# ST33 eUICC (lpac) management
|
||||
doas geminux-cellctl esim-info
|
||||
doas geminux-cellctl esim-list
|
||||
# ST33 eUICC (lpac)
|
||||
doas geminux-cellctl esim-info | esim-list
|
||||
doas geminux-cellctl esim-download 'LPA:1$smdp$matchingId' [confirm-code]
|
||||
doas geminux-cellctl esim-enable <#idx|iccid>
|
||||
doas geminux-cellctl esim-disable <#idx|iccid>
|
||||
doas geminux-cellctl esim-delete <#idx|iccid>
|
||||
doas geminux-cellctl esim-notif-process
|
||||
doas geminux-cellctl esim-enable <#idx|iccid> # or esim-disable / esim-delete / esim-notif-process
|
||||
```
|
||||
|
||||
### Connectivity, DNS & Airplane Mode
|
||||
### Connectivity, Airplane Mode, Media & System Apps
|
||||
|
||||
`geminux-net` unifies:
|
||||
|
||||
- **Wi-Fi**: Managed via `nmcli` with the active WLAN pinned first alongside a **Disconnect** control.
|
||||
- **Cellular & eSIM**: Live MD1/CCCI, ModemManager, and ST33 eSIM controls (`geminux-cellctl` + `/run/geminux/ccci.sock`).
|
||||
- **Bluetooth & HDMI**: `bluetoothctl`/`rfkill` toggles and `SiI9024` external HDMI layout extend/mirror (`xrandr`, automatically restoring wallpaper geometry on change).
|
||||
- **DNS tab**: Powered by `geminux-dnsctl` with Router Default, Cloudflare, Google, RadicalDNS, Quad9, custom IPv4/IPv6 nameservers, and live resolution checks.
|
||||
- **Hardware Airplane Mode**: Toggled via `Fn + F`, `geminux-control`, `geminux-net`, or `doas geminux-power-ctl airplane on|off|toggle|status`. Persists across reboots by unloading CONSYS Wi-Fi/BT kernel modules and placing MD1 into `AT+CFUN=4` flight mode while keeping USB NCM (`usb0`) active.
|
||||
|
||||
### Audio, Date/Time & Camera
|
||||
|
||||
- **`geminux-audio`**: Manages PipeWire sink/source routing, mute state, and per-stream volumes via `wpctl`/`pactl`.
|
||||
- **`geminux-datetime`**: Configures the system timezone (`geminux-tzctl`) and monitors Chrony NTP synchronization.
|
||||
- **`geminux-camera`**: Drives the MT6797 Media Controller pipeline (`ov5670`/`s5k4e6` -> `seninf` -> `camsv`), captures 10-bit Bayer (`SBGGR10`/`SGRBG10`) frames over V4L2 `mmap` with a pure-C demosaic + AWB software ISP, and saves `libjpeg-turbo` stills to `~/Pictures/` and MJPEG-AVI videos to `~/Videos/`.
|
||||
|
||||
### System Control, LEDs, Lock & Power
|
||||
|
||||
- **`geminux-control`**: Adjusts display brightness, PipeWire volume, MT6797X power profile (`eco`, `balanced`, `performance`), hardware Airplane Mode, and back LED presets.
|
||||
- **`geminux-leds`**: Controls the AW9120 RGB bar (`rgb:indicator-1..5` off by default when idle/full; `rgb:indicator-6` amber while charging) over `/run/geminux/leds.sock`, with presets (`rgb 160 16 0` "Amber Warn") and persistent manual overrides across battery uevents.
|
||||
- **`geminux-lock`**: Locks X11 cleanly via `doas -n /usr/sbin/geminux-checkpw`, dynamically resolving the desktop user from UID `10000` (`--username` supported).
|
||||
- **`geminux-powerd`**: Runs input-driven screensaver and lid policy (`epoll` zero-poll):
|
||||
- On **USB/AC** (`inhibit_ac_lid`), closing the lid or idling locks X11 and blanks the backlight without unloading CONSYS or invoking `/sys/power/state`.
|
||||
- On **battery**, closing the lid or reaching idle suspend enters `mem` sleep when MD1 is gated, or zero-thrash `low_power_standby` when MD1 is powered (never `freeze`/`s2idle`).
|
||||
- Wakes only on `closed -> open` lid transitions, real input (`keyboard`/`touch`/`pointer`/`mtk-pmic-keys` Esc), or USB/AC attach; internal timer wakes during open-lid idle lock re-suspend quietly without reloading CONSYS or turning on the backlight.
|
||||
- **`geminux-net`**: Wi-Fi (`nmcli`, active WLAN pinned top + Disconnect), Cellular/eSIM, Bluetooth (`bluetoothctl`/`rfkill`), `SiI9024` HDMI (`xrandr`), and **DNS** tab (`geminux-dnsctl`: router/Cloudflare/Google/RadicalDNS/Quad9/custom + lookup test).
|
||||
- **Hardware Airplane Mode**: `Fn + F`, `geminux-control`, `geminux-net`, or `doas geminux-power-ctl airplane on|off|toggle|status` unloads CONSYS Wi-Fi/BT modules and sets MD1 to `AT+CFUN=4` across reboots while leaving `usb0` up.
|
||||
- **`geminux-audio`, `geminux-datetime`, `geminux-camera`**: PipeWire routing/volumes (`wpctl`), Chrony NTP + timezone (`geminux-tzctl`), and V4L2 10-bit Bayer ISP camera saving JPEG stills (`~/Pictures/`) and MJPEG-AVI (`~/Videos/`).
|
||||
- **`geminux-control`, `geminux-leds`, `geminux-lock`**: Brightness, volume, CPU profiles (`eco`, `balanced`, `performance`), AW9120 RGB LEDs (`/run/geminux/leds.sock`, off idle/full, amber charging LED, manual presets), and `doas` lockscreen.
|
||||
|
||||
### microSD Card Automount (`/media/sdcard`)
|
||||
|
||||
`geminux-sdcard` (OpenRC) and `eudev` (`95-geminux-sdcard.rules` -> `/usr/sbin/geminux-sdcard-mount`) automatically check (`fsck.fat -a`, `fsck.exfat -p`, `e2fsck -p`) and mount `/dev/mmcblk1p1` or unpartitioned `/dev/mmcblk1` at `/media/sdcard`, unmounting cleanly on removal or shutdown. Desktop users (`UID 10000`, `plugdev` `GID 106`) get full read/write permissions across `vfat`, `exfat`, and `ext4`/`ext3`/`ext2`.
|
||||
`geminux-sdcard` (OpenRC) and `eudev` auto-check and mount `/dev/mmcblk1p1` (or unpartitioned `/dev/mmcblk1`) on boot/hotplug with full desktop read/write permissions (`UID 10000`, `plugdev` `GID 106`) for `vfat`, `exfat`, and `ext4`/`ext3`/`ext2`, unmounting cleanly on removal. Manage manually via `geminux-sdcard-mount status|remove|add` and `dosfstools` (`mkfs.vfat`, `fsck.vfat`, `fatlabel`).
|
||||
|
||||
```sh
|
||||
geminux-sdcard-mount status # inspect mount and card filesystem state
|
||||
geminux-sdcard-mount remove # flush and unmount before physical eject
|
||||
geminux-sdcard-mount add # manually mount (auto-escalates via doas)
|
||||
```
|
||||
### CLI tools
|
||||
|
||||
`dosfstools` (`mkfs.vfat`, `fsck.vfat`, `fatlabel`) is included in default `PATH` for FAT card maintenance.
|
||||
|
||||
### CLI Developer, Media & Security Tools
|
||||
|
||||
- **Media**: Native Alpine Edge `mpv` (`/etc/mpv/mpv.conf`: Panfrost X11 EGL, PipeWire, `/tmp/geminux-mpv.sock` media-key IPC), `ffmpeg`/`ffprobe`, `gst-libav`, `mpg123`, `openmpt123`, and `yt-dlp` (`yt-dlp-ejs-rt-quickjs`).
|
||||
- **Languages & Toolkits**: `python3` & `pip3` (`py3-pip`), `tcl` (`tclsh`, `tcl-lib`, `tcl-tls`), and `tk` (`wish` themed live via `gtkTtk 0.9`).
|
||||
- **AI, Web & Remote**: `bantam` (`geminux-bantam` C++20 CLI AI agent defaulting to `kilo-auto/free`; see [src/bantam/README.md](src/bantam/README.md)), `lynx` (`~/.lynx.cfg` with `http://frogfind.com` start page, UTF-8, vi keys, mouse, persistent cookies), `gsocket` (`gs-netcat`, `gs-key`, `gs-enter`, `gs-deploy-cmd`), `dtach` (`dmux`), and `ovault`.
|
||||
- **Security & Shell UX**: `gpg` (`gnupg` + `pinentry-curses` + `GPG_TTY`), `pass`, default `htop` layout (`/etc/htoprc`), `/etc/skel/.gitconfig`, and `/etc/skel/.apexrc` helpers (`EDITOR='nano -FEDSMAGic/max%_T2'`, `PAGER='less -RXF'`, `nn`, `pg`, `l`, `defalias`/`toalias`/`savealias`, `rw`/`ee`, `sshed`, `dl`, `gcm`/`gp`/`gpm`, `sloc`, and `doas`-aware `pkgadd`/`pkgdel`/`pkgsearch`/`sysup`/`sysclean`).
|
||||
Preinstalled: native `mpv` (`/etc/mpv/mpv.conf` + `/tmp/geminux-mpv.sock` IPC), `ffmpeg`/`ffprobe`, `gst-libav`, `mpg123`, `openmpt123`, `yt-dlp` (`quickjs`), `python3`/`pip3`, `tcl`/`tk` (`gtkTtk`), `gnupg` (`pinentry-curses`), `pass`, `bantam` (`kilo-auto/free` default; see [src/bantam/README.md](src/bantam/README.md)), `lynx` (`~/.lynx.cfg` -> `frogfind.com`), `gsocket`, `dtach`, `ovault`, `htop`, `.gitconfig`, and `/etc/skel/.apexrc` shell helpers (`nn`, `pg`, `l`, `rw`, `ee`, `pkgadd`/`sysup`, etc.).
|
||||
|
||||
## Maintaining Alpine Edge packages safely
|
||||
|
||||
`/etc/apk/repositories` points directly to Alpine Edge (`main`, `community`, `testing`) alongside the local signed `@geminux` repository (`/var/lib/geminux/apk-repo`):
|
||||
`/etc/apk/repositories` tracks pure Alpine Edge alongside the signed local `@geminux` repo (`/var/lib/geminux/apk-repo`):
|
||||
|
||||
```sh
|
||||
doas apk update
|
||||
doas apk upgrade
|
||||
doas apk update && doas apk upgrade
|
||||
```
|
||||
|
||||
All custom components (`geminux-kernel-modules`, `geminux-xlibre`, `geminux-suckless`, `geminux-dunst`, `geminux-ui`, `geminux-bantam`, `geminux-gsocket`, `geminux-gdk-pixbuf`, `geminux-webarchy`, `geminux-gtkttk`, `geminux-config`) are exact-version pinned (`name@geminux=version`) in `/etc/apk/world`. Disallowed Rust, Wayland, and upstream override packages (`!rust`, `!cargo`, `!libglycin`, `!gdk-pixbuf`, `!deno`, `!py3-cryptography`, `!xorg-server`, `!linux-edge`, etc., with `librsvg`, `rav1e`/`rav1e-libs`, and `libdovi` whitelisted) are negated in `/etc/apk/world`.
|
||||
|
||||
Standard `apk upgrade` safely updates upstream libraries, utilities, NetworkManager, ModemManager, PipeWire, and Mesa without overwriting patched binaries. On a Linux build host, run `./rebuild-image.sh --force-bootstrap` to refresh `rootfs/` packages when generating new images.
|
||||
All **11** custom `@geminux` packages are exact-version pinned (`name@geminux=version`) in `/etc/apk/world`, while disallowed Rust/Wayland/upstream overrides are blocked via `!` pins (`librsvg`, `rav1e`, `libdovi` whitelisted). Normal `apk upgrade` safely updates upstream libraries without touching patched Geminux binaries.
|
||||
Reference in new issue
Block a user