Skip to content

Commit 38dc232

Browse files
committed
Use fullscreen from the wails app to remove the hyprland config
1 parent 7c265c1 commit 38dc232

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

docs/cli.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,10 @@ aether --widget-themes-slider
221221

222222
**Hyprland configuration:**
223223

224-
For the slider widgets to display as transparent overlays, add to your Hyprland config (adjust `size` to your monitor resolution):
224+
For the slider widgets to display as transparent overlays, add to your Hyprland config:
225225

226226
```conf
227-
# Aether slider widgets (wallpaper + themes)
228-
windowrule = match:class aether-slider, float 1
229-
windowrule = match:class aether-slider, pin 1
230-
windowrule = match:class aether-slider, no_shadow 1
231-
windowrule = match:class aether-slider, decorate 0
232-
windowrule = match:class aether-slider, size 2880 1800 # replace with your monitor resolution
233-
windowrule = match:class aether-slider, center 1
227+
# No window rules needed — the slider handles fullscreen automatically.
234228
```
235229

236230
**Keybind examples:**

frontend/src/lib/components/slider/WallpaperSlider.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,10 @@
184184
document.documentElement.classList.add('transparent-widget');
185185
186186
try {
187-
const {WindowShow} = await import(
187+
const {WindowShow, WindowFullscreen} = await import(
188188
'../../../../wailsjs/runtime/runtime'
189189
);
190+
WindowFullscreen();
190191
WindowShow();
191192
} catch {}
192193

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ func main() {
7878
title = "Aether Slider"
7979
frameless = true
8080
alwaysOnTop = true
81+
width, height = 0, 0
8182
}
8283

8384
isSliderMode := sliderWidget || themesSlider

0 commit comments

Comments
 (0)