Polish Mopidy integration

This commit is contained in:
Salt 2017-07-30 17:24:27 -05:00
parent 1784dc717d
commit 761825df50
2 changed files with 113 additions and 19 deletions

View File

@ -1,6 +1,6 @@
[core]
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
config_dir = ~/.config/mopidy
data_dir = /var/lib/mopidy
[logging]
@ -13,3 +13,11 @@ media_dir = /var/lib/mopidy/media
[m3u]
playlists_dir = /var/lib/mopidy/playlists
[youtube]
enabled = true
[soundcloud]
enabled = true
explore_songs = 25
auth_token = 1-35204-100376744-d1083c37e92bde

View File

@ -14,16 +14,18 @@ foreground = ${xrdb:color15:#ebdbb2}
foreground-alt = ${xrdb:color8:#928374}
primary = ${xrdb:color10:#b8bb26}
secondary = ${xrdb:color2:#98971a}
primary-alt = ${xrdb:color12:#83a598}
secondary-alt = ${xrdb:color4:#458588}
alert = ${xrdb:color9:#fb4934}
[bar/bar1]
[bar/top]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 24
;offset-x = 10%
;offset-y = 1%
radius = 0.0
fixed-center = false
fixed-center = true
bottom = false
background = ${colors.background}
@ -43,16 +45,19 @@ module-margin-right = 3
font-0 = fixed:pixelsize=10;1
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-1 = "Overpass:size=10;1"
;font-0 = "Overpass:size=10;1"
;font-2 = siji:pixelsize=10;1
font-2 = "Overpass:size=6;1"
;font-2 = "Overpass:size=6;1"
font-1 = "Overpass:size=10;1"
font-2 = "Symbola:size=10;1"
font-3 =
modules-left = i3
modules-center = xwindow
modules-right = cpu memory separator battery volume separator wlan eth temperature separator date redshift
modules-left = i3 separator xwindow
modules-center = date
modules-right = redshift
;tray-position = right
;tray-padding = 2
tray-position = right
tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
@ -67,12 +72,63 @@ modules-right = cpu memory separator battery volume separator wlan eth temperatu
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
[bar/bottom]
;monitor = ${env:MONITOR:HDMI-1}
width = ${bar/top.width}
height = ${bar/top.height}
;offset-x = 10%
;offset-y = 1%
radius = ${bar/top.radius}
fixed-center = true
bottom = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = ${bar/top.line-size}
line-color = ${bar/top.line-color}
;border-size = 5
border-color = #00000000
padding-left = ${bar/top.padding-left}
padding-right = ${bar/top.padding-right}
module-margin-left = ${bar/top.module-margin-left}
module-margin-right = ${bar/top.module-margin-right}
font-0 = ${bar/top.font-0}
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-1 = ${bar/top.font-1}
;font-2 = siji:pixelsize=10;1
font-2 = ${bar/top.font-2}
modules-left = cpu memory
modules-center = mpd
modules-right = battery volume separator wlan eth temperature
;tray-position = right
;tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
;wm-restack = bspwm
;wm-restack = i3
;override-redirect = true
;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev
;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev
[module/separator]
type = custom/text
content = "|"
content-foreground = ${colors.foreground}
content-padding = 1
fc-list | cut -f2 -d: | sort -u
[module/redshift]
type = custom/script
format = <label>
@ -168,21 +224,44 @@ label-urgent-padding = ${self.label-focused-padding}
[module/mpd]
type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 
format-online = <label-song> <bar-progress> <label-time>
format-offline = <label-offline>
icon-prev = <<
icon-prev-foreground = ${colors.foreground}
icon-stop = ▪
icon-play = ▶
icon-pause = ▮▮
icon-pause-font = 3
icon-random =
icon-repeat = ⟳
icon-repeat-once = ⟳1
icon-next = >>
icon-next-foreground = ${colors.foreground}
label-song = %title% - %artist%
label-song-foreground = ${colors.foreground}
label-song-maxlen = 25
label-song-ellipsis = true
label-offline = "/// MPD ///"
label-offline-foreground = ${colors.background-alt}
label-time = %elapsed%/%total%
label-time-foreground = ${colors.foreground}
bar-progress-width = 100
bar-progress-indicator = ${module/bartemplate.bar-indicator}
bar-progress-fill = ${module/bartemplate.bar-fill}
bar-progress-fill-foreground = ${colors.primary-alt}
bar-progress-empty = ${module/bartemplate.bar-empty}
bar-progress-empty-foreground = ${module/bartemplate.bar-empty-foreground}
interval = 1
[module/bartemplate]
format = <label> <bar>
label = "<TEMPLATE>"
label-foreground = ${colors.foreground}
bar-width = 30
bar-fill = /
bar-fill-font = 1
@ -209,6 +288,7 @@ card = intel_backlight
type = internal/cpu
format = <label> <bar-load>
label = "CPU"
label-foreground = ${module/bartemplate.label-foreground}
bar-load-width = ${module/bartemplate.bar-width}
bar-load-fill = ${module/bartemplate.bar-fill}
bar-load-fill-font = ${module/bartemplate.bar-fill-font}
@ -223,6 +303,7 @@ interval = 1
type = internal/memory
format = <label> <bar-used>
label = "MEM"
label-foreground = ${module/bartemplate.label-foreground}
bar-used-width = ${module/bartemplate.bar-width}
bar-used-fill = ${module/bartemplate.bar-fill}
bar-used-fill-font = ${module/bartemplate.bar-fill-font}
@ -265,6 +346,7 @@ format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
label-connected-foreground = ${colors.primary}
format-disconnected =
;format-disconnected = <label-disconnected>
@ -281,12 +363,14 @@ date = " %Y-%m-%d"
time = %H:%M
label = %date% %time%
label-foreground = ${colors.foreground}
[module/volume]
type = internal/volume
format-volume = <label-volume> <bar-volume>
label-volume = 🔊VOL
label-volume = VOL
label-volume-foreground = ${colors.foreground}
format-muted = <label-muted> <bar-volume>
label-muted = VOL
@ -315,6 +399,7 @@ label-charging = CHR
label-charging-foreground = ${self.bar-capacity-fill-foreground}
format-discharging = <label-discharging> <bar-capacity>
label-discharging = BAT
label-discharging-foreground = ${colors.foreground}
format-full = <label-full> <bar-capacity>
label-full = BAT
label-full-foreground = ${self.bar-capacity-fill-foreground}
@ -338,6 +423,7 @@ format = <label>
format-warn = <label-warn>
label = %temperature%
label-foreground = ${colors.foreground}
label-warn = %temperature%
label-warn-foreground = ${xrdb:color9:#fb4934}