home/.config/polybar/config

490 lines
12 KiB
Plaintext
Raw Normal View History

2017-09-05 18:41:31 -05:00
#==================================================
#
# INFO: https://github.com/jaagr/polybar
#
#===================================================
#========================================
# RESOURCES
#========================================
[res/colors]
alert-dark = ${xrdb:color3}
alert = ${xrdb:color11}
alert-hard-dark = ${xrdb:color9}
alert-hard = ${xrdb:color1}
primary-dark = ${xrdb:color4}
primary = ${xrdb:color12}
resource-bad-dark = ${xrdb:color5}
resource-bad = ${xrdb:color13}
resource-good-dark = ${xrdb:color2}
resource-good = ${xrdb:color10}
background = ${xrdb:background}
background-2 = ${xrdb:bg2}
background-3 = ${xrdb:bg3}
background-4 = ${xrdb:bg4}
foreground = ${xrdb:foreground}
foreground-2 = ${xrdb:fg2}
foreground-3 = ${xrdb:fg3}
foreground-4 = ${xrdb:fg4}
2017-07-30 00:04:04 -05:00
underline-cpu = ${self.resource-bad-dark}
underline-fs = ${self.resource-bad-dark}
underline-memory = ${self.resource-bad-dark}
underline-temperature = ${self.resource-bad-dark}
underline-battery = ${self.resource-good-dark}
underline-backlight = ${self.primary-dark}
underline-network = ${self.primary-dark}
underline-date = ${self.primary-dark}
underline-volume = ${self.primary-dark}
[res/fonts]
font-0 = "xos4 Terminus:size=9;1"
2017-09-05 18:42:43 -05:00
font-1 = "Material Design Icons:size=12;1"
font-2 = "FontAwesome:size=10;1"
font-3 =
font-4 =
2017-07-30 17:24:27 -05:00
2017-09-05 18:41:31 -05:00
#========================================
# BARS
#========================================
2017-07-30 17:24:27 -05:00
2017-09-05 18:41:31 -05:00
# TEMPLATE
#====================
2017-07-30 17:24:27 -05:00
[template/bar]
2017-09-05 18:41:31 -05:00
# Rendering of the bar
width = 100%
height = 28
2017-07-30 17:24:27 -05:00
2017-09-05 18:41:31 -05:00
# Module padding and spacing
padding = 2
module-margin = 1
2017-07-30 17:24:27 -05:00
2017-09-04 00:43:04 -05:00
overline-size = 2
2017-09-06 14:11:24 -05:00
underline-size = 0
line-color = ${res/colors.background-2}
2017-09-05 18:41:31 -05:00
# Module colors
background = ${res/colors.background}
foreground = ${res/colors.foreground}
2017-07-30 17:24:27 -05:00
2017-09-05 18:41:31 -05:00
# Module fonts
font-0 = ${res/fonts.font-0}
font-1 = ${res/fonts.font-1}
font-2 = ${res/fonts.font-2}
font-3 = ${res/fonts.font-3}
font-4 = ${res/fonts.font-4}
2017-07-30 17:24:27 -05:00
2017-09-05 18:41:31 -05:00
# BARS
#====================
2017-08-23 23:26:33 -05:00
[bar/alpha]
inherit = template/bar
bottom = true
tray-position = right
2017-07-30 17:24:27 -05:00
border-top-size = 2
border-top-color = ${res/colors.background-2}
2017-09-01 22:54:22 -05:00
modules-left = i3 bspwm | wlan-network eth-network | mpd
2017-09-01 16:13:10 -05:00
modules-center = xwindow-label
2017-09-06 14:11:24 -05:00
modules-right = temperature-label cpu-label memory-label | xbacklight-ramp volume-ramp battery-ramp | date
2017-07-30 17:24:27 -05:00
[bar/gamma]
inherit = template/bar
bottom = true
tray-position = right
2017-09-06 21:53:39 -05:00
background = #001d2021
modules-left = i3 bspwm |
modules-center = xwindow-label
2017-09-07 20:37:01 -05:00
modules-right = | temperature-label-alert mpd-mini wlan-network-mini volume-ramp-mini battery-ramp-mini | date-mini
2017-09-05 18:41:31 -05:00
#========================================
# MODULES
#========================================
2017-07-30 00:04:04 -05:00
2017-09-05 18:41:31 -05:00
# COSMETIC
#====================
[module/|]
2017-07-30 00:04:04 -05:00
type = custom/text
content = |
2017-09-06 22:02:50 -05:00
content-foreground = ${res/colors.foreground-4}
2017-09-05 18:41:31 -05:00
# CUSTOM
#====================
2017-07-30 00:04:04 -05:00
2017-09-05 18:41:31 -05:00
# TEMPLATE
#====================
[template/module/battery]
type = internal/battery
battery = BAT0
format-charging-underline = ${res/colors.underline-battery}
format-discharging-underline = ${res/colors.underline-battery}
format-full-underline = ${res/colors.underline-battery}
adapter = AC
full-at = 95
interval = 15
[template/module/cpu]
type = internal/cpu
format-underline = ${res/colors.underline-cpu}
interval = 1
[template/module/network]
type = internal/network
interface = wlp1s0
format-connected = <label-connected>
format-connected-underline = ${res/colors.underline-network}
format-connected-prefix = " "
format-connected-prefix-foreground = ${self.format-connected-underline}
format-disconnected = <label-disconnected>
format-disconnected-overline = ${res/colors.alert}
format-disconnected-underline = ${res/colors.underline-network}
format-disconnected-prefix = " "
format-disconnected-prefix-foreground = ${res/colors.alert}
label-connected = %upspeed% %downspeed% - %signal%%
label-disconnected =
interval = 1
[template/module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 50
2017-09-05 18:41:31 -05:00
# STOCK
#====================
2017-07-30 00:04:04 -05:00
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
label-mode-padding = 2
label-mode-foreground = ${res/colors.background}
2017-08-20 18:12:22 -05:00
label-mode-background = ${res/colors.primary}
2017-07-30 00:04:04 -05:00
2017-09-05 18:41:31 -05:00
# Active workspace on focused monitor
2017-07-30 00:04:04 -05:00
label-focused = %name%
label-focused-padding = ${self.label-mode-padding}
label-focused-overline = ${res/colors.primary}
2017-07-30 00:04:04 -05:00
2017-09-05 18:41:31 -05:00
# Active workspace on unfocused monitor
label-visible = ${self.label-focused}
2017-07-30 00:04:04 -05:00
label-visible-padding = ${self.label-focused-padding}
2017-09-05 18:41:31 -05:00
# Inactive workspace
label-unfocused = ${self.label-focused}
label-unfocused-padding = ${self.label-focused-padding}
2017-07-30 17:24:27 -05:00
2017-09-05 18:41:31 -05:00
# Urgent workspace
label-urgent = ${self.label-focused}
label-urgent-padding = ${self.label-focused-padding}
label-urgent-overline = ${res/colors.alert}
[module/bspwm]
type = internal/bspwm
enable-click = true
enable-scroll = true
format = <label-state> <label-mode>
pin-workspaces = true
2017-09-05 19:40:23 -05:00
ws-icon-0 = I;
ws-icon-1 = II;
ws-icon-2 = III;
ws-icon-8 = IX;
ws-icon-9 = X;
ws-icon-default = 
2017-09-05 18:41:31 -05:00
# Active workspace on focused monitor
label-focused = %icon%
label-focused-padding = 2
2017-09-06 22:02:50 -05:00
label-focused-foreground = ${res/colors.primary}
label-focused-overline = ${res/colors.primary}
2017-09-05 18:41:31 -05:00
# Inactive filled workspace on focused monitor
2017-08-23 00:06:59 -05:00
label-occupied = ${self.label-focused}
label-occupied-padding = ${self.label-focused-padding}
2017-09-06 22:02:50 -05:00
label-occupied-foreground = ${res/colors.primary}
2017-09-05 18:41:31 -05:00
# Inactive empty workspace on focused monitor
2017-08-23 00:06:59 -05:00
label-empty = ${self.label-focused}
label-empty-padding = ${self.label-focused-padding}
label-empty-foreground = ${res/colors.background-4}
2017-09-05 18:41:31 -05:00
# Filled workspace on unfocused monitor
2017-08-23 00:06:59 -05:00
label-dimmed-padding = ${self.label-focused-padding}
label-dimmed-foreground = ${res/colors.primary-dark}
label-dimmed-background = ${res/colors.background-4}
2017-08-23 00:06:59 -05:00
2017-09-05 18:41:31 -05:00
# Urgent workspace on any monitor
label-urgent = ${self.label-focused}
2017-08-03 23:12:35 -05:00
label-urgent-padding = ${self.label-focused-padding}
2017-09-06 22:02:50 -05:00
label-urgent-foreground = ${res/colors.alert}
2017-07-30 17:24:27 -05:00
[module/battery-ramp]
inherit = template/module/battery
format-charging = <ramp-capacity> <label-charging>
format-charging-prefix = 
format-charging-prefix-foreground = ${self.format-charging-underline}
format-discharging = <ramp-capacity> <label-discharging>
2017-08-21 00:02:37 -05:00
format-full = <label-full>
format-full-overline = ${res/colors.resource-good}
format-full-prefix = " "
format-full-prefix-foreground = ${res/colors.resource-good}
time-format = %H:%M
label-charging = %percentage%%
label-charging-padding = 0
label-discharging = %percentage%% (%time%)
label-discharging-padding = 0
label-full = %percentage%%
label-full-padding = 0
ramp-capacity-0= 
ramp-capacity-1= 
ramp-capacity-2= 
ramp-capacity-3= 
ramp-capacity-4= 
ramp-capacity-5= 
ramp-capacity-6= 
ramp-capacity-7= 
ramp-capacity-8= 
ramp-capacity-9= 
ramp-capacity-foreground = ${self.format-discharging-underline}
[module/battery-ramp-mini]
inherit = template/module/battery
format-charging = <ramp-capacity>
format-charging-prefix = 
format-charging-prefix-foreground = ${self.format-charging-underline}
format-discharging = <ramp-capacity>
2017-09-06 22:03:30 -05:00
format-full = <ramp-capacity>
format-full-overline = ${res/colors.resource-good}
format-full-prefix = " "
format-full-prefix-foreground = ${res/colors.resource-good}
ramp-capacity-0= 
ramp-capacity-1= 
ramp-capacity-2= 
ramp-capacity-3= 
ramp-capacity-4= 
ramp-capacity-5= 
ramp-capacity-6= 
ramp-capacity-7= 
ramp-capacity-8= 
ramp-capacity-9= 
2017-08-23 01:11:13 -05:00
[module/cpu-label]
inherit = template/module/cpu
format = <label>
format-prefix = " "
format-prefix-foreground = ${self.format-underline}
label = %percentage%%
2017-08-23 01:11:13 -05:00
2017-07-30 00:04:04 -05:00
[module/date]
type = internal/date
format-underline = ${res/colors.underline-date}
format-prefix = " "
format-prefix-foreground = ${self.format-underline}
2017-07-30 19:49:39 -05:00
date = %a
time = %I:%M %p
date-alt = %A, %B %d
2017-07-30 19:49:39 -05:00
time-alt = %I:%M %p
2017-07-30 00:04:04 -05:00
label = %date% %time%
2017-09-01 22:54:22 -05:00
interval = 30
[module/date-mini]
type = internal/date
format-underline = ${res/colors.underline-date}
time = %I:%M %p
date-alt = "%A, %B %d "
time-alt = %I:%M %p
2017-09-01 22:54:22 -05:00
label= %date%%time%
2017-07-30 00:04:04 -05:00
interval = 60
2017-07-30 00:04:04 -05:00
[module/memory-label]
type = internal/memory
format = <label>
format-underline = ${res/colors.underline-memory}
format-prefix = " "
format-prefix-foreground = ${self.format-underline}
label = %percentage_used%% (%gb_used%)
[module/mpd]
type = internal/mpd
2017-08-23 23:06:52 -05:00
format-online = <label-song> <label-time>
format-offline =
icon-next = 
icon-pause = 
icon-play = 
icon-prev = 
icon-random = 
icon-repeat = 
icon-stop = 
2017-08-23 23:06:52 -05:00
toggle-on-foreground = ${res/colors.foreground}
toggle-off-foreground = ${res/colors.background-4}
label-song = %title%
label-song-maxlen = 25
label-song-ellipsis = true
label-time = %elapsed%/%total%
interval = 1
2017-07-30 00:04:04 -05:00
2017-09-07 20:37:01 -05:00
[module/mpd-mini]
inherit = module/mpd
format-online = <label-song>
format-online-prefix = " "
label-song =  %title%
[module/mpd-control]
inherit = module/mpd
format-online = <icon-prev> <toggle> <icon-stop> <icon-next>
2017-08-24 17:06:06 -05:00
label-offline =
[module/mpd-control-ext]
inherit = module/mpd
format-online = <icon-random> <icon-repeat>
2017-08-24 17:06:06 -05:00
label-offline =
[module/temperature-label]
2017-09-01 16:13:10 -05:00
inherit = template/module/temperature
format = <label>
format-underline = ${res/colors.underline-temperature}
format-prefix = " "
format-prefix-foreground = ${self.format-underline}
format-warning = <label>
format-warning-overline = ${res/colors.alert}
format-warning-underline = ${res/colors.underline-temperature}
format-warning-prefix = " "
format-warning-prefix-foreground = ${res/colors.alert}
label = %temperature%
label-warn = %temperature%
[module/temperature-label-alert]
inherit = template/module/temperature
format-warning = <label>
format-warning-foreground = ${res/colors.alert}
label =
label-warn =  %temperature%
label-warn-foreground = ${res/colors.alert}
[module/volume-ramp]
type = internal/volume
format-volume = <ramp-volume> <label-volume>
format-volume-underline = ${res/colors.underline-volume}
2017-09-01 22:54:22 -05:00
format-muted = <ramp-volume> <label-muted>
format-muted-foreground = ${res/colors.background-4}
format-muted-underline = ${res/colors.underline-volume}
label-volume = %percentage%%
2017-09-01 22:54:22 -05:00
label-muted = %percentage%%
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
ramp-volume-foreground = ${self.format-volume-underline}
[module/volume-ramp-mini]
type = internal/volume
format-volume = <ramp-volume>
format-volume-underline = ${res/colors.underline-volume}
format-muted = <ramp-volume>
format-muted-foreground = ${res/colors.background-4}
format-muted-underline = ${res/colors.underline-volume}
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
[module/wlan-network]
inherit = template/module/network
format-connected-prefix = " "
label-connected = %essid%
label-disconnected = %ifname%
2017-08-24 17:06:06 -05:00
[module/wlan-network-mini]
inherit = template/module/network
format-connected-prefix =
label-connected = 
label-disconnected = %ifname%
[module/wlan-speed]
inherit = template/module/network
2017-09-05 18:33:54 -05:00
label-connected =  %upspeed%  %downspeed%
2017-09-01 16:13:10 -05:00
[module/eth-network]
2017-08-24 17:06:06 -05:00
type = internal/network
inherit = module/wlan-network
2017-08-24 17:06:06 -05:00
interface = enp0s31f6
2017-09-05 18:33:54 -05:00
label-connected =  %upspeed%  %downspeed%
2017-08-24 17:06:06 -05:00
label-connected-foreground = ${res/colors.primary-dark}
label-disconnected =
[module/xbacklight-ramp]
type = internal/xbacklight
format = <ramp> <label>
format-underline = ${res/colors.underline-backlight}
label = %percentage%%
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-3 = 
ramp-4 = 
ramp-5 = 
ramp-6 = 
ramp-foreground = ${self.format-underline}
[module/xbacklight-ramp-mini]
type = internal/xbacklight
format = <ramp>
format-underline = ${res/colors.underline-backlight}
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-3 = 
ramp-4 = 
ramp-5 = 
ramp-6 = 
2017-09-01 16:13:10 -05:00
[module/xkeyboard-label]
type = internal/xkeyboard
2017-09-01 16:13:10 -05:00
format = <label-indicator>
label-indicator = %name%
label-indicator-overline = ${res/colors.primary}
2017-09-01 16:13:10 -05:00
[module/xwindow-label]
type = internal/xwindow
label = %title%
label-maxlen = 75
label-ellipsis = true
2017-09-05 18:41:31 -05:00
# vim:ft=dosini