mpris: add ipc handler for multimedia keys

This commit is contained in:
kossLAN 2025-06-13 13:59:15 -04:00
parent 15ffd6d5b0
commit 233e12e094
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
8 changed files with 43 additions and 456 deletions

View file

@ -5,6 +5,7 @@ import Quickshell
import QtQuick
import "bar" as Bar
import "notifications" as Notifications
import "mpris" as Mpris
import "volume-osd" as VolumeOSD
import "settings" as Settings
import "launcher" as Launcher
@ -13,13 +14,16 @@ import "wallpaper" as Wallpaper
import "screencapture" as ScreenCapture
ShellRoot {
// Singleton's that need to be loaded in some way
Component.onCompleted: {
Launcher.Controller.init();
Settings.Controller.init();
Notifications.NotificationCenter.init();
ScreenCapture.Controller.init();
Mpris.Controller.init();
Notifications.NotificationCenter.init();
}
// Elements that need context from all screens
Variants {
model: Quickshell.screens
@ -31,13 +35,14 @@ ShellRoot {
screen: scope.modelData
}
LockScreen.Controller {
}
LockScreen.Controller {}
}
}
// On activation components
Notifications.Controller {}
VolumeOSD.Controller {}
// this is an exception...
Wallpaper.Controller {}
}