mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
QS Rewrite: dock: Show pinned apps (#1364)
This commit is contained in:
@@ -111,6 +111,26 @@ Scope { // Scope
|
||||
}
|
||||
}
|
||||
DockSeparator {}
|
||||
// Pinned apps
|
||||
Repeater {
|
||||
model: ConfigOptions?.dock.pinnedApps ?? []
|
||||
|
||||
DockButton {
|
||||
id: pinnedAppButton
|
||||
required property string modelData
|
||||
property DesktopEntry entry: DesktopEntries.byId(modelData)
|
||||
onClicked: {
|
||||
pinnedAppButton?.entry.execute();
|
||||
}
|
||||
contentItem: IconImage {
|
||||
anchors.centerIn: parent
|
||||
source: Quickshell.iconPath(AppSearch.guessIcon(modelData), "image-missing")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
DockSeparator { visible: (ConfigOptions?.dock.pinnedApps ?? []).length > 0 }
|
||||
|
||||
DockApps { id: dockApps }
|
||||
DockSeparator {}
|
||||
DockButton {
|
||||
|
||||
Reference in New Issue
Block a user