mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 09:36:46 +00:00
quickshell and hyprland additions
This commit is contained in:
27
.config/quickshell/nucleus-shell/plugins/PluginHost.qml
Normal file
27
.config/quickshell/nucleus-shell/plugins/PluginHost.qml
Normal file
@@ -0,0 +1,27 @@
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import qs.config
|
||||
|
||||
Item {
|
||||
Repeater {
|
||||
model: PluginLoader.plugins
|
||||
|
||||
delegate: Item {
|
||||
width: 0
|
||||
height: 0
|
||||
|
||||
LazyLoader {
|
||||
id: pluginLoader
|
||||
active: Config.initialized
|
||||
&& Config.runtime
|
||||
&& Config.runtime.plugins
|
||||
&& Config.runtime.plugins[modelData]
|
||||
&& Config.runtime.plugins[modelData].enabled === true // Long ass binding to guard object existence
|
||||
source: Qt.resolvedUrl(
|
||||
Directories.shellConfig + "/plugins/" + modelData + "/Main.qml"
|
||||
)
|
||||
loading: true // optional, keeps plugin loaded
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user