This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/de/bar/polybar-config
2017-05-05 00:55:43 -05:00

373 lines
8.4 KiB
Plaintext

;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
background = ${xrdb:color0:#111}
background-alt = ${xrdb:color2:#333}
foreground = ${xrdb:color7:#222}
foreground-alt = #555
primary = ${xrdb:color1:#222}
secondary = ${xrdb:color3:#222}
alert = #bd2c40
[bar/lytedev]
monitor = ${env:BAR_MONITOR:HDMI-1}
width = ${env:BAR_WIDTH:HDMI-1}
height = ${env:BAR_HEIGHT:30}
offset-x = ${env:POS_X:30}
offset-y = ${env:POS_Y:30}
radius = 0.0
fixed-center = false
bottom = ${env:BAR_BOTTOM:true}
dpi = ${xrdb:dpi:92}
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 0
border-color = #00000000
padding-left = 0
padding-right = 0
module-margin-left = 1
module-margin-right = 2
font-0 = ${env:BAR_FONT_DECLARATION}
font-1 = ${env:BAR_ICON_FONT_DECLARATION}
modules-left = bspwm
modules-center =
modules-right = xbacklight volume xkeyboard filesystem memory cpu battery temperature date powermenu
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/xwindow]
type = internal/xwindow
label = %title:0:30:...%
; [module/xkeyboard]
; type = internal/xkeyboard
; blacklist-0 = num lock
;
; format-prefix = ""
; format-prefix-foreground = ${colors.foreground-alt}
; format-prefix-underline = ${colors.secondary}
;
; label-layout = %layout%
; label-layout-underline = ${colors.secondary}
;
; label-indicator-padding = 2
; label-indicator-margin = 1
; label-indicator-background = ${colors.secondary}
; label-indicator-underline = ${colors.secondary}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /home
format = <label-mounted>
label-mounted = %percentage_used%%
label-mounted-foreground = ${xrdb:color6}
format-mounted-prefix = " "
format-mounted-prefix-foreground = ${colors.foreground-alt}
[module/bspwm]
ws-icon-0 = dev;
ws-icon-1 = web;
ws-icon-2 = gfx;
ws-icon-3 = env;
ws-icon-4 = play;
ws-icon-5 = out;
ws-icon-6 = misc;
ws-icon-7 = chat;
ws-icon-8 = mon;
ws-icon-9 = util;
ws-icon-default = ♟
label-focused-font = 2
label-occupied-font = 2
label-urgent-font = 2
label-empty-font = 2
; misc icon: 
type = internal/bspwm
pin-workspaces = false
label-focused = %icon%
label-focused-background = ${xrdb:color4}
label-focused-foreground = ${colors.background}
; label-focused-underline= ${colors.primary}
label-focused-padding = 2
label-occupied = %icon%
label-occupied-padding = 2
label-urgent = %icon%
label-urgent-background = ${xrdb:color3}
label-urgent-padding = 2
label-empty = %icon%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2
[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 = 
label-song-maxlen = 25
label-song-ellipsis = true
[module/xbacklight]
type = internal/xbacklight
format = <label> <bar>
format-foreground = ${colors.foreground-alt}
label = 
bar-width = 5
bar-indicator = |
bar-indicator-foreground = #fff
bar-indicator-font = 0
# bar-fill = ─
bar-fill = -
bar-fill-font = 0
bar-fill-foreground = ${xrdb:color3}
# bar-empty = ─
bar-empty = -
bar-empty-font = 0
bar-empty-foreground = ${xrdb:color3}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
; format-underline = #f90000
label = %percentage%%
label-foreground = ${xrdb:color6}
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
; format-underline = #4bffdc
label = %percentage_used%%
label-foreground = ${xrdb:color6}
[module/wlan]
type = internal/network
interface =
interval = 3.0
format-connected = <ramp-signal> <label-connected>
; format-connected-underline = #9f78e1
label-connected = %essid%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
interface =
interval = 3.0
; format-connected-underline = #55aa55
format-connected-prefix = "net "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
interval = 1
date = "%Y-%m-%d "
date-alt =
time = %H:%M:%S
time-alt = %H:%M
label-foreground = ${xrdb:color1}
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
; format-underline = #0a6cf5
label = %date%%time%
[module/volume]
type = internal/volume
format-volume = <label-volume> <bar-volume>
label-volume = 
label-volume-foreground = ${colors.foreground-alt}
format-muted-prefix =
format-muted-foreground = ${colors.foreground-alt}
label-muted = muted
bar-volume-width = 5
bar-volume-foreground-0 = ${xrdb:color3}
bar-volume-foreground-1 = ${xrdb:color3}
bar-volume-foreground-2 = ${xrdb:color3}
bar-volume-foreground-3 = ${xrdb:color3}
bar-volume-foreground-4 = ${xrdb:color3}
bar-volume-foreground-5 = ${xrdb:color3}
bar-volume-foreground-6 = ${xrdb:color3}
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 0
bar-volume-fill = -
bar-volume-fill-font = 0
bar-volume-empty = -
bar-volume-empty-font = 0
bar-volume-empty-foreground = ${colors.foreground-alt}
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 98
label-discharging-foreground = ${xrdb:color3}
label-charging-foreground = ${xrdb:color2}
label-full-foreground = ${xrdb:color4}
format-charging = <animation-charging> <label-charging>
format-discharging-prefix =
format-discharging-prefix-foreground = ${colors.foreground-alt}
format-discharging = <ramp-capacity> <label-discharging>
; format-discharging-underline = ${self.format-charging-underline}
format-charging-prefix =
format-charging-prefix-foreground = ${colors.foreground-alt}
format-full-prefix =
format-full-prefix-foreground = ${colors.foreground-alt}
; empty battery 
ramp-capacity-0 = ""
ramp-capacity-1 = ""
ramp-capacity-2 = ""
ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 = ""
animation-charging-1 = ""
animation-charging-2 = ""
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp><label>
; format-underline = #f50a4d
format-warn = <ramp> <label-warn>
; format-warn-underline = ${self.format-underline}
label-foreground = ${xrdb:color2}
format-prefix =
format-prefix-foreground = ${colors.foreground-alt}
label = %temperature%
label-warn = %temperature%
label-warn-foreground = ${xrdb:color1}
ramp-0 = " "
ramp-1 = " "
ramp-2 = " "
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
format-spacing = 1
label-open =
label-open-foreground = ${colors.secondary}
label-close = cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
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-1 = reboot
menu-1-1-exec = sudo reboot
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = ${env:WINDOW_GAP}
margin-bottom = ${env:WINDOW_GAP}