-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathshell.qml
More file actions
63 lines (54 loc) · 1.63 KB
/
Copy pathshell.qml
File metadata and controls
63 lines (54 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//@ pragma UseQApplication
//@ pragma Env QS_NO_RELOAD_POPUP=1
//@ pragma Env QT_QUICK_CONTROLS_STYLE=Basic
//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000
// Remove two slashes below and adjust the value to change the UI scale
////@ pragma Env QT_SCALE_FACTOR=1
import "modules/common"
import "services"
import "panelFamilies"
import QtQuick
import QtQuick.Window
import Quickshell
import Quickshell.Io
import Quickshell.Hyprland
ShellRoot {
id: root
ReloadPopup {}
Process {
id: autostartProc
command: ["python3", `${Directories.scriptPath}/hyprland/autostart.py`]
}
Connections {
target: Config
function onReadyChanged() {
if (!Config.ready) return
if (WM.compositor === "niri") {
Config.options.background.lockWall = ""
Config.options.overview.enable = false
}
if (Config.options.hyprland.autostartApps.enable &&
Config.options.hyprland.autostartApps.apps.length > 0) {
autostartProc.running = true
}
}
}
Component.onCompleted: {
MaterialThemeLoader.reapplyTheme()
Hyprsunset.load()
FirstRunExperience.load()
ConflictKiller.load()
Cliphist.refresh()
Wallpapers.load()
Updates.load()
LyricsService.restartLyrics()
}
PanelFamilyLoader {
identifier: "ii"
component: IllogicalImpulseFamily {}
}
component PanelFamilyLoader: LazyLoader {
required property string identifier
active: Config.ready && Config.options.panelFamily === identifier
}
}