all repos — quickshell @ b25232c86e7e5e3ea24200f299f1ff9bf7b17075

A desert-witch desktop shell

feat: add MPRIS module
trickyni trickyniv56@gmail.com
Wed, 17 Dec 2025 17:40:26 +0200
commit

b25232c86e7e5e3ea24200f299f1ff9bf7b17075

parent

e3a473bc033249e3bf02c19e43d3f25c3d76e444

1 files changed, 34 insertions(+), 0 deletions(-)

jump to
A bar/modules/Music.qml

@@ -0,0 +1,34 @@

+ // Sunset.qml +import QtQuick +import Quickshell +import Quickshell.Io +import QtQuick.Layouts +import QtQuick.Controls +import Quickshell.Services.Mpris +import "../../" +import "../classes" as Class +//𖠱𖤐 + +RowLayout { + anchors.centerIn: parent + id: music + spacing: 4 + property var player: Mpris.players.values[1] + // property var player: Mpris.players.values?.find(x=>x.identity=="Music Player Daemon (mpdris2-rs)") + Class.BottombarIcon { + // font.pixelSize: this+2 + text: music.player.isPlaying + ? "" + : "" + } + Class.TopbarText { + text: (music.player.trackTitle+" - "+music.player.trackArtist) + // text: music.player.identity + + } +} +// TODO: RMPC +// TODO: make alt-player for firefox/youtube/audiobookshelf +// TODO: KDEconnect? +// TODO: duration? +// TODO: Buttons, play/pause, goto source. next/prev