-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshell.qml
More file actions
104 lines (80 loc) · 3.72 KB
/
shell.qml
File metadata and controls
104 lines (80 loc) · 3.72 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
96
97
98
99
100
101
102
103
104
//===========================================================================
//
//
//███╗ ███╗ █████╗ ██████╗ ██╗ ██████╗ ██████╗ ██████╗ ██████╗ ███╗ ███╗
//████╗ ████║██╔══██╗██╔══██╗██║██╔═══██╗██╔══██╗██╔══██╗██╔═══██╗████╗ ████║
//██╔████╔██║███████║██████╔╝██║██║ ██║██████╔╝██████╔╝██║ ██║██╔████╔██║
//██║╚██╔╝██║██╔══██║██╔══██╗██║██║ ██║██╔══██╗██╔══██╗██║ ██║██║╚██╔╝██║
//██║ ╚═╝ ██║██║ ██║██║ ██║██║╚██████╔╝██║ ██║██║ ██║╚██████╔╝██║ ╚═╝ ██║
//╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝
// MarioRRom's Aetheris Shell
// https://github.com/MarioRRom/aetheris-shell
//===========================================================================
//@ pragma Env QSG_RENDER_LOOP=threaded
//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000
//@ pragma UseQApplication
// .-------------------------.
// | .---------------------. |
// | | Importar Modulos | |
// | `---------------------' |
// `-------------------------'
// Quickshell
import QtQuick
import Quickshell
import Quickshell.Io
// Globales
import qs.config
import qs.panels
import qs.overlays.notifications
import qs.panels.background
import qs.panels.bar
import qs.modules
import qs.modules.hyprland
import qs.modules.bspwm
// .-------------------------.
// | .---------------------. |
// | | Shell Root | |
// | `---------------------' |
// `-------------------------'
ShellRoot {
// Obtener el Desktop en Ejecución, para cargar los Sockets.
property string _session: (Quickshell.env("DESKTOP_SESSION") || Quickshell.env("XDG_CURRENT_DESKTOP") || "").toLowerCase()
// Inicializar Sockets para asegurar que se carguen y apliquen configs
property bool _initHyprSocket: _session.indexOf("hyprland") !== -1 ? HyprSocket.isActive : false
property bool _initBspSocket: _session.indexOf("bspwm") !== -1 ? BspSocket.isActive : false
property bool enableBar: true
property bool enableBackground: true
property bool enablePopups: true
property bool enableNightMode: false
LazyLoader {
active: enableNightMode
component: NightMode {
}
}
// Quickshell Background
Background { isActivated: enableBackground }
// Quickshell Bar
TopBar { isActivated: enableBar }
Loader {
active: false
sourceComponent: Activate {
}
}
// Popup de Notificaciones.
NotificationsPopup { isActivated: enablePopups }
// Fix Stacking para BSPWM
Process {
id: fixStacking
command: ["sh", Qt.resolvedUrl("scripts/fix_stacking.sh").toString().replace("file://", "")]
}
// Cargar Picom (X11)
Loader {
active: _session.indexOf("bspwm") !== -1
sourceComponent: Picom {}
}
Component.onCompleted: {
if (_session.indexOf("bspwm") !== -1) {
fixStacking.running = true
}
}
}