dotfiles/polybar/config
2019-01-12 09:03:53 +00:00

360 lines
7.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 = ${xrdb:color7:#222}
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 = 0
;margin-bottom = 0
[bar/top]
monitor = ${env:MONITOR:eDP1}
height = 26
radius = 7.0
;fixed-center = false
;override-redirect = true
padding = 2
module-margin = 2
line-size = 2
background = ${colors.background}
foreground = ${colors.foreground}
;line-color = ${colors.linecolor}
;underline-size = 1
;overline-size = 2
#border-size = 3
;border-color = 0
#border-top-size = 4
;border-bottom-size = 2
;border-bottom-color = ${colors.bordercolor}
;padding-left = 0
;padding-right = 2
;module-margin-left = 1
;module-margin-right = 2
font-0 = dina:pixelsize=9;1
font-1 = siji:pixelsize=10;1
font-2 = unifont:size=6;1
modules-left = i3
;modules-center = mpd
modules-center = xwindow
modules-right = wifi public-ip vpn battery powermenu date
;tray-position = left
;tray-padding = 4
;tray-maxsize = 16
;tray-transparent = true
;tray-detached = true
;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 = 60
label = %output%
format-background = ${xrdb:color5:#222}
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 = 2
label-mode-background = ${colors.primary}
;label-focused = %index%
label-focused-foreground = ${colors.foreground}
label-focused-background = ${colors.background}
label-focused-underline = ${colors.secondary}
label-focused-padding = 4
;label-unfocused = %index%
label-unfocused-padding = 4
;label-urgent = %index%!
label-urgent-foreground = ${colors.alert}
label-urgent-background = #bd2c40
label-urgent-padding = 4
;label-visible = %index%
[module/wifi]
type = internal/network
interface = wlp3s0
interval = 5
;udspeed-minwidth = 0
format-connected = <label-connected>
format-connected-background = ${xrdb:color6:#222}
format-disconnected-background = ${xrdb:color6:#222}
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 = <animation-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% %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
; Only applies if <ramp-signal> is used
ramp-signal-0 = 😱
ramp-signal-1 = 😠
ramp-signal-2 = 😒
ramp-signal-3 = 😊
ramp-signal-4 = 😃
ramp-signal-5 = 😈
; Only applies if <animation-packetloss> is used
animation-packetloss-0 =
animation-packetloss-0-foreground = #ffa64c
animation-packetloss-1 = 📶
animation-packetloss-1-foreground = #000000
; Framerate in milliseconds
animation-packetloss-framerate = 500
[module/date]
type = internal/date
; Seconds to sleep between updates
interval = 10.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%
; 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 = %date% %time%
format-background = ${xrdb:color10:#222}
format-foreground = #FFFFFF
;format-underline = #7bfc67
;format-overline = #7bfc67
format-padding = 2
[module/battery]
type = internal/battery
full-at = 98
format-discharging-background = ${xrdb:color4:#222}
format-charging-background = ${xrdb:color4:#222}
format-charging-padding = 2
format-discharging-padding = 2
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 = <animation-charging> <label-charging>
; Available tags:
; <label-discharging> (default)
; <bar-capacity>
; <ramp-capacity>
; <animation-discharging>
format-discharging = <ramp-capacity> <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 = chg: %percentage%%
; Available tokens:
; %percentage% (default)
; %time%
; %consumption% (shows current discharge rate in watts)
label-discharging = dis: %percentage%%
; Available tokens:
; %percentage% (default)
label-full = full
; Only applies if <ramp-capacity> is used
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
; Only applies if <bar-capacity> is used
bar-capacity-width = 10
; Only applies if <animation-charging> is used
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
; Framerate in milliseconds
animation-charging-framerate = 750
; Only applies if <animation-discharging> is used
animation-discharging-0 =
animation-discharging-1 =
animation-discharging-2 =
animation-discharging-3 =
animation-discharging-4 =
; Framerate in milliseconds
animation-discharging-framerate = 500
[module/xwindow]
type = internal/xwindow
format = <label>
label-maxlen = 75
[module/counter]
type = internal/counter
format = <counter>
interval = 0.1
[module/powermenu]
type = custom/menu
format-spacing = 1
label-open =power
label-foreground = #FFFFFF
;label-open-foreground = ${colors.separator}
label-close = cancel
;label-close-foreground = ${colors.separator}
label-separator = |
;label-separator-foreground = ${colors.separator}
menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
;menu-1-0 = cancel
;menu-1-0-exec = menu-open-0
menu-1-0 = reboot
menu-1-0-exec = reboot
menu-2-0 = power off
menu-2-0-exec = poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
;format-label-foreground = #5b
format-background = ${xrdb:color2:#222}
format-foreground = #FFFFFF
;format-underline = #b51e3a
;format-overline = #b51e3a
format-padding = 2
[module/vpn]
type = custom/script
exec = pgrep openvpn >/dev/null && printf "up\n" || printf "down\n"
interval = 5
label = %output%
;format-underline = #268bd2
format-prefix = "vpn: "
format-spacing = 1
format-background = ${xrdb:color3:#222}
format-foreground = #ffffff
;format-underline = #3c28d6
;format-overline = #3c28d6
format-padding = 2
; vim:ft=dosini