polybar添加mpd模块
parent
1d385684e0
commit
43f3b424ac
|
@ -1,3 +1,4 @@
|
|||
|
||||
;; ------------------------------
|
||||
|
||||
[global/wm]
|
||||
|
@ -10,7 +11,7 @@ include-file = ./modules.ini
|
|||
|
||||
[bar/main]
|
||||
;override-redirect = true
|
||||
;owm-restack = Xfwm4
|
||||
;owm-restack = bspwm
|
||||
|
||||
;locale = zh_CN.UTF-8
|
||||
|
||||
|
@ -20,7 +21,6 @@ foreground = ${color.foreground}
|
|||
|
||||
width = 100%
|
||||
height = 26
|
||||
|
||||
border-size = 6
|
||||
border-color = ${color.background}
|
||||
padding-left = 0
|
||||
|
@ -32,14 +32,15 @@ offset-y = 0
|
|||
|
||||
font-0 = "Raleway:size=11;3"
|
||||
font-1 = "HarmonyOS Sans SC:size=11;3"
|
||||
font-2 = "Symbols Nerd Font:size=15;4"
|
||||
font-2 = "Material Icons:size=14;5"
|
||||
font-3 = "Symbols Nerd Font:size=15;4"
|
||||
;font-3 = "DejaVu Sans:size=15;4"
|
||||
|
||||
fixed-center = true
|
||||
|
||||
modules-left = logo workspaces
|
||||
modules-left = logo workspace pipe-db mpd
|
||||
modules-center = date
|
||||
modules-right = netspeed volume space space hibernate space logout
|
||||
modules-right = netspeed volume pipe hibernate pipe logout
|
||||
|
||||
|
||||
tray-position = right
|
||||
|
@ -69,8 +70,6 @@ cursor-click = pointer
|
|||
|
||||
|
||||
[settings]
|
||||
throttle-output = 5
|
||||
throttle-output-for = 10
|
||||
|
||||
screenchange-reload = false
|
||||
|
||||
|
|
|
@ -6,4 +6,5 @@ include-file = ./modules/date.ini
|
|||
include-file = ./modules/speed.ini
|
||||
include-file = ./modules/workspace.ini
|
||||
include-file = ./modules/power.ini
|
||||
include-file = ./modules/volume.ini
|
||||
include-file = ./modules/volume.ini
|
||||
include-file = ./modules/mpd.ini
|
|
@ -0,0 +1,46 @@
|
|||
[module/mpd]
|
||||
type = internal/mpd
|
||||
|
||||
|
||||
format-online = <icon-prev> <toggle> <icon-next> <label-song>
|
||||
format-online-background = ${color.background}
|
||||
|
||||
|
||||
format-offline = <label-offline>
|
||||
format-offline-prefix = " "
|
||||
format-offline-background = ${color.background}
|
||||
|
||||
label-offline = "mpd is offline..."
|
||||
|
||||
|
||||
; 当前歌曲
|
||||
label-song = " %artist% - %title%"
|
||||
label-song-maxlen = 25
|
||||
label-song-ellipsis = true
|
||||
|
||||
; 歌曲时长
|
||||
;label-time = %elapsed%/%total%
|
||||
|
||||
|
||||
|
||||
icon-random =
|
||||
icon-repeat =
|
||||
toggle-on-foreground = ${color.green}
|
||||
toggle-off-foreground = ${color.blue}
|
||||
|
||||
|
||||
icon-play =
|
||||
icon-play-foreground = ${color.blue}
|
||||
|
||||
icon-pause =
|
||||
icon-pause-foreground = ${color.green}
|
||||
|
||||
icon-stop =
|
||||
icon-stop-foreground = ${color.red}
|
||||
|
||||
icon-prev =
|
||||
icon-prev-foreground = ${color.blue}
|
||||
|
||||
icon-next =
|
||||
icon-next-foreground = ${color.blue}
|
||||
|
Loading…
Reference in New Issue