mirror of
https://github.com/danbulant/dotfiles
synced 2026-05-19 04:18:55 +00:00
73 lines
2.9 KiB
QML
73 lines
2.9 KiB
QML
//@ pragma UseQApplication
|
|
//@ pragma Env QS_NO_RELOAD_POPUP=1
|
|
//@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic
|
|
|
|
// Adjust this to make the shell smaller or larger
|
|
//@ pragma Env QT_SCALE_FACTOR=1
|
|
|
|
import "./modules/common/"
|
|
import "./modules/backgroundWidgets/"
|
|
import "./modules/bar/"
|
|
import "./modules/cheatsheet/"
|
|
import "./modules/dock/"
|
|
import "./modules/mediaControls/"
|
|
import "./modules/notificationPopup/"
|
|
import "./modules/onScreenDisplay/"
|
|
import "./modules/onScreenKeyboard/"
|
|
import "./modules/overview/"
|
|
import "./modules/screenCorners/"
|
|
import "./modules/session/"
|
|
import "./modules/sidebarLeft/"
|
|
import "./modules/sidebarRight/"
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
import QtQuick.Window
|
|
import Quickshell
|
|
import "./services/"
|
|
|
|
ShellRoot {
|
|
// Enable/disable modules here. False = not loaded at all, so rest assured
|
|
// no unnecessary stuff will take up memory if you decide to only use, say, the overview.
|
|
property bool enableBar: true
|
|
property bool enableBackgroundWidgets: true
|
|
property bool enableCheatsheet: true
|
|
property bool enableDock: false
|
|
property bool enableMediaControls: true
|
|
property bool enableNotificationPopup: true
|
|
property bool enableOnScreenDisplayBrightness: true
|
|
property bool enableOnScreenDisplayVolume: true
|
|
property bool enableOnScreenKeyboard: true
|
|
property bool enableOverview: true
|
|
property bool enableReloadPopup: true
|
|
property bool enableScreenCorners: true
|
|
property bool enableSession: true
|
|
property bool enableSidebarLeft: true
|
|
property bool enableSidebarRight: true
|
|
|
|
// Force initialization of some singletons
|
|
Component.onCompleted: {
|
|
MaterialThemeLoader.reapplyTheme()
|
|
ConfigLoader.loadConfig()
|
|
PersistentStateManager.loadStates()
|
|
Cliphist.refresh()
|
|
// FirstRunExperience.load()
|
|
}
|
|
|
|
LazyLoader { active: enableBar; component: Bar {} }
|
|
LazyLoader { active: enableBackgroundWidgets; component: BackgroundWidgets {} }
|
|
LazyLoader { active: enableCheatsheet; component: Cheatsheet {} }
|
|
LazyLoader { active: enableDock; component: Dock {} }
|
|
LazyLoader { active: enableMediaControls; component: MediaControls {} }
|
|
LazyLoader { active: enableNotificationPopup; component: NotificationPopup {} }
|
|
LazyLoader { active: enableOnScreenDisplayBrightness; component: OnScreenDisplayBrightness {} }
|
|
LazyLoader { active: enableOnScreenDisplayVolume; component: OnScreenDisplayVolume {} }
|
|
LazyLoader { active: enableOnScreenKeyboard; component: OnScreenKeyboard {} }
|
|
LazyLoader { active: enableOverview; component: Overview {} }
|
|
LazyLoader { active: enableReloadPopup; component: ReloadPopup {} }
|
|
LazyLoader { active: enableScreenCorners; component: ScreenCorners {} }
|
|
LazyLoader { active: enableSession; component: Session {} }
|
|
LazyLoader { active: enableSidebarLeft; component: SidebarLeft {} }
|
|
LazyLoader { active: enableSidebarRight; component: SidebarRight {} }
|
|
}
|
|
|