-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathGlobalStates.qml
More file actions
77 lines (71 loc) · 2.35 KB
/
Copy pathGlobalStates.qml
File metadata and controls
77 lines (71 loc) · 2.35 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import qs.modules.common
import qs.services
import QtQuick
import Quickshell
import Quickshell.Hyprland
import Quickshell.Io
pragma Singleton
pragma ComponentBehavior: Bound
Singleton {
id: root
property bool barOpen: true
property bool crosshairOpen: false
property bool sidebarLeftOpen: false
property bool sidebarRightOpen: false
property bool mediaControlsOpen: false
property bool osdBrightnessOpen: false
property bool settingsOpen: false
property bool osdVolumeOpen: false
property bool oskOpen: false
property bool overlayOpen: false
property bool overviewOpen: false
property bool regionSelectorOpen: false
property bool searchOpen: false
property bool screenLocked: false
property bool screenLockContainsCharacters: false
property bool screenUnlockFailed: false
property bool screenTranslatorOpen: false
property bool sessionOpen: false
property bool superDown: false
property bool superReleaseMightTrigger: true
property bool wallpaperSelectorOpen: false
property bool workspaceShowNumbers: false
property string settingsPage: ""
property Item currentPageInstance: null
property list<real> visualizerPoints: []
property bool desktopWidgetKeyboardFocus: false
property bool desktopMenuOpen: false
property var desktopMenuScreen: null
property real desktopMenuX: 0
property real desktopMenuY: 0
property string wallpaperSelectorTarget: "wallpaper"
onSidebarRightOpenChanged: {
if (GlobalStates.sidebarRightOpen) {
Notifications.timeoutAll();
Notifications.markAllRead();
}
}
GlobalShortcut {
name: "workspaceNumber"
description: "Hold to show workspace numbers, release to show icons"
onPressed: {
root.superDown = true
}
onReleased: {
root.superDown = false
}
}
IpcHandler {
target: "background"
function toggleCenteredWallpaper(): void {
Config.options.background.centeredWallpaper = !Config.options.background.centeredWallpaper
}
}
GlobalShortcut {
name: "centeredWallpaperToggle"
description: "Toggles centered wallpaper"
onPressed: {
Config.options.background.centeredWallpaper = !Config.options.background.centeredWallpaper
}
}
}