Update polybar config for use with Linux

This commit is contained in:
2019-08-25 03:38:58 +02:00
parent 8cb021608c
commit 51303d5dac
4 changed files with 34 additions and 89 deletions

View File

@@ -24,7 +24,7 @@ font-1 = Siji:size=10;0
modules-left = workspaces
modules-center = date
modules-right = mpd wifi vol bat
modules-right = mpd network alsa battery
[module/title]
type = internal/xwindow
@@ -40,7 +40,7 @@ format-foreground = ${colors.foreground-alt}
[module/mpd]
type = internal/mpd
host = /home/coolneng/.mpd/socket
host = /home/coolneng/.config/mpd/socket
format-online = <icon-play> <icon-pause> <label-song>
format-offline = <label-offline>
@@ -55,30 +55,10 @@ interval = 2
[module/date]
type = internal/date
; Seconds to sleep between updates
interval = 1.0
; See "man date" for details on how to format the date string
; NOTE: if you want to use syntax tags here you need to use %%{...}
date = %a %d %b
; Optional time format
time = %H:%M
; if `date-alt` or `time-alt` is defined, clicking
; the module will toggle between formats
;date-alt = %A, %d %B %Y
;time-alt = %H:%M:%S
; Available tags:
; <label> (default)
format = <label>
; Available tokens:
; %date%
; %time%
; Default: %date%
label = %date% %time%
format-foreground = ${colors.foreground-alt}
@@ -104,17 +84,37 @@ label-empty = %name%
label-empty-padding = 1
label-empty-foreground = ${colors.foreground-alt}
[module/vol]
type = custom/script
exec = ~/.config/polybar/volume.sh
interval = 2
[module/network]
type = internal/network
interface = wlp2s0
label-connected = %essid%
format-connected = <ramp-signal> <label-connected>
format-disconnected = <label-disconnected>
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-foreground = ${colors.icon}
[module/bat]
type = custom/script
exec = ~/.config/polybar/battery.sh
interval = 2
[module/alsa]
type = internal/alsa
format-volume = <ramp-volume> <label-volume>
label-muted =  muted
label-muted-foreground = ${colors.icon}
ramp-volume = ${colors.icon}
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-volume-foreground = ${colors.icon}
[module/wifi]
type = custom/script
exec = ~/.config/polybar/wifi.sh
interval = 2
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP0
format-discharging = <ramp-capacity> <label-discharging>
format-charging = <animation-charging> <label-charging>
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
animation-charging-0 = 
animation-charging-foreground = ${colors.icon}
ramp-capacity-foreground = ${colors.icon}