Files
Quickbar/shell.qml

39 lines
798 B
QML

//@ pragma UseQApplication
import Quickshell
import qs.Widgets
import qs.Common
import qs.Services
ShellRoot {
id: root
property bool createWindow: false
Variants {
model: Quickshell.screens
delegate: Bar {
modelData: item
barComponentsLeft: ["NotificationsWidget.qml"]
barComponentsCenter: ["Workspaces.qml"]
barComponentsRight: ["AudioWidget.qml", "SysTrayWidget.qml", "ClockWidget.qml"]
}
}
Shortcuts {
name: "showAltTab"
onPressed: {
root.createWindow = !root.createWindow;
}
}
LazyLoader {
id: windowLoader
active: root.createWindow
component: WindowSwitcher {
onClear: root.createWindow = false
}
}
}