dotfiles/polybar/config

395 lines
8.9 KiB
INI

[colors]
#background = #2d2d2d
background = rgba(0,0,0,0)
#foreground = #f2f2f2
#separator = #66ffffff
#linecolor = #8e8e8e
#bordercolor = #333
#accent = #e60053
#background = ${xrdb:color0:#222}
foreground = #ffffff
foreground-alt = ${xrdb:color7:#222}
primary = ${xrdb:color1:#222}
secondary = ${xrdb:color2:#222}
alert = ${xrdb:color3:#222}
[settings]
screenchange-reload = true
;throttle-output-for = 10
;throttle-output = 5
;throttle-input-for = 40
;compositing-background = over
;compositing-background = screen
;compositing-foreground = xor
;compositing-foreground = source
;compositing-border = over
[global/wm]
;margin-top = 3
;margin-bottom = 0
[bar/top]
monitor = ${env:MONITOR:}
height = 50
radius = 0.0
fixed-center = false
;override-redirect = true
padding = 1
module-margin = 0
line-size = 0
background = ${colors.background}
foreground = ${colors.foreground}
line-color = ${colors.background}
underline-size = 4
;overline-size = 2
border-size = 2
border-color = ${colors.background}
;border-top-size = 4
;border-bottom-size = 4
;border-bottom-color = ${colors.bordercolor}
;padding-left = 0
;padding-right = 2
;module-margin-left = 1
;module-margin-right = 2
;font-0 = dina:pixelsize=10;1
font-0 = "Inconsolata:pixelsize=26:weight=bold;5"
font-1 = siji:pixelsize=10;1
font-2 = unifont:size=6;1
font-3 = "Material Icons:size=30;10"
modules-left = i3 mpd
;modules-center = mpd
;modules-center = xwindow
modules-right = wifi vpn internalip public-ip battery time date
tray-position = right
tray-padding = 2
tray-maxsize = 40
tray-background = ${root.background}
tray-detached = false
;tray-scale = 2.0
;tray-offset-x = 50
wm-restack = i3
dim-value = 1.0
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
[module/public-ip]
type = custom/script
exec = wget -qO - icanhazip.com
interval = 600
label =  %output%
#format-underline = ${xrdb:color5}
format-foreground = #ffffff
format-padding = 2
[module/i3]
type = internal/i3
index-sort = true
pin-workspaces = true
wrapping-scroll = true
strip-wsnumbers = true
;reverse-scroll = false
;enable-scroll = false
enable-click = true
;format = <label-state> <label-mode>
label-mode = %mode%
label-mode-padding = 1
#label-mode-background = ${colors.primary}
label-focused = %icon%
label-focused-foreground = #000000
#label-focused-background = ${xrdb:color5}
#label-focused-underline = ${colors.secondary}
label-focused-padding = 1
label-unfocused = %icon%
label-unfocused-padding = 1
label-urgent = %icon%!
label-urgent-foreground = $FF0000
#label-urgent-foreground = ${colors.alert}
#label-urgent-background = #bd2c40
label-urgent-padding = 1
label-separator-padding = 2
label-visible-padding = 1
label-visible = %icon%
ws-icon-0 = 1:I;
ws-icon-1 = 2:II;
ws-icon-2 = 3:III;
ws-icon-3 = 4:IV;
ws-icon-4 = 5:V;
ws-icon-5 = 6:VI;
ws-icon-6 = 7:VII;
ws-icon-7 = 8:VIII;
ws-icon-8 = 9:IX;
ws-icon-9 = 100:spotify;
[module/internalip]
type = internal/network
interface = ${env:IFACE:}
interval = 5
;udspeed-minwidth = 0
format-connected =  <label-connected>
#format-connected-underline = ${xrdb:color6:#222}
format-connected-foreground = #ffffff
#format-disconnected-underline = ${xrdb:color6:#222}
format-disconnected-foreground = #ffffff
format-connected-padding = 2
format-disconnected-padding = 2
; Available tags:
; <label-disconnected> (default)
format-disconnected =
; Available tags:
; <label-connected> (default)
; <label-packetloss>
; <animation-packetloss>
format-packetloss = <label-connected>
; Available tokens:
; %ifname% [wireless+wired]
; %local_ip% [wireless+wired]
; %local_ip6% [wireless+wired]
; %essid% [wireless]
; %signal% [wireless]
; %upspeed% [wireless+wired]
; %downspeed% [wireless+wired]
; %linkspeed% [wired]
; Default: %ifname% %local_ip%
label-connected = %local_ip%
;label-connected-foreground = #eefafafa
; Available tokens:
; %ifname% [wireless+wired]
; Default: (none)
label-disconnected = not connected
label-disconnected-foreground = #66ffffff
; Available tokens:
; %ifname% [wireless+wired]
; %local_ip% [wireless+wired]
; %local_ip6% [wireless+wired]
; %essid% [wireless]
; %signal% [wireless]
; %linkspeed% [wired]
; Default: (none)
label-packetloss = %essid%
label-packetloss-foreground = #eefafafa
[module/wifi]
type = internal/network
interface = wlp1s0
interval = 5
;udspeed-minwidth = 0
format-connected = <label-connected>
#format-connected-underline = ${xrdb:color6:#222}
format-connected-foreground = #ffffff
#format-disconnected-underline = ${xrdb:color6:#222}
format-disconnected-foreground = #ffffff
format-connected-padding = 2
format-disconnected-padding = 2
; Available tags:
; <label-disconnected> (default)
format-disconnected = <label-disconnected>
; Available tags:
; <label-connected> (default)
; <label-packetloss>
; <animation-packetloss>
format-packetloss = <label-connected>
; Available tokens:
; %ifname% [wireless+wired]
; %local_ip% [wireless+wired]
; %local_ip6% [wireless+wired]
; %essid% [wireless]
; %signal% [wireless]
; %upspeed% [wireless+wired]
; %downspeed% [wireless+wired]
; %linkspeed% [wired]
; Default: %ifname% %local_ip%
label-connected = %essid%
;label-connected-foreground = #eefafafa
; Available tokens:
; %ifname% [wireless+wired]
; Default: (none)
label-disconnected = not connected
label-disconnected-foreground = #66ffffff
; Available tokens:
; %ifname% [wireless+wired]
; %local_ip% [wireless+wired]
; %local_ip6% [wireless+wired]
; %essid% [wireless]
; %signal% [wireless]
; %linkspeed% [wired]
; Default: (none)
label-packetloss = %essid%
label-packetloss-foreground = #eefafafa
[module/time]
type = internal/date
; Seconds to sleep between updates
interval = 10.0
; 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
label =  %time%
;format-background = ${xrdb:color10:#222}
format-foreground = #FFFFFF
#format-underline = ${xrdb:color10:#222}
;format-overline = #7bfc67
format-padding = 2
[module/date]
type = internal/date
interval = 600.0
; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
; NOTE: if you want to use syntax tags here you need to use %%{...}
date = %d.%m%
label =  %date%
;format-background = ${xrdb:color10:#222}
format-foreground = #FFFFFF
#format-underline = ${xrdb:color10:#222}
;format-overline = #7bfc67
format-padding = 2
[module/battery]
type = internal/battery
full-at = 98
#format-discharging-underline = ${xrdb:color4:#222}
format-discharging-foreground = #ffffff
#format-charging-underline = ${xrdb:color4:#222}
format-charging-foreground = #ffffff
format-charging-padding = 2
format-discharging-padding = 2
format-full-padding = 2
#format-full-underline = ${xrdb:color4:#222}
format-full-foreground = #ffffff
battery = BAT0
adapter = AC
; see "man date" for details on how to format the time string
; NOTE: if you want to use syntax tags here you need to use %%{...}
; Default: %H:%M:%S
time-format = %H:%M
; Available tags:
; <label-charging> (default)
; <bar-capacity>
; <ramp-capacity>
; <animation-charging>
format-charging = <label-charging>
; Available tags:
; <label-discharging> (default)
; <bar-capacity>
; <ramp-capacity>
; <animation-discharging>
format-discharging = <label-discharging>
; Available tags:
; <label-full> (default)
; <bar-capacity>
; <ramp-capacity>
;format-full = <ramp-capacity> <label-full>
; Available tokens:
; %percentage% (default)
; %time%
; %consumption% (shows current charge rate in watts)
label-charging =  %percentage%%
; Available tokens:
; %percentage% (default)
; %time%
; %consumption% (shows current discharge rate in watts)
label-discharging =  %percentage%%
; Available tokens:
; %percentage% (default)
label-full =
; Only applies if <bar-capacity> is used
;bar-capacity-width = 10
[module/vpn]
type = custom/script
exec = pgrep openvpn >/dev/null && printf "up\n" || printf "down\n"
exec-if = pgrep -x openvpn
interval = 5
label =
;format-underline = #268bd2
;format-prefix = "vpn: "
format-spacing = 1
#format-underline = ${xrdb:color3:#222}
format-foreground = #ffffff
;format-underline = ${xrdb:color3:#222}
;format-overline = #3c28d6
format-padding = 2
[module/mpd]
type = internal/mpd
; Host where mpd is running (either ip or domain name)
; Can also be the full path to a unix socket where mpd is running.
host = 127.0.0.1
port = 6600
; Seconds to sleep between progressbar/song timer sync
; Default: 1
interval = 1
format-online = <icon-prev> <toggle> <icon-next> <label-song> <label-time>
label-song = %artist% / %title%
label-time = (%elapsed% / %total%)
icon-play =
icon-pause =
icon-prev =
icon-next =
#format-online-underline = ${xrdb:color6:#222}
format-online-foreground = #ffffff
;format-underline = ${xrdb:color3:#222}
;format-overline = #3c28d6
format-online-padding = 2
; vim:ft=dosini