-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.qml
More file actions
95 lines (88 loc) · 2.48 KB
/
shell.qml
File metadata and controls
95 lines (88 loc) · 2.48 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*-------------------------
--- shell.qml by andrel ---
-------------------------*/
//@ pragma UseQApplication
import QtQuick
import Quickshell
import qs.components
import qs.widgets
import qs.services as Service
ShellRoot {
Variants {
model: Quickshell.screens
Bar {
display: "DP-1" // outputs to display on (does nothing if using bar in conjunction with variants)
// if not provided will default to primary display
height: 38 // set the height of the bar
anchor: Edges.Top // anchor points **note** only top or bottom edges accepted for now
left: [
Network {},
Bluetooth {},
Audio {}
]
centre: [
NiriWorkspaces {
names: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十'] // workspace names (leave blank to default to workspace index)
}
]
right: [
SystemTray {},
UpdateNotifier {
notifyOn: 50 // number of updates before notifying
},
ColourPicker {},
Caffeine {},
Redeye {},
Weather {},
DateTime {
stack: false
},
PowerManagement {},
NotificationTray {}
]
}
}
Dock {
display: "DP-1" // outputs to display on (does nothing if using dock in conjunction with variants)
// if not provided will default to primary display
height: 48 // set the height of the dock
widgets: [
Spacer {},
StartMenu {
fileManager: "thunar" // set file manager used to open shortcuts (unset to use system default)
centreHorizontally: true // whether to centre the menu horizontally on the display
},
Windows {
hideLabels: true // show only the window app icon
labelMaxWidth: 100 // set the maximum width of the label (has no effect if labels are hidden)
},
Separator {
visible: Service.MPlayer.active
},
MiniPlayer {},
Spacer {}
]
}
NotificationToasts {
anchors: Edges.Left | Edges.Right // anchor points (edges left+right will centre)
displays: ["DP-1"] // outputs to display on (empty list will display on all outputs)
}
// services to start up
Component.onCompleted: {
Service.ShellUtils.init();
Settings.init();
Lockscreen.init();
AppLauncher.init();
Service.Idle.init(
300 // timeout to idle in seconds
);
Service.Brightness.init(); // uses brightnessctl
Service.Sunsetr.init(
3500, // temperature in K
95, // gamma (0-100)
true, // enable geo located sunset/sunrise times (static times will be ignored if 'true')
"19:00", // static start time
"7:00" // static end time
);
}
}