Skip to content

Commit ab8a402

Browse files
authored
fix docs and remote isntall script (#63)
Co-authored-by: sandwich <[email protected]>
1 parent 124f575 commit ab8a402

15 files changed

Lines changed: 80 additions & 138 deletions

File tree

README.md

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ You can also specify the location directly:
8080
### Other Methods
8181

8282
- **From release**: Download from [releases page](https://github.com/sandwichfarm/hyprlax/releases)
83-
- **Manual build**: See [installation guide](docs/installation.md)
83+
- **Manual build**: See [building from source](docs/development/building.md)
8484

8585
### Dependencies
8686

8787
#### Wayland
8888
- Wayland, wayland-protocols, Mesa (EGL/GLES)
8989

9090

91-
Full dependency list: [installation guide](docs/installation.md#dependencies)
91+
Full dependency list: [installation guide](docs/getting-started/installation.md#dependencies)
9292

9393
## Quick Start
9494

@@ -111,19 +111,20 @@ HYPRLAX_COMPOSITOR=sway hyprlax ~/Pictures/wallpaper.jpg
111111

112112
### Key Options
113113

114-
- `-s, --shift` - Pixels to shift per workspace (default: 200)
114+
- `-s, --shift` - Pixels to shift per workspace (default: 150)
115115
- `-d, --duration` - Animation duration in seconds (default: 1.0)
116116
- `-e, --easing` - Animation curve: linear, sine, expo, elastic, etc.
117+
- `--input` - Parallax inputs (e.g., `workspace,cursor:0.3`)
117118
- `-p, --platform` - Platform backend: `wayland` or `auto` (default: auto)
118119
- `-C, --compositor` - Compositor: `hyprland`, `sway`, `generic`, `auto` (default: auto)
119-
- `--layer` - Add layer: `image:shift:opacity[:easing[:delay[:duration[:blur]]]]`
120+
- `--layer` - Add layer: `image:shift:opacity[:blur]`
120121
- `--config` - Load from config file
121122

122-
**Full documentation:** [Configuration Guide](docs/configuration.md)
123+
**Full documentation:** [Configuration Overview](docs/configuration/README.md)
123124

124125
### Migrating from legacy .conf
125126

126-
Legacy runtime loading of `.conf` files has been removed. Convert once to TOML, then run with the new path:
127+
Legacy `.conf` files are deprecated. Convert once to TOML for full feature support and better validation:
127128

128129
```bash
129130
# Interactive (prompts):
@@ -132,8 +133,8 @@ hyprlax ctl convert-config ~/.config/hyprlax/parallax.conf ~/.config/hyprlax/hyp
132133
# Non-interactive:
133134
hyprlax ctl convert-config ~/.config/hyprlax/parallax.conf ~/.config/hyprlax/hyprlax.toml --yes
134135

135-
# If you start hyprlax with a legacy path, it prints the exact convert command
136-
hyprlax --non-interactive --config ~/.config/hyprlax/parallax.conf
136+
# If you start hyprlax with a legacy path, it will warn and print a suggested convert command
137+
hyprlax --config ~/.config/hyprlax/parallax.conf
137138
```
138139

139140
## Compositor Configuration
@@ -164,7 +165,7 @@ riverctl spawn "pkill hyprlax; hyprlax ~/Pictures/wallpaper.jpg"
164165

165166

166167
### Other Compositors
167-
See [Compositor Configuration Guide](docs/compositors.md) for specific setup instructions.
168+
See [Compatibility](docs/getting-started/compatibility.md) for specifics.
168169

169170
## Runtime Control
170171

@@ -211,27 +212,30 @@ hyprlax ctl get animation.duration
211212
hyprlax ctl status
212213
```
213214

214-
**Full guide:** [Dynamic Layer Management](docs/IPC.md)
215+
**Full guide:** [IPC Overview](docs/guides/ipc-overview.md) and [IPC Commands](docs/reference/ipc-commands.md)
215216

216217
## Documentation
217218

218219
### 📚 User Guides
219-
- [Installation](docs/installation.md) - Detailed installation instructions
220-
- [Configuration](docs/configuration.md) - All configuration options
221-
- [Environment Variables](docs/configuration/environment.md) - ENV mapping and precedence
222-
- [Compositor Support](docs/compositors.md) - Compositor-specific features
223-
- [Multi-Layer Parallax](docs/multi-layer.md) - Creating depth with layers
224-
- [Animation](docs/animation.md) - Easing functions and timing
225-
- [Examples](docs/examples.md) - Ready-to-use configurations
220+
- [Installation](docs/getting-started/installation.md) - Detailed installation instructions
221+
- [Configuration](docs/configuration/README.md) - All configuration options
222+
- [Environment Variables](docs/reference/environment-vars.md) - ENV mapping and precedence
223+
- [Compatibility](docs/getting-started/compatibility.md) - Compositor-specific features
224+
- [Multi-Layer Parallax](docs/guides/multi-layer.md) - Creating depth with layers
225+
- [Animation](docs/guides/animation.md) - Easing functions and timing
226+
- [Examples](docs/guides/examples.md) - Ready-to-run scenes
227+
228+
- [Performance](docs/guides/performance.md) - Optimization tips
229+
- [Troubleshooting](docs/guides/troubleshooting.md) - Common issues and solutions
226230

227231
### 🔧 Developer Guides
228-
- [Architecture](docs/architecture.md) - Modular design and components
229-
- [Development](docs/development.md) - Building and contributing
230-
- [Adding Compositors](docs/development.md#adding-compositor-support) - Extending compositor support
232+
- [Architecture](docs/development/architecture.md) - Modular design and components
233+
- [Development](docs/development/README.md) - Building and contributing
234+
- [Adding Compositors](docs/development/architecture.md) - Extending compositor support
231235

232236
### ❓ Help
233-
- [Troubleshooting](docs/troubleshooting.md) - Common issues and solutions
234-
- [Dynamic Layers](docs/IPC.md) - Runtime layer control via IPC
237+
- [Troubleshooting](docs/guides/troubleshooting.md) - Common issues and solutions
238+
- [Dynamic Layers](docs/guides/ipc-overview.md) - Runtime layer control via IPC
235239

236240
## Changelog
237241

@@ -247,7 +251,7 @@ hyprlax uses a modular architecture with clear separation of concerns:
247251
- **Renderer abstraction** - OpenGL ES 2.0 rendering
248252
- **Core engine** - Animation and configuration management
249253

250-
See [Architecture Documentation](docs/architecture.md) for details.
254+
See [Architecture Documentation](docs/development/architecture.md) for details.
251255

252256
### Testing
253257

@@ -285,7 +289,7 @@ make lint-fix
285289

286290
Pull requests are welcome! Please read [RELEASE.md](RELEASE.md) for the release process.
287291

288-
See [Development Guide](docs/development.md) for:
292+
See [Development Guide](docs/development/README.md) for:
289293
- Building from source
290294
- Project architecture
291295
- Adding new features

docs/configuration/examples/basic.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ debug = false
77
duration = 1.0 # 1 second workspace animation
88
shift = 150 # Moderate parallax shift
99
vsync = true
10-
easing = "ease_out"
10+
easing = "expo"
1111

1212
# Single background image example
1313
# Uncomment to use just one image:
@@ -27,4 +27,4 @@ blur = 1.0 # Slight blur for depth
2727
path = "~/Pictures/foreground.png"
2828
shift_multiplier = 1.0 # Normal parallax speed
2929
opacity = 0.95 # Slightly transparent
30-
blur = 0.0 # Sharp foreground
30+
blur = 0.0 # Sharp foreground

docs/configuration/examples/cursor-parallax.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ y = 80
2727

2828
[global.input.cursor]
2929
follow_global = true
30-
normalize_to = "monitor"
3130
sensitivity_x = 0.5
3231
sensitivity_y = 0.50
3332
deadzone_px = 3
@@ -53,4 +52,4 @@ scale = 0.70 # smaller → sits
5352
align = { x = 0.5, y = -0.2 }
5453
shift_multiplier = { x = 1.0, y = 1.0 }
5554
opacity = 1.0
56-
blur = 0.0
55+
blur = 0.0

docs/configuration/legacy-format.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Set animation easing function:
5555
easing expo
5656
```
5757

58-
Available: linear, ease, ease_in, ease_out, ease_in_out, expo, cubic, quart, quint, sine, circ, elastic, back, bounce
58+
Available: linear, cubic, quart, quint, sine, expo, circ, elastic, back, bounce
5959

6060
### delay
6161
Set animation delay in seconds:
@@ -137,4 +137,4 @@ For these features, use [TOML configuration](toml-reference.md).
137137

138138
## Migration to TOML
139139

140-
See the [Migration Guide](migration-guide.md) for converting legacy configs to TOML format.
140+
See the [Migration Guide](migration-guide.md) for converting legacy configs to TOML format.

docs/configuration/toml-reference.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,15 @@ Complete reference for hyprlax TOML configuration format.
2828

2929
### Easing Functions
3030
- `linear` - Constant speed
31-
- `ease` - Smooth start and end
32-
- `ease_in` - Slow start
33-
- `ease_out` - Slow end
34-
- `ease_in_out` - Slow start and end
35-
- `expo` - Exponential (default)
36-
- `cubic` - Cubic curve
37-
- `quart` - Quartic curve
38-
- `quint` - Quintic curve
39-
- `sine` - Sinusoidal
40-
- `circ` - Circular
41-
- `elastic` - Elastic bounce
42-
- `back` - Overshoot and return
43-
- `bounce` - Bounce effect
31+
- `cubic` - Cubic ease-out (default)
32+
- `quart` - Quartic ease-out
33+
- `quint` - Quintic ease-out
34+
- `sine` - Sinusoidal ease-out
35+
- `expo` - Exponential ease-out
36+
- `circ` - Circular ease-out
37+
- `elastic` - Elastic overshoot
38+
- `back` - Slight pull-back before moving
39+
- `bounce` - Bouncing settle
4440

4541
## Parallax Settings
4642

@@ -165,13 +161,12 @@ y = 150
165161

166162
[global.input.cursor]
167163
follow_global = true
168-
normalize_to = "monitor"
169164
sensitivity_x = 1.2
170165
sensitivity_y = 0.8
171166
deadzone_px = 5
172167
ema_alpha = 0.3 # Smooth cursor movement
173168
animation_duration = 2.0
174-
easing = "ease_out"
169+
easing = "expo"
175170

176171
# Background layer - moves slowly
177172
[[global.layers]]

docs/development/README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ make debug
3131
make test
3232

3333
# Format code
34-
make format
34+
# Use your editor/clang-format. No built-in 'make format' target.
3535

3636
# Commit changes
3737
git add -A
@@ -105,7 +105,7 @@ make check
105105
make test
106106

107107
# Coverage report
108-
make coverage
108+
# Not provided by Makefile; use external tools if needed.
109109
```
110110

111111
## Contributing Guidelines
@@ -159,10 +159,7 @@ See [Testing](testing.md) for test writing guide.
159159
## Documentation
160160

161161
### Building Docs
162-
```bash
163-
# Generate from source
164-
make docs
165-
```
162+
No dedicated docs build target is provided. Edit files under `docs/` directly.
166163

167164
### Documentation Style
168165
- Clear, concise language
@@ -173,9 +170,9 @@ make docs
173170
## Release Process
174171

175172
### Version Bumping
176-
1. Update version in `src/version.h`
173+
1. Update `VERSION` file if needed (build embeds it as HYPRLAX_VERSION)
177174
2. Update CHANGELOG.md
178-
3. Tag release: `git tag -a v2.0.0 -m "Release v2.0.0"`
175+
3. Tag release: `git tag -a vX.Y.Z -m "Release vX.Y.Z"`
179176

180177
### Building Release
181178
```bash
@@ -210,4 +207,4 @@ echo $XDG_SESSION_TYPE
210207

211208
# Debug output
212209
./hyprlax --debug test.jpg 2>&1 | head -100
213-
```
210+
```

docs/development/building.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ sudo make install
170170
```
171171
Default locations:
172172
- Binary: `/usr/local/bin/hyprlax`
173-
- Docs: `/usr/local/share/doc/hyprlax/`
174-
- Examples: `/usr/local/share/hyprlax/examples/`
173+
- Docs: `/usr/local/share/doc/hyprlax/` (if packaged externally)
174+
- Examples: Included in the repository under `examples/` (not installed by default)
175175

176176
### Custom Prefix
177177
```bash

docs/development/testing.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,7 @@ jobs:
333333
- name: Memory check
334334
run: make memcheck
335335

336-
- name: Coverage
337-
run: make coverage
338-
339-
- name: Upload coverage
340-
uses: codecov/codecov-action@v2
336+
# Coverage not provided by Makefile; integrate external tooling if desired
341337
```
342338

343339
## Test Checklist

docs/guides/animation.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ Master the animation system to create smooth, natural parallax effects.
77
Hyprlax combines one or more **input sources** to drive layer movement:
88
- `workspace`: driven by workspace changes (original behavior)
99
- `cursor`: driven by smoothed cursor motion
10-
- `window` *(planned)*: will track the active window position
11-
12-
> The `window` source is currently implemented for Hyprland. Other compositors ignore it gracefully until native support is added.
10+
- `window`: tracks the active window center (implemented for Hyprland; other compositors ignore it gracefully until native support is added)
1311

1412
Configure sources via CLI or TOML:
1513

docs/guides/cursor-tracking.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ Animate cursor-driven changes:
9696
```toml
9797
[global.input.cursor]
9898
animation_duration = 3.0 # Seconds to animate position changes
99-
easing = "ease_out" # Easing function for cursor animation
99+
easing = "expo" # Easing function for cursor animation
100100
```
101101

102102
## Normalization
103103

104-
Note: Cursor normalization targets are currently fixed; configuration of `normalize_to` is not supported.
104+
Note: Cursor normalization targets are currently fixed; `normalize_to` is reserved and not configurable in this build.
105105

106106
## Movement Control
107107

@@ -207,7 +207,6 @@ y = true
207207
[global.input.cursor]
208208
sensitivity_x = 0.5
209209
sensitivity_y = 0.5
210-
normalize_to = "monitor"
211210

212211
[[global.layers]]
213212
path = "card_shadow.png"
@@ -250,7 +249,6 @@ Use canvas normalization for uniform behavior:
250249

251250
```toml
252251
[global.input.cursor]
253-
normalize_to = "canvas"
254252
follow_global = true
255253
```
256254

@@ -322,13 +320,12 @@ y = 200
322320

323321
[global.input.cursor]
324322
follow_global = true
325-
normalize_to = "monitor"
326323
sensitivity_x = 1.0
327324
sensitivity_y = 0.7
328325
deadzone_px = 2
329326
ema_alpha = 0.25
330327
animation_duration = 2.5
331-
easing = "ease_out"
328+
easing = "expo"
332329

333330
# Sky - barely moves
334331
[[global.layers]]

0 commit comments

Comments
 (0)