diff --git a/components/StyledPanelWindow.qml b/components/StyledPanelWindow.qml index ebadb64..7a730c6 100644 --- a/components/StyledPanelWindow.qml +++ b/components/StyledPanelWindow.qml @@ -7,7 +7,7 @@ import Quickshell.Wayland PanelWindow { id: window - default property alias content: contentItem.data + default property alias content: contentItem.children property alias background: background required property string name property bool canFocus: true diff --git a/modules/configuration/Configuration.qml b/modules/configuration/Configuration.qml index 749b195..5122033 100644 --- a/modules/configuration/Configuration.qml +++ b/modules/configuration/Configuration.qml @@ -112,12 +112,6 @@ StyledPanelWindow { title: "Styling" view: StylingView {} } - - ConfigurationView { - icon: Styling.lucide.icons.swatchBook - title: "Wallpapers" - view: Wallpaper {} - } } component ConfigurationView: QtObject { diff --git a/modules/configuration/Wallpaper.qml b/modules/configuration/Wallpaper.qml deleted file mode 100644 index d75a04a..0000000 --- a/modules/configuration/Wallpaper.qml +++ /dev/null @@ -1,13 +0,0 @@ -import qs.services -import QtQuick -import QtQuick.Layouts - -ColumnLayout { - Repeater { - model: WallpaperService.files - delegate: Text { - required property string dataModel - text: dataModel - } - } -} diff --git a/modules/powermenu/PowerMenu.qml b/modules/powermenu/PowerMenu.qml index e784007..ad87ea3 100644 --- a/modules/powermenu/PowerMenu.qml +++ b/modules/powermenu/PowerMenu.qml @@ -20,15 +20,15 @@ StyledPanelWindow { Visibility.powermenu = focused; } - Process { - id: process - } - WrapperItem { id: rect margin: 14 + Process { + id: process + } + StyledListView { id: list diff --git a/services/WallpaperService.qml b/services/WallpaperService.qml deleted file mode 100644 index 2c0026f..0000000 --- a/services/WallpaperService.qml +++ /dev/null @@ -1,24 +0,0 @@ -pragma Singleton - -import Quickshell -import Quickshell.Io - -Singleton { - id: root - - property string directory: "~/Wallpapers/" - property list files: [] - property list fileTypes: ["jpg", "jpeg", "png"] - - Process { - running: true - command: ["bash", "-c", `find "$dir" -maxdepth 1 -type f & inotifywait -m -r ${root.directory} -e modify,move,create,delete | while read dir action; do find "$dir" -maxdepth 1 -type f; done`] - stderr: StdioCollector { - onStreamFinished: console.log(`line read: ${this.text}`) - } - stdout: SplitParser { - splitMarker: "\n" - onRead: data => root.files = data?.split("\n") ?? [] - } - } -}