Switch waybar player handling, also breaking config
This commit is contained in:
@@ -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",
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user