- Vertical bar on DP-2 with rounded-square pills throughout - Per-monitor workspace groups sorted by screen x position, with Nerd Font icons for named workspaces and apex-neon red active indicator - Bar layout: datetime+weather top, workspaces centered, gamemode+media+notif+system bottom - Popouts anchor to triggering icon (top-right for datetime/weather, bottom-right for media/notif/system) - Lock command switched from hyprlock to swaylock - Hyprland blur/ignore_alpha layerrules for quickshell namespace Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
909 B
QML
36 lines
909 B
QML
import Quickshell
|
|
import Quickshell.Services.Mpris
|
|
import QtQuick
|
|
import QtQuick.Layouts
|
|
import "../shared" as Shared
|
|
|
|
BarPill {
|
|
id: root
|
|
|
|
readonly property var player: {
|
|
let players = Mpris.players.values;
|
|
for (let i = 0; i < players.length; i++) {
|
|
if (players[i].isPlaying) return players[i];
|
|
}
|
|
return players.length > 0 ? players[0] : null;
|
|
}
|
|
|
|
visible: player !== null
|
|
groupName: "media"
|
|
accentColor: Shared.Theme.green
|
|
|
|
content: [
|
|
Text {
|
|
Layout.alignment: Qt.AlignHCenter
|
|
text: {
|
|
if (!root.player) return "\u{f075a}";
|
|
if (root.player.isPlaying) return "\u{f040a}";
|
|
return "\u{f03e4}";
|
|
}
|
|
color: Shared.Theme.green
|
|
font.pixelSize: Shared.Theme.fontLarge
|
|
font.family: Shared.Theme.iconFont
|
|
}
|
|
]
|
|
}
|