Files

126 lines
9.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# User manual
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.
## Keyboard and XKB layout
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`: `«` / `»`) |
| `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) (`MODKEY = Mod4`, i.e., `Fn + Alt`):
| Shortcut | Action |
| --- | --- |
| `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) |
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.
### Multi-touch gestures (`geminux-touchd`)
| Gesture | X11 action | Notes |
| --- | --- | --- |
| 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 themes, Theme Editor, and `.xth` importer
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.
- **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** view via `geminux-themes --wallpaper`, **Wallpaper** in `geminux-launcher`, or pressing `Tab` inside `geminux-themes`.
- **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 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`).
**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` 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 data-up [apn]
doas geminux-cellctl ims-set <on|off>
# 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> # or esim-disable / esim-delete / esim-notif-process
```
### Connectivity, Airplane Mode, Media & System Apps
- **`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` stops `modemmanager`/`bluetooth`, powers down `MD1` (`stage=0`), and unloads CONSYS Wi-Fi/BT modules across reboots while leaving `usb0` up.
- **Closed-lid standby**: Closing the lid on battery locks and blanks the screen (`DPMSModeOff`), unloads Wi-Fi/BT, powers down GPU rails (`rt5735_vgpu`/`MFGPLL`), and enters hardware `mem` suspend—keeping 4G calls and SMS wakeable when Airplane Mode is off (check live stats with `geminux-power-audit`; see [POWER-OPTIMIZATION.md](POWER-OPTIMIZATION.md)).
- **`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` 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`).
### CLI tools
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` tracks pure Alpine Edge alongside the signed local `@geminux` repo (`/var/lib/geminux/apk-repo`):
```sh
doas apk update && doas apk upgrade
```
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.