feat: add support for lazy loading in modules

This commit is contained in:
Hannes
2026-08-23 22:14:36 +02:00
parent 426b96a27e
commit 4b4159371d
4 changed files with 13 additions and 8 deletions
+5
View File
@@ -36,3 +36,8 @@ Add the Lines to your ```~/.config/hypr/hyprland.conf``` keep in mind that you m
- Volume Contol
- Notes
- wofi
### Inspirations
- [quickshell-examples](https://github.com/quickshell-mirror/quickshell-examples)
- [caelestia-shell](https://github.com/caelestia-dots/shell)
- [TheLinuxGuy](https://www.youtube.com/@TheLinuxGuy-btw)
+2 -2
View File
@@ -7,10 +7,10 @@ import Quickshell.Io
Item { // container, invisible
id: jLoader
Loader {
LazyLoader {
id: jLearnerLoader
active: false
sourceComponent: JLearner { id: jLearner }
JLearner { id: jLearner }
}
GlobalShortcut {
+2 -2
View File
@@ -8,10 +8,10 @@ import "../../config"
Item { // container, invisible
id: wlLoader
Loader {
LazyLoader {
id: wlogoutLoader
active: false
sourceComponent: Wlogout {
Wlogout {
id: wLogout
}
}
+3 -3
View File
@@ -16,10 +16,10 @@ Item {
}
}
Loader {
LazyLoader {
id: wallpaperLoader
active: false
sourceComponent: WallpaperPicker { id: wPicker }
WallpaperPicker { id: wPicker }
}
GlobalShortcut {
@@ -30,7 +30,7 @@ Item {
// generateThumbs.startDetached()
generateThumbs.running = true
console.log("Pressed Meta+Shift+W (Hyprland global shortcut)")
wallpaperLoader.active = !wallpaperLoader.active
wallpaperLoader.activeAsync = !wallpaperLoader.active
}
}