move notifications to top overlay
This commit is contained in:
parent
90b3cc22e2
commit
021c82f438
12 changed files with 106 additions and 172 deletions
20
modules/Services/Compositor.qml
Normal file
20
modules/Services/Compositor.qml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
pragma Singleton
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
// Screen des gerade fokussierten Fensters, oder null wenn keins fokussiert ist.
|
||||
// Reagiert sowohl auf Fokuswechsel als auch darauf, dass das fokussierte
|
||||
// Fenster auf einen anderen Monitor wandert.
|
||||
readonly property ShellScreen liveScreen: ToplevelManager.activeToplevel?.screens?.[0] ?? null
|
||||
|
||||
|
||||
property ShellScreen focusedScreen: Quickshell.screens[0] ?? null
|
||||
|
||||
onLiveScreenChanged: {
|
||||
if (liveScreen)
|
||||
root.focusedScreen = liveScreen;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue