added mpris settings to waybar

This commit is contained in:
2025-07-11 14:10:42 +02:00
parent ff37269ac4
commit 51b9f927bd

View File

@@ -1,11 +1,7 @@
{ {
// general bar settings // general bar settings
"layer": "bottom", "layer": "bottom",
"output": [ "output": ["DP-1", "DP-2", "!HDMI-A-2"],
"DP-1",
"DP-2",
"!HDMI-A-2"
],
"position": "bottom", "position": "bottom",
"mod": "dock", "mod": "dock",
"exclusive": true, "exclusive": true,
@@ -13,13 +9,8 @@
"passthrough": false, "passthrough": false,
"height": 32, "height": 32,
// which modules to show // which modules to show
"modules-left": [ "modules-left": ["hyprland/workspaces"],
"hyprland/workspaces" "modules-center": ["mpris", "privacy"],
],
"modules-center": [
"mpris",
"privacy"
],
"modules-right": [ "modules-right": [
"cpu", "cpu",
"memory", "memory",
@@ -53,6 +44,19 @@
"format": "<span color=\"#4F84CC\">󰋊</span> <span color=\"#CAD3E8\">{percentage_used}%</span>", "format": "<span color=\"#4F84CC\">󰋊</span> <span color=\"#CAD3E8\">{percentage_used}%</span>",
"tooltip": true, "tooltip": true,
}, },
"mpris": {
"format": "{player_icon} {dynamic}",
"format-paused": "{status_icon} <i>{dynamic}</i>",
"dynamic-len": 50,
"ellipsis": "…",
"player-icons": {
"default": "▶",
"mpv": "🎵",
},
"status-icons": {
"paused": "⏸",
},
},
"network": { "network": {
// only show the Wi-Fi glyph on wifi… // only show the Wi-Fi glyph on wifi…
"format-wifi": "<span color=\"#4F84CC\"></span> <span color=\"#CAD3E8\">{essid} ({signalStrength}%)</span>", "format-wifi": "<span color=\"#4F84CC\"></span> <span color=\"#CAD3E8\">{essid} ({signalStrength}%)</span>",
@@ -73,10 +77,7 @@
"alsa_output.usb-SteelSeries_Arctis_7_-00.analog-stereo": "", // SteelSeries headset "alsa_output.usb-SteelSeries_Arctis_7_-00.analog-stereo": "", // SteelSeries headset
"alsa_output.pci-0000_0a_00.4.iec958-stereo": "", // speaker icon for your soundbar "alsa_output.pci-0000_0a_00.4.iec958-stereo": "", // speaker icon for your soundbar
"bluez_output.50_5E_5C_2D_F3_B2.1": "", // Bluetooth earbud icon "bluez_output.50_5E_5C_2D_F3_B2.1": "", // Bluetooth earbud icon
"default": [ "default": ["", ""], // fallback (low/hi)
"",
""
], // fallback (low/hi)
}, },
}, },
"bluetooth": { "bluetooth": {