mirror of
https://github.com/rywng/dotfiles.git
synced 2024-11-24 20:01:49 +08:00
waybar use playerctl for music
This commit is contained in:
parent
1749ca3343
commit
fdfcb750e3
@ -11,10 +11,12 @@ output * bg $(find ~/Pictures/Wallpapers/ -type f | shuf -n1) fill
|
|||||||
|
|
||||||
##starting userspace software
|
##starting userspace software
|
||||||
exec wlsunset -l 30.4 -L 104.0 -T 6500 -t 3500
|
exec wlsunset -l 30.4 -L 104.0 -T 6500 -t 3500
|
||||||
|
exec light -S 70
|
||||||
exec --no-startup-id pipewire
|
exec --no-startup-id pipewire
|
||||||
exec mako
|
exec mako
|
||||||
exec light -S 70
|
|
||||||
exec mpd
|
exec mpd
|
||||||
|
exec ~/.cache/go/bin/mpd-mpris
|
||||||
|
exec playerctld daemon
|
||||||
|
|
||||||
#my keybinds
|
#my keybinds
|
||||||
|
|
||||||
|
@ -4,39 +4,7 @@
|
|||||||
// Choose the order of the modules
|
// Choose the order of the modules
|
||||||
"modules-left": ["sway/workspaces", "sway/window"],
|
"modules-left": ["sway/workspaces", "sway/window"],
|
||||||
"modules-center": [],
|
"modules-center": [],
|
||||||
"modules-right": ["tray","mpd","custom/weather","network","battery","clock"],
|
"modules-right": ["tray","custom/player","custom/weather","network","battery","clock"],
|
||||||
"mpd": {
|
|
||||||
"format": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} {stateIcon}",
|
|
||||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
|
||||||
"format-disconnected": "Disconnected ",
|
|
||||||
"unknown-tag": "N/A",
|
|
||||||
"interval": 2,
|
|
||||||
"consume-icons": {
|
|
||||||
"on": " "
|
|
||||||
},
|
|
||||||
"random-icons": {
|
|
||||||
"on": " "
|
|
||||||
},
|
|
||||||
"repeat-icons": {
|
|
||||||
"on": " "
|
|
||||||
},
|
|
||||||
"single-icons": {
|
|
||||||
"on": "1 "
|
|
||||||
},
|
|
||||||
"state-icons": {
|
|
||||||
"paused": "",
|
|
||||||
"playing": ""
|
|
||||||
},
|
|
||||||
"tooltip-format": "MPD (connected)",
|
|
||||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
|
||||||
},
|
|
||||||
"idle_inhibitor": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"format-icons": {
|
|
||||||
"activated": "",
|
|
||||||
"deactivated": ""
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"tray": {
|
"tray": {
|
||||||
"spacing": 10
|
"spacing": 10
|
||||||
},
|
},
|
||||||
@ -69,5 +37,10 @@
|
|||||||
"custom/weather": {
|
"custom/weather": {
|
||||||
"exec": "sleep 10 && curl 'wttr.in/?format=%t+(%f)+%c' || echo 'No weather data '",
|
"exec": "sleep 10 && curl 'wttr.in/?format=%t+(%f)+%c' || echo 'No weather data '",
|
||||||
"interval": 1800
|
"interval": 1800
|
||||||
|
},
|
||||||
|
"custom/player": {
|
||||||
|
"exec": "playerctl metadata --format '{{uc(playerName)}}: {{ artist }} - {{ album }} - {{ title }} {{emoji(status)}}'",
|
||||||
|
"interval": 10,
|
||||||
|
"on-click": "playerctl play-pause"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ window#waybar {
|
|||||||
#clock,
|
#clock,
|
||||||
#battery,
|
#battery,
|
||||||
#network,
|
#network,
|
||||||
#mpd,
|
#custom-player,
|
||||||
#custom-weather {
|
#custom-weather {
|
||||||
background-color: #161821;
|
background-color: #161821;
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
@ -70,7 +70,7 @@ window#waybar {
|
|||||||
animation-direction: alternate;
|
animation-direction: alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
#mpd {
|
#custom-player {
|
||||||
border-radius: 2px 0px 0px 2px;
|
border-radius: 2px 0px 0px 2px;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user