diff --git a/.config/waybar/config b/.config/waybar/config.jsonc similarity index 88% rename from .config/waybar/config rename to .config/waybar/config.jsonc index c1aba7f..04ddb37 100644 --- a/.config/waybar/config +++ b/.config/waybar/config.jsonc @@ -7,7 +7,7 @@ // Choose the order of the modules "modules-left": ["custom/archicon","hyprland/workspaces", "custom/media", ], "modules-center": ["hyprland/window"], - "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "clock", "tray"], + "modules-right": ["mpris", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "clock", "tray"], // Modules configuration // "sway/workspaces": { // "disable-scroll": true, @@ -53,6 +53,24 @@ "tooltip": true, "tooltip-format": "{app}: {title}" }, + "mpris": { + "interval": 3, + "format": " {status_icon} ", + "format-paused": " {status_icon} ", + "tooltip-format": " {player_icon} {dynamic} ", + "tooltip-format-paused": " {player_icon} {dynamic} ", + "player-icons": { + "default": "󰎄", + "mpv": "", + "YoutubeMusic": "" + }, + "status-icons": { + "playing": "", + "paused": "", + "stopped": "" + }, + // "ignored-players": ["firefox"] + }, "mpd": { "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ", "format-disconnected": "Disconnected ", @@ -88,7 +106,8 @@ }, "tray": { // "icon-size": 21, - "spacing": 10 + "spacing": 10, + "show-passive-items": true }, "clock": { // "timezone": "America/New_York", diff --git a/.config/waybar/launcher.sh b/.config/waybar/launcher.sh index 130cf19..729bee2 100755 --- a/.config/waybar/launcher.sh +++ b/.config/waybar/launcher.sh @@ -1,5 +1,5 @@ #!/bin/dash -CONFIG_FILES="$HOME/.config/waybar/config $HOME/.config/waybar/style.css" +CONFIG_FILES="$HOME/.config/waybar/config.jsonc $HOME/.config/waybar/style.css" trap "killall waybar" EXIT diff --git a/.config/waybar/style.css b/.config/waybar/style.css index c3daabe..5094240 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -88,7 +88,10 @@ button:hover { #wireplumber, #custom-media, #tray, +#mpris, +#keyboard-state, #mode, +#battery, #idle_inhibitor, #scratchpad, #mpd { @@ -238,7 +241,7 @@ label:focus { color: #2d3436; } -#mpd { +#mpd, #mpris { background-color: #66cc99; color: #2a5c45; } @@ -247,11 +250,11 @@ label:focus { background-color: #f53c3c; } -#mpd.stopped { +#mpd.stopped, #mpris.stopped { background-color: #90b1b1; } -#mpd.paused { +#mpd.paused, #mpris.paused { background-color: #51a37a; }