# ErdOS Settings

Open **Settings** from the desktop menu or press **Super + I**. Settings opens
on Appearance. Select a section in the sidebar to change its settings.

## Editing and feedback

Click a switch or its row to change it. When a page has pending edits,
**Undo changes** and **Apply** (or **Save** for Startup apps) appear at the
bottom of that page. Apply saves its pending edits. Undo discards them.
You can switch pages without losing your edits. Settings asks before closing
with unsaved changes. Immediate actions such as connecting Wi-Fi,
checking for updates and opening administrator setup remain separate buttons.

While applying, the current page is disabled; other pages remain available.
If an operation fails after earlier changes succeeded, Settings says so and keeps
the remaining edits pending for retry or Undo. Completed changes are not undone.
Power lid/charge controls and Language & region also use this Apply/Undo flow,
including when typing a language name. Failed or cancelled operations keep edits
pending. Successful terminal commands refresh saved values automatically; language
changes still require a new login and lid changes still require a restart.
Settings waits for an explicit completion result from the terminal command, even
when the terminal launcher detaches or reuses a window. A lost completion report
is not treated as success. The terminal can stay open to review its output after
the operation finishes. Temporary reports contain only a process ID and exit code,
are private to your account, and are removed after the operation.

Long explanations and uncommon options are expandable. No extra UI libraries,
fonts or background services are required.

A display trial has separate **Revert** and **Keep changes** buttons.
Closing during a trial requests rollback before closing. Error messages distinguish
a rejected mode from a successful restore, and the display list refreshes afterward.

| Section | Controls |
| --- | --- |
| Appearance | GTK 3, icon, and labwc themes, font, dark preference, accents, cursor theme/size, window-button position and optional minimize/maximize controls, desktop color and image backgrounds |
| Default apps | Terminal, browser, file manager and text editor |
| Touchpad | Natural scrolling, tapping, clickfinger right-click, pointer speed, disable while typing/on external mouse |
| Mouse | Pointer and scroll speed, acceleration, natural scrolling and left-handed buttons |
| Keyboard | Layouts, repeat on/off, speed/delay sliders, Caps Lock mapping, keyboard backlight where available, shortcuts and app/custom-command picker |
| Workspaces | Automatic/fixed workspace count and Super-key overview |
| Desktop menu | Add installed apps or custom commands; edit/reorder menu entries; enable three-finger and Super + right-click triggers |
| Startup apps | Add installed apps to start at login; advanced command editor with syntax checking and backup |
| Gestures | Swipe distance and configurable three/four-finger actions |
| Displays | Enable/disable outputs, resolution, refresh rate, scale, rotation and position with timed rollback, automatic extension and laptop brightness |
| Sound | PipeWire input/output devices, volume and mute |
| Network | Wi-Fi/internet state, saved profiles, PEAP enterprise Wi-Fi, IPv4 and DNS |
| Bluetooth | Scan, pair, connect/disconnect, trust and forget |
| Printing | Set up optional CUPS printing support in a terminal and open printer administration in your default browser |
| Power | Battery status, capacity, health and cycles, plus Sleep where available and lid-close behavior; optional hardware 80% charge limit |
| Date & time | Current time, time zone and automatic-time switch with synchronization status |
| Language & region | System language and regional formats; explicit restoration of selected-language Debian app translations |
| Software updates | Interactive APT update, upgrade, unused-package purge and cache cleaning |
| About | Software version, hardware summary and Copy system information |

## Default programs

The menu's Terminal, Web Browser, File Manager and Text Editor entries and their
keyboard shortcuts use your selected defaults. Initial apps are Sakura, Firefox,
PCManFM and Twig. Install alternatives, refresh the app list and apply a selection.
Browser, directory and text choices use desktop MIME associations; terminal
selection is per user, with the system terminal as fallback. Other file types
keep their associations. Existing open apps are unaffected.

## Printing

Choose **Set up…** to install and enable CUPS in the system terminal.
Setup adds your account to the `lpadmin` group and offers to log you out when
it finishes. After you sign back in, click **Manage…** to add
printers and manage jobs.

## Backgrounds and appearance

New profiles show only the close button on the left. Appearance → Window
controls offers Left/Right positioning and optional minimize/maximize buttons
for labwc and GTK apps that follow desktop decoration settings. Keyboard window
actions still work when their title-bar buttons are hidden. Existing user layouts are preserved until explicitly changed.
The regular Super+Tab switcher uses labwc’s compact classic list instead of thumbnails;
the overview uses its independent grid.

ErdOS starts with the bundled blue starfield wallpaper. Choose Image in
Settings to return to the bundled wallpaper after using a solid color.
Select a custom image and Fill, Fit, Center or Tile. ErdOS validates and copies
it into `~/.config/erdos/background-image`, so moving the original does not break
login. Remove image and Apply returns to the selected solid color and removes
only the private copy. Swaybg renders the background as a single process managed
by `erdos-background.service` in the user's systemd session. The Python launcher
executes swaybg rather than remaining resident. Backgrounds follow output changes.
**Prefer dark appearance** updates both GTK and the standard desktop portal
color-scheme preference. Firefox and supporting websites follow it when Firefox
uses its system theme/automatic website appearance. A browser theme or a site’s
own saved theme can override this preference; ErdOS does not forcibly recolor
websites. See [Firefox website appearance](https://support.mozilla.org/en-US/kb/change-website-appearance-settings-firefox)
for its browser-level options. Other GTK changes may require reopening an already running application. Windows and
menus use the supplied dark ErdOS theme by default.

**Application theme (GTK 3)** and **Application icon theme** set the widget
style and icons used by GTK 3 apps. The pickers show compatible themes already
installed on the system or for your user. **Window manager theme (labwc)** sets
the theme for window decorations and the desktop menu. Apply that choice to
reload labwc. An active custom desktop accent still sets the menu highlight.

**Use theme colors** keeps the default highlights. Turn it off to choose a custom
menu color. App color can follow the menu, use the app theme default, or use a
separate custom color. Existing separate colors are preserved. Reopen apps that
still show the old color; only supported apps honor these overrides.

**Cursor theme and size** use cursor themes already installed in the standard
XCursor paths. The compositor and GTK 3 settings are saved together, preserving
other appearance settings. Reopen apps that keep a previously loaded cursor.

For further customization, [labwc-tweaks](https://github.com/labwc/labwc-tweaks)
is the upstream graphical tool for labwc themes and compositor settings.
[nwg-look](https://github.com/nwg-piotr/nwg-look) provides additional GTK 3
appearance controls, including icon and cursor themes. Both are optional tools.

## Keyboard and workspaces

Choose a named keyboard layout in **Keyboard**. Expand **Additional keyboard
layouts** to add up to three more, then choose a switching shortcut. Variants
are listed by name; **Standard** uses the layout default.
**Mouse** controls non-touch pointing devices independently of **Touchpad**.
Use **Repeat held keys** to turn key repeat on or off. **Repeat speed** and
**Repeat delay** use Slow/Fast and Short/Long sliders. Set Caps Lock behavior separately
from layouts. Caps Lock can remain normal, swap with Esc, act as Ctrl/Esc or be
disabled. Other XKB options and shortcuts are preserved; custom mappings can be
left unchanged. Touchpad can disable input while typing or while an external
mouse is present, where supported by libinput. Neither needs a listener daemon.

Tap Super or swipe three fingers up to open the live window overview on the
display nearest the pointer. It shows windows across workspaces and outputs.
Click a preview or use the arrow keys and Enter to select a window. A white glow
marks the arrow-key selection. Tap Super again or swipe three fingers down to
close the overview. Super + Tab / Super + Shift + Tab cycles current-workspace
windows in the regular switcher.

The opening desktop frame is blurred once. Window previews update while the
overview is open. There are no launchers or status widgets in the overview.
Use the desktop menu for applications, the clock and battery information.

In **Settings → Workspaces**, choose automatic or fixed workspaces and whether
tapping Super opens the overview. Dynamic workspaces retain one empty workspace after the last occupied or current
workspace, including minimized windows. Empty gaps keep their numbers; only
unused trailing workspaces disappear. Sticky windows do not create extra spaces.
All monitors share the same workspace set. Disable dynamic mode to set a fixed
minimum; occupied/current workspaces are never removed to satisfy a smaller count.
This is event-driven inside the compositor, without a polling helper.

Super + Shift + O opens the **Workspaces** menu, also present in the root menu.
It lists workspaces and their windows. A separate graphical workspace overview is
not included. Four-finger up/down are disabled by default and remain configurable.

Window snapping uses labwc's native actions. Super + Left/Right snaps to halves;
Super + Up maximizes, and Super + Down unmaximizes/unsnaps to natural geometry.
Numpad snapping shortcuts remain available.

Built-in and custom shortcuts share one list. Select a shortcut and choose
**Edit**, or double-click it. **Add shortcut** lets you select an installed app
and enter a shortcut such as `Super + P`; choose **Custom command…** for a terminal
command instead. App shortcuts use desktop-entry IDs, so no Exec-field quoting is
needed. **Remove**
removes custom shortcuts. The page’s single Apply saves shortcuts together with
other pending Keyboard changes. Shortcuts display as
`Super + B`; enter alternatives separated by a comma or slash, such as
`Super + Enter, Ctrl + Alt + T`. Existing labwc syntax (`W-Return C-A-t`) is also
accepted. Case differences, keysym aliases and repeated modifiers cannot bypass
duplicate checking. Custom commands run as your normal
user when invoked. Duplicate shortcuts and empty commands are rejected. Use key
names such as `Return`, `1` or `F1`, not old X11 hexadecimal keycodes. Fn/media-key
mode remains a keyboard/firmware setting.

## Menu

The root menu uses small role icons. Settings sits between Text Editor and
Applications. Workspaces uses an overlapping-monitor icon. Every Applications
category has its own icon, including categories that appear as you install apps.
Application entries use each app’s desktop-entry icon, with a generic fallback.
Menu edits preserve existing icons; apps added with the picker receive their app icon.
Existing profiles gain missing role icons at login; customized icons, labels and
commands are preserved. Icons follow the native menu row size. No animation, extra icon theme, daemon or
runtime dependency is added.

The default menu places a **12-hour clock with the date** and **Battery: …%** after the app and
Settings entries, before Logout, Reboot and Power off. Clicking the clock opens
**Date & Time**; clicking the battery opens **Power**. An already-open Settings
window is reused. The clock uses local time, and the battery label includes
**Charging** when appropriate. Machines without a readable system battery omit
that row; mouse/keyboard peripheral batteries are excluded.

Values refresh each time the menu opens and remain unchanged while it stays
open. The menu helper formats the date when the menu opens. These are built-in rows
in the menu editor: they can be reordered or removed while their dynamic labels
and actions are preserved. The default XML marks them with
`erdos-status="clock"` and `erdos-status="battery"`; their commands are
`erdos-settings --time` and `erdos-settings --power`. Existing custom menu files
are not overwritten. Copy the root menu’s `execute` attribute and the marked items from the default
[`menu.xml`](../config/includes.chroot/etc/skel/.config/labwc/menu.xml) if migrating
an existing configuration. Old `~/.config/erdos/dock.ini` files are ignored.

Edit `~/.config/labwc/menu.xml` through this section. Add/delete/reorder entries
and dividers. **Add app** opens an installed-app picker; **Custom command…** keeps
manual commands available. Select an item and choose **Edit** to change its app or name.
Apply saves a `.previous` backup; Undo changes restores the page’s last saved values.
Built-in actions and nested menus are preserved. Applications reads installed
desktop entries on demand; new graphical apps appear automatically. CLI-only
programs require a desktop entry to appear there. Super + I remains available if
you remove the Settings menu entry.

**Open menu with a three-finger click** replaces touchpad middle-click when enabled.
Tapping needs tap-to-click; a physical three-finger click needs clickfinger
support. Disable it to restore middle-click. Mouse middle-click is preserved.
**Super + right-click opens menu anywhere** is independently configurable.
Desktop right-click, Super + Space and the Menu key remain available. Apply changes them immediately; newly connected touchpads inherit the settings.

## Startup apps

Choose an installed app, click **Add app**, then **Save**. The app starts at the
next login. Select an app in the list to remove it, then Save. Existing desktop
setup commands are preserved.

Expand **Advanced startup commands** to edit `~/.config/labwc/autostart` directly. Keep the ErdOS session setup commands.
Add one application per line with `&` so it does not block later commands.
Save checks shell syntax without executing commands and keeps
`autostart.previous`. Changes run at the next login. Reload asks before discarding
unsaved changes; conflicting external edits require a reload before saving.

The default startup file no longer runs `pcmanfm --daemon-mode &`. Launch the
file manager through the menu or Super + E when needed. USB mounting and SMB/SFTP
support remain installed; automatic mounting runs while PCManFM is open. Existing
custom startup files are preserved. To adopt this behavior on an older profile,
remove its `pcmanfm --daemon-mode &` line here and log out and back in.

## Gestures

A deliberate swipe triggers once when its distance and direction thresholds are
met, without waiting for finger release. Lower distance responds sooner but can
trigger accidentally. The compositor handles gestures directly; there is no raw
input listener, input-group membership, extra device ACL or gesture daemon.

| Gesture | Default |
| --- | --- |
| Three fingers up / down | Open / close the live window overview |
| Three fingers left / right | Previous / next window on current workspace |
| Four fingers left / right | Next workspace (right) / previous workspace (left) |
| Four fingers up / down | Disabled; configurable, including Workspaces menu |

Change actions in Gestures and Apply. Three-finger tap/click is configured in
Menu rather than the swipe list. Gestures are ignored while the compositor is
locked. Physical support depends on the touchpad; typical VMs expose only a mouse.

## Displays

Resolutions come from the Wayland output-management protocol through `wlr-randr`.
Enable or disable connected outputs; at least one must remain enabled.
Disabled outputs can be turned back on and their state is saved for that display
combination. Every change uses the same confirmation/rollback flow.
Set a higher scale to make text and windows larger while keeping the display
at its native resolution. Set the refresh rate and rotation for each active output. Use **Position** to
place a screen **Left**, **Right**, **Above** or **Below** the enabled screen chosen
in **Relative to**. The placement accounts for resolution, scaling and rotation;
screens align at their top or left edges. Leave one reference screen at
**Keep current / custom**; circular arrangements are rejected. **Custom screen
coordinates** retains exact horizontal/vertical positioning. Click **Test display
changes**, then **Keep changes** to save the layout. Positions use logical pixels and stay where you set them
when you edit scale. Confirm changes within 15 seconds. Timeout, Revert,
closing Settings, or a helper error restores the previous settings where
possible. Confirmed settings are reused for the same connected outputs even
when automatic extension is disabled.

Disable **Automatically arrange new screens** and click **Apply** to preserve
manual arrangements on new connections. This switch alone does not arrange the
current screens; use Position and Test display changes above. No additional
packages, libraries or background processes are required.

Automatic layout keeps the built-in laptop screen at the left and extends
external monitors to its right. Workspaces span all screens. Hotplug invokes a
one-shot layout helper. When automatic extension is disabled, connecting a
different combination of displays leaves the current layout in place.
Hardware backlight controls apply to the built-in panel.

## Network, Bluetooth and sound

NetworkManager provides current connection state and saved profiles. Wi-Fi
connection and internet reachability are shown separately. Network changes update
the visible controls via D-Bus events. Edit DHCP, a static IPv4 address,
the gateway, and IPv4 DNS on saved Wi-Fi and Ethernet profiles. Reconnect
to apply profile changes. Enterprise Wi-Fi supports PEAP with MSCHAPv2 and
requires a CA certificate and server domain. Enter the password again when
reconnecting to that profile. Other enterprise methods use `nmcli`.
Volume controls and media keys use
WirePlumber directly, so pulsemixer is not needed. Bluetooth uses BlueZ and its existing authorization agent;
Sound uses PipeWire/WirePlumber. Choosing an audio device loads its own volume
and mute state before Apply is available. **Refresh devices** picks up newly
connected devices without reopening Settings; apply or revert outstanding audio
edits first. Missing adapters/devices are reported rather than
shown as connected. These sections do not install device-specific drivers.

## Power and time

Power offers **Sleep now** when logind reports suspend is available. Hibernation
is not offered in Settings. **When the lid is closed** offers **System default**,
**Sleep** or **Do nothing**, independently for battery, plugged-in and docked/external
screen use. **Apply** opens the existing administrator-authenticated
terminal; restart the computer afterward. Settings does not restart logind during
an active session. Docked/external-screen behavior takes priority over plugged-in
and battery behavior, following logind's rules.

Only `/etc/systemd/logind.conf.d/90-erdos-lid.conf` is managed. Choosing System
default removes the corresponding ErdOS override, keeping other administrator
configuration intact; choosing it for all three removes this file. Later logind
rules can override these choices. No locker, idle listener or power daemon is
added. Debian's logind still handles lid closure, sleep keys and power-button presses.
There is no bundled screen locker, including on resume. Behavior depends on
hardware, docking and inhibitors. Closing the lid normally suspends except when
docked/using another display. See [Debian logind documentation](https://manpages.debian.org/trixie/systemd/logind.conf.5.en.html).

Date & Time shows the clock, a time-zone search/preview and synchronization
status. System-wide time changes use existing system authorization. Automatic
synchronization is enabled by default but requires connectivity. If APT reports
metadata/signatures are not valid yet, check the clock; signature validation is
never disabled to hide clock errors.

### Battery charge limit

On batteries exposing a writable kernel charge-threshold control, Power shows
**Limit charging to 80%**. Choose the setting and click **Apply**, then
enter your password in the terminal. Changes apply immediately, including on
battery power, and a short systemd one-shot restores the saved limit after boot
or battery insertion. No polling process, power-management package or new runtime
dependency is added. Unsupported batteries show no charge-limit controls.

The driver must accept 80% exactly; Settings checks the reported threshold and
reports failure rather than claiming a rounded/unsupported value worked. When
needed, a charging-start threshold is lowered to 75% so it remains below 80%.
Turning the option off restores both original thresholds, rather than overwriting
a previous custom limit with 100%. A battery already above 80% is not discharged
by enabling this option. After successful completion, Settings automatically
refreshes the saved preference and current hardware limit.

Preferences are stored per kernel battery name in `/etc/erdos/charge-limits.json`.
The packaged udev rule requests `erdos-charge-limit@.service` when a supported
battery appears; the service exits after applying the limit and does not remain
running. Resume resets are hardware-specific; this does not add a resume watcher.
Avoid running another charge-limit manager at the same time. The existing driver
must supply support; this feature does not install vendor-specific drivers.

## Software and About

Software opens the system terminal with one explicit command:

- Refresh package lists: `sudo apt-get update`.
- Upgrade packages: `sudo apt-get upgrade` (refresh lists first).
- Remove unused packages: `sudo apt-get autoremove --purge`, equivalent to APT's
  autopurge action. Review its package list before approving removals.
- Clear package cache: `sudo apt-get clean`. This removes downloaded package
  archives, not installed apps or repository indexes.

APT keeps its confirmation prompts; no unattended `-y` is used. The terminal
stays open after success, cancellation or failure so the result can be read.
No passwords are stored. These commands use configured signed repositories and
also update ErdOS components on package-managed installations. Log out after
desktop/compositor updates. They do not run automatically; see
[signed updates](https://erd.sh/updates.md) for legacy adoption.

About separates base-image identity from installed desktop package/source
versions, labwc/wlroots and Twig provenance. A running compositor digest that
differs from the installed one prompts logout/login. It also loads kernel,
architecture, CPU, model, RAM and root
filesystem usage on demand. **Copy system information** copies the displayed
report for troubleshooting. Hostnames, usernames, serials and network addresses
are omitted. Root filesystem usage is not the benchmark's installed-disk metric.

## Persistence and compatibility

User configuration lives in `~/.config/labwc` and `~/.config/erdos`. Changes persist
on installed systems; an ordinary nonpersistent live USB loses them at reboot.
GTK apps run natively on Wayland; XWayland supports older X11 applications. GTK
and wlroots portal backends provide file dialogs and screen-sharing integration.
No Qt desktop, panel or dock is installed.

## Language & Region

Choose **Language** and **Region** by name from the dropdown lists, or type a
language or country to search. Technical locale codes are kept out of the controls;
**English (international)** is the built-in English fallback. Then click
**Apply**. The administrator-authenticated terminal
creates the selected UTF-8 locales and saves system defaults. Log out completely
and sign back in; already-open apps keep their current environment. This applies
to all users; explicit personal locale overrides still take precedence. Keyboard
layouts and time zones are independent settings. The desktop-menu clock remains
12-hour.

Locale generation works offline with the definitions already included. The ISO
trims non-English application translations. After applying a language, use
**App translations and other options → Download app translations…** online to restore translations belonging
to installed Debian packages. The terminal refreshes signed APT indexes and lists
packages before asking for confirmation. It reinstalls whole packages, so download
sizes can exceed the added translation files. APT may update selected packages
and their dependencies to the available versions; review the proposal. Selected-language translations and
English fallback are retained on future package installations/updates. Switching
languages does not immediately delete translations previously restored.

ErdOS Settings/custom menu labels currently remain English. Firefox language packs
and additional fonts for some scripts are separate; this control does not promise
that every app is translated. No locale-all package, new daemon or extra GUI
library is required. Installation/setup errors remain visible in the terminal
and Settings reports failure or cancellation. Saved language/region values
refresh automatically after successful setup.

## Audio startup and metadata policy

New images start native PipeWire and WirePlumber normally. The PulseAudio
compatibility server starts through its existing socket on the first client,
rather than at every login; it may remain running afterward. The separate filter
chain daemon is skipped unless system or user filter configuration exists.
Custom filters in `/etc/pipewire` or your XDG configuration directory continue
to work. Custom `PIPEWIRE_CONFIG_DIR` paths require adapting the service's
conditions in a user override.

Existing installations can retain an old global login-start symlink after a
component update. An administrator can adopt the new Pulse startup policy with:

```sh
sudo systemctl --global disable pipewire-pulse.service
sudo systemctl --global enable pipewire-pulse.socket
```

Log out of all sessions and back in afterward. This does not stop audio in an
active session. The package's install override keeps future service enablement
socket-only; native PipeWire, WirePlumber and the Pulse protocol remain available.

APT skips translated repository descriptions to reduce downloads and stored
metadata. English descriptions remain in the normal package indexes. This does
not remove app translations or affect Language & region setup. To request
translated APT descriptions again, remove the `Acquire::Languages` setting in
`/etc/apt/apt.conf.d/80erdos-indexes` before refreshing package lists.

## Simpler desktop controls

In **Desktop menu**, **Add app** opens the installed-app picker. Leave Name empty
to use the app name, or enter a custom label. Choose **Custom command…** for a
command instead. Select an item and choose **Edit** to change it; **Up**/**Down**,
**Add divider** and **Delete** arrange the list. Click **Apply** to save. Commands
are edited in the dialog rather than shown in the main list.

Displays use the built-in screen label or monitor description as the heading, with
the connector name underneath. Timed display rollback is unchanged.

In **Date & time**, change **Automatic time** and click **Apply**. Synchronization
status refreshes after saving and periodically while this page is open. It can
take a little time to reach a time server after connecting to the internet.
