feat: add i3-style session-specific autostart support and documentation
This commit is contained in:
1 parent
f73040a0be
commit
8d6236a63f
13 files changed
+1156
-8
No files matched your search
@@ -27,11 +27,13 @@ ANODE is a lightweight, keyboard-first, cross-Unix X11 desktop environment for *
|
||||
- `anode-powerd`: Idle dim / lock / suspend policy daemon (`XScreenSaverQueryInfo` when available).
|
||||
- **gtkTtk 0.9 port**:
|
||||
- Native GTK2-backed Ttk/Tkinter widget theme with full `[0.5, 4.0]` fractional DPI scaling and BSD library paths.
|
||||
- **Session-specific autostart**:
|
||||
- `anode-autostart`: i3-style `exec`, `exec_once`, `exec_always`, `--no-startup-id`, and `include` directives, per-profile `autostart.<profile>` files, `autostart.d/` drop-ins, and `ANODE`-filtered XDG `.desktop` entries wired into `anode-session` and DWM reload/restart.
|
||||
|
||||
## Dependencies
|
||||
|
||||
- **Build-time**: POSIX `make`, C11/C99 compiler (`cc`), `pkg-config`, X11 development headers (`x11`, `xext`, `xft`, `xinerama`, `xrandr`, `xfixes`, `xi`, `xtst`, optionally `xscrnsaver`), `fontconfig`, `freetype2`, `harfbuzz`, `cairo`, `pango`, `pangoxft`, `pangocairo`, and `libcrypt` (`-lcrypt` where separate). Optional for `gtkTtk`: C++ compiler, `gtk+-2.0`, `tcl`, `tk`, and Tk private `ttkTheme.h`.
|
||||
- **Runtime (optional tools auto-detected)**: `xrdb`, `xrandr`, `xsettingsd`, `dunst`, `notify-send`, `scrot`/`import`/`maim`, `wpctl`/`pactl`/`amixer`/`sndioctl`, `nmcli`/`wpa_cli`, `bluetoothctl`, `playerctl`/`mpc`, `chronyc`, `doas`/`sudo`/`pkexec`, and **Fira Code** + **DejaVuSansM Nerd Font**.
|
||||
- **Runtime (optional tools auto-detected)**: `xrdb`, `xprop`, `xrandr`, `xsettingsd`, `dunst`, `notify-send`, `scrot`/`import`/`maim`, `wpctl`/`pactl`/`amixer`/`sndioctl`, `nmcli`/`wpa_cli`, `bluetoothctl`, `playerctl`/`mpc`, `chronyc`, `doas`/`sudo`/`pkexec`, and **Fira Code** + **DejaVuSansM Nerd Font**.
|
||||
|
||||
## Build & install
|
||||
|
||||
@@ -44,10 +46,15 @@ make PREFIX=/opt/anode CC=clang WITH_GTKTTK=1
|
||||
make DESTDIR=/tmp/stage PREFIX=/usr/local install
|
||||
```
|
||||
|
||||
Start ANODE from `.xinitrc` (`exec /usr/local/bin/anode-session`) or via a display manager selecting the installed `ANODE` XSession (`PREFIX/share/xsessions/anode.desktop`).
|
||||
Start ANODE from `.xinitrc` (`exec /usr/local/bin/anode-session`) or via a display manager selecting the installed `ANODE` XSession (`PREFIX/share/xsessions/anode.desktop`). Passing `--profile NAME` (or setting `ANODE_SESSION_PROFILE`) selects a session profile for autostart.
|
||||
|
||||
## Session autostart
|
||||
|
||||
`anode-session` invokes `anode-autostart start` once DWM advertises `_NET_SUPPORTING_WM_CHECK`, seeding `~/.config/anode/autostart` from `PREFIX/share/anode/autostart` on first launch. Supported directives follow i3 conventions (`exec`, `exec_once`, `exec_always`, `--no-startup-id`, `include`), alongside per-profile files (`~/.config/anode/autostart.<profile>`), drop-in scripts or `.desktop` entries in `~/.config/anode/autostart.d/`, and `ANODE`-filtered XDG autostart entries. Pressing `Mod4 + Shift + r` or sending `SIGHUP` to DWM reloads `.Xresources`/theme/DPI and triggers `anode-autostart reload` (re-running `exec_always` entries). See [docs/AUTOSTART.md](docs/AUTOSTART.md) for full directive, profile, and XDG precedence details.
|
||||
|
||||
## Documentation & tests
|
||||
|
||||
- [Session autostart](docs/AUTOSTART.md)
|
||||
- [Architecture](docs/ARCHITECTURE.md)
|
||||
- [Keybindings](docs/KEYBINDINGS.md)
|
||||
|
||||
|
||||
Reference in new issue
Block a user