polybar: adapt to a first functional version

This commit is contained in:
Johannes Rothe 2018-09-19 18:21:27 +02:00
parent e69b8a84b4
commit 1810914530

View File

@ -28,9 +28,9 @@ secondary = #e60053
alert = #bd2c40 alert = #bd2c40
[bar/thebar] [bar/thebar]
;monitor = ${env:MONITOR:HDMI-1} monitor = ${env:MONITOR:eDP1}
width = 100% width = 100%
height = 27 height = 23
;offset-x = 1% ;offset-x = 1%
;offset-y = 1% ;offset-y = 1%
;radius = 6.0 ;radius = 6.0
@ -40,10 +40,10 @@ bottom = true
background = ${colors.background} background = ${colors.background}
foreground = ${colors.foreground} foreground = ${colors.foreground}
line-size = 3 #line-size = 3
line-color = #f00 #line-color = #f00
border-size = 4 border-size = 1
border-color = #00000000 border-color = #00000000
padding-left = 0 padding-left = 0
@ -52,13 +52,13 @@ padding-right = 2
module-margin-left = 1 module-margin-left = 1
module-margin-right = 2 module-margin-right = 2
font-0 = fixed:pixelsize=10;1 font-0 = roboto:pixelsize=10;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=10;1 font-2 = roboto:pixelsize=10;1
modules-left = bspwm i3 modules-left = i3
modules-center = mpd #modules-center = mpd
modules-right = filesystem xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu modules-right = xbacklight pactl xkeyboard memory cpu wlan eth temperature battery date powermenu
tray-position = right tray-position = right
tray-padding = 2 tray-padding = 2
@ -87,7 +87,7 @@ label = %title:0:30:...%
type = internal/xkeyboard type = internal/xkeyboard
blacklist-0 = num lock blacklist-0 = num lock
format-prefix = " " #format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary} format-prefix-underline = ${colors.secondary}
@ -169,18 +169,18 @@ label-urgent-padding = ${module/bspwm.label-urgent-padding}
; label-separator = | ; label-separator = |
[module/mpd] #[module/mpd]
type = internal/mpd #type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next> #format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
#
icon-prev =  #icon-prev = 
icon-stop =  #icon-stop = 
icon-play =  #icon-play = 
icon-pause =  #icon-pause = 
icon-next =  #icon-next = 
#
label-song-maxlen = 25 #label-song-maxlen = 25
label-song-ellipsis = true #label-song-ellipsis = true
[module/xbacklight] [module/xbacklight]
type = internal/xbacklight type = internal/xbacklight
@ -188,7 +188,7 @@ type = internal/xbacklight
format = <label> <bar> format = <label> <bar>
label = BL label = BL
bar-width = 10 bar-width = 5
bar-indicator = | bar-indicator = |
bar-indicator-foreground = #fff bar-indicator-foreground = #fff
bar-indicator-font = 2 bar-indicator-font = 2
@ -207,40 +207,41 @@ card = intel_backlight
[module/cpu] [module/cpu]
type = internal/cpu type = internal/cpu
interval = 2 interval = 2
format-prefix = " " #format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000 format-underline = #f90000
label = %percentage:2%% label = CPU %percentage:2%%
[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 2 interval = 2
format-prefix = " " #format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc format-underline = #4bffdc
label = %percentage_used%% label = MEM %percentage_used%%
[module/wlan] [module/wlan]
type = internal/network type = internal/network
interface = wlp4s0 interface = wlp4s0
interval = 3.0 interval = 3.0
format-connected = <ramp-signal> <label-connected> #format-connected = <ramp-signal> <label-connected>
format-connected = <label-connected>
format-connected-underline = #9f78e1 format-connected-underline = #9f78e1
label-connected = %essid% label-connected = %essid% (%signal%%) %local_ip%
format-disconnected = format-disconnected = no_wifi
;format-disconnected = <label-disconnected> ;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline} ;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected ;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt} ;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 =  #ramp-signal-0 = 
ramp-signal-1 =  #ramp-signal-1 = 
ramp-signal-2 =  #ramp-signal-2 = 
ramp-signal-3 =  #ramp-signal-3 = 
ramp-signal-4 =  #ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground-alt} #ramp-signal-foreground = ${colors.foreground-alt}
[module/eth] [module/eth]
type = internal/network type = internal/network
@ -248,7 +249,7 @@ interface = enp0s31f6
interval = 3.0 interval = 3.0
format-connected-underline = #55aa55 format-connected-underline = #55aa55
format-connected-prefix = " " #format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt} format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip% label-connected = %local_ip%
@ -262,13 +263,11 @@ format-disconnected =
type = internal/date type = internal/date
interval = 5 interval = 5
date = date = " %Y-%m-%d"
date-alt = " %Y-%m-%d"
time = %H:%M time = %H:%M
time-alt = %H:%M:%S
format-prefix =  #format-prefix = 
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5 format-underline = #0a6cf5
@ -308,7 +307,7 @@ format-volume = <label-volume> <bar-volume>
label-volume = VOL label-volume = VOL
label-volume-foreground = ${root.foreground} label-volume-foreground = ${root.foreground}
format-muted-prefix = " " #format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt} format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted label-muted = sound muted
@ -323,62 +322,66 @@ bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false bar-volume-gradient = false
bar-volume-indicator = | bar-volume-indicator = |
bar-volume-indicator-font = 2 bar-volume-indicator-font = 2
bar-volume-fill = ─ bar-volume-fill = ─ bar-volume-fill-font = 2
bar-volume-fill-font = 2
bar-volume-empty = ─ bar-volume-empty = ─
bar-volume-empty-font = 2 bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt} bar-volume-empty-foreground = ${colors.foreground-alt}
[module/battery] [module/battery]
type = internal/battery type = internal/battery
battery = BAT1 battery = BAT0
adapter = AC adapter = AC
full-at = 98 full-at = 98
format-charging = <animation-charging> <label-charging> #format-charging = <animation-charging> <label-charging>
format-charging = CHR
format-charging-underline = #ffb52a format-charging-underline = #ffb52a
format-discharging = <animation-discharging> <label-discharging> #format-discharging = <animation-discharging> <label-discharging>
format-discharging-underline = ${self.format-charging-underline} format-discharging = DSC
#format-discharging-underline = ${self.format-charging-underline}
format-full-prefix = " " #format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt} format-full-prefix = FUL
format-full-underline = ${self.format-charging-underline} #format-full-prefix-foreground = ${colors.foreground-alt}
#format-full-underline = ${self.format-charging-underline}
ramp-capacity-0 =  #ramp-capacity-0 = 
ramp-capacity-1 =  #ramp-capacity-1 = 
ramp-capacity-2 =  #ramp-capacity-2 = 
ramp-capacity-foreground = ${colors.foreground-alt} #ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 =  #animation-charging-0 = 
animation-charging-1 =  #animation-charging-1 = 
animation-charging-2 =  #animation-charging-2 = 
animation-charging-foreground = ${colors.foreground-alt} #animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750 #animation-charging-framerate = 750
animation-discharging-0 =  #animation-discharging-0 = 
animation-discharging-1 =  #animation-discharging-1 = 
animation-discharging-2 =  #animation-discharging-2 = 
animation-discharging-foreground = ${colors.foreground-alt} #animation-discharging-foreground = ${colors.foreground-alt}
animation-discharging-framerate = 750 #animation-discharging-framerate = 750
[module/temperature] [module/temperature]
type = internal/temperature type = internal/temperature
thermal-zone = 0 thermal-zone = 0
warn-temperature = 60 warn-temperature = 60
format = <ramp> <label> #format = <ramp> <label>
format = <label>
format-underline = #f50a4d format-underline = #f50a4d
format-warn = <ramp> <label-warn> #format-warn = <ramp> <label-warn>
format-warn = <label-warn>
format-warn-underline = ${self.format-underline} format-warn-underline = ${self.format-underline}
label = %temperature-c% label = %temperature-c%
label-warn = %temperature-c% label-warn = %temperature-c%
label-warn-foreground = ${colors.secondary} label-warn-foreground = ${colors.secondary}
ramp-0 =  #ramp-0 = 
ramp-1 =  #ramp-1 = 
ramp-2 =  #ramp-2 = 
ramp-foreground = ${colors.foreground-alt} ramp-foreground = ${colors.foreground-alt}
[module/powermenu] [module/powermenu]
@ -388,9 +391,9 @@ expand-right = true
format-spacing = 1 format-spacing = 1
label-open = label-open = P
label-open-foreground = ${colors.secondary} label-open-foreground = ${colors.secondary}
label-close = cancel label-close = cancel
label-close-foreground = ${colors.secondary} label-close-foreground = ${colors.secondary}
label-separator = | label-separator = |
label-separator-foreground = ${colors.foreground-alt} label-separator-foreground = ${colors.foreground-alt}
@ -399,6 +402,8 @@ menu-0-0 = reboot
menu-0-0-exec = menu-open-1 menu-0-0-exec = menu-open-1
menu-0-1 = power off menu-0-1 = power off
menu-0-1-exec = menu-open-2 menu-0-1-exec = menu-open-2
menu-0-2 = logout
menu-0-2-exec = menu-open-3
menu-1-0 = cancel menu-1-0 = cancel
menu-1-0-exec = menu-open-0 menu-1-0-exec = menu-open-0
@ -410,6 +415,20 @@ menu-2-0-exec = sudo poweroff
menu-2-1 = cancel menu-2-1 = cancel
menu-2-1-exec = menu-open-0 menu-2-1-exec = menu-open-0
menu-3-0 = log out
menu-3-0-exec = i3-msg exit
menu-3-1 = cancel
menu-3-1-exec = menu-open-0
[module/pactl]
type = custom/script
exec = ~/src/dotfiles/scripts/pulseaudio-tail.sh
lick-right = exec pavucontrol &
click-left = ~/src/dotfiles/scripts/pulseaudio-tail.sh --mute
scroll-up = ~/src/dotfiles/scripts/pulseaudio-tail.sh --up
scroll-down = ~/src/dotfiles/scripts/pulseaudio-tail.sh --down
tail = true
[settings] [settings]
screenchange-reload = true screenchange-reload = true
;compositing-background = xor ;compositing-background = xor