2017-09-05 18:41:31 -05:00
#==================================================
#
# INFO: https://github.com/jaagr/polybar
#
#===================================================
#========================================
# RESOURCES
#========================================
2017-08-01 02:32:02 -05:00
[res/colors]
2018-05-17 17:16:54 -05:00
primary = ${xrdb:color12}
secondary = ${xrdb:color4}
2018-01-16 23:26:52 -06:00
alert = ${xrdb:color3}
2018-05-09 00:36:42 -05:00
warning = ${xrdb:color1}
2017-09-04 04:31:39 -05:00
2018-06-30 21:26:09 -05:00
icon-battery = ${xrdb:color10}
2018-05-17 16:39:14 -05:00
icon-cpu = ${xrdb:color12}
2018-05-17 17:16:54 -05:00
icon-date = ${res/colors.primary}
2018-06-21 15:07:55 -05:00
icon-dropbox = ${res/colors.primary}
2018-06-30 21:26:09 -05:00
icon-fs = ${xrdb:color11}
2018-05-17 16:39:14 -05:00
icon-memory = ${xrdb:color13}
2018-07-30 13:28:38 -05:00
icon-tor = ${xrdb:color13}
2018-05-17 17:16:54 -05:00
icon-volume = ${res/colors.primary}
2018-08-01 22:38:48 -05:00
icon-network = ${xrdb:color14}
2018-05-21 01:22:38 -05:00
icon-wm = ${xrdb:color12}
2018-05-17 17:16:54 -05:00
icon-xbacklight = ${res/colors.primary}
2018-05-06 01:45:35 -05:00
2017-09-04 04:31:39 -05:00
background = ${xrdb:background}
2018-05-17 16:25:03 -05:00
background-alt = ${xrdb:color8}
2017-09-08 15:30:50 -05:00
foreground = ${xrdb:color15}
2018-05-17 17:16:54 -05:00
foreground-dark = ${xrdb:color8}
2018-06-24 23:45:13 -05:00
2018-05-18 19:22:00 -05:00
border = #3c3836
2018-06-24 20:34:51 -05:00
bar-empty = ${self.border}
2017-07-30 00:04:04 -05:00
2018-01-18 14:57:31 -06:00
[res/config]
2018-08-19 17:12:59 -05:00
padding = 2
2018-01-18 14:57:31 -06:00
2017-08-01 02:32:02 -05:00
[res/fonts]
2018-08-19 17:12:59 -05:00
font-0 = "Inconsolata:style=Regular:size=10;2"
font-1 = "Inconsolata:style=Bold:size=10;2"
font-2 = "Inconsolata:style=Light:size=10;2"
2018-06-23 21:38:28 -05:00
font-3 = "Inconsolata:size=10;2"
2018-06-21 14:29:21 -05:00
font-4 = "Material Design Icons:size=11;3"
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
2017-08-01 02:32:02 -05:00
[template/bar]
2017-09-05 18:41:31 -05:00
# Rendering of the bar
2018-08-19 18:58:00 -05:00
height = 28
2018-05-18 00:23:19 -05:00
bottom = true
2018-01-31 12:47:48 -06:00
wm-restack = ${env:PB_WM_RESTACK:bspwm}
2017-07-30 17:24:27 -05:00
2017-09-05 18:41:31 -05:00
# Module padding and spacing
2018-05-17 17:16:54 -05:00
module-margin = 2
2018-08-19 17:12:59 -05:00
padding = ${res/config.padding}
2017-07-30 17:24:27 -05:00
2018-07-24 19:28:15 -05:00
# Tray settings
tray-maxsize = 16
2018-08-07 19:22:22 -05:00
# Mild cosmetics
2018-05-17 17:16:54 -05:00
background = ${res/colors.background}
2017-08-01 02:32:02 -05:00
foreground = ${res/colors.foreground}
2018-08-19 18:56:46 -05:00
border-color = ${res/colors.background}
border-size = 6
2018-08-01 18:07:25 -05:00
overline-size = 6
underline-size = 6
2018-01-16 23:26:52 -06:00
2017-09-05 18:41:31 -05:00
# Module fonts
2017-08-01 02:32:02 -05:00
font-0 = ${res/fonts.font-0}
font-1 = ${res/fonts.font-1}
2018-05-06 01:45:35 -05:00
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
#====================
2018-05-18 00:20:20 -05:00
[bar/primary]
2018-05-06 02:15:38 -05:00
monitor = ${env:PB_MONITOR:eDP-1}
2018-02-05 14:12:59 -06:00
inherit = template/bar
2018-08-19 18:56:46 -05:00
border-top-size = 0
2018-08-19 22:37:34 -05:00
modules-left = ${env:PB_BAR_PRIMARY_MODULES_LEFT:battery cpu memory}
2018-08-19 17:12:59 -05:00
modules-center = ${env:PB_BAR_PRIMARY_MODULES_CENTER: bspwm}
2018-08-21 19:16:45 -05:00
modules-right = ${env:PB_BAR_PRIMARY_MODULES_RIGHT:xbacklight volume date}
2018-06-20 22:04:13 -05:00
[bar/primary-2]
monitor = ${env:PB_MONITOR:eDP-1}
inherit = template/bar
bottom = false
2018-08-19 18:56:46 -05:00
border-bottom-size = 0
2018-06-20 22:04:13 -05:00
2018-08-19 17:12:59 -05:00
modules-left = ${env:PB_BAR_PRIMARY_2_MODULES_LEFT: }
modules-center = ${env:PB_BAR_PRIMARY_2_MODULES_CENTER: }
modules-right = ${env:PB_BAR_PRIMARY_2_MODULES_RIGHT: }
2018-02-05 14:12:59 -06:00
2018-05-18 00:20:20 -05:00
[bar/secondary]
2018-01-20 13:56:55 -06:00
monitor = ${env:PB_MONITOR}
2017-08-01 02:32:02 -05:00
inherit = template/bar
2018-01-20 13:29:15 -06:00
2018-08-19 18:56:46 -05:00
border-top-size = 0
2018-08-01 18:19:24 -05:00
modules-left = ${env:PB_BAR_SECONDARY_MODULES_LEFT: }
2018-08-01 18:01:45 -05:00
modules-center = ${env:PB_BAR_SECONDARY_MODULES_CENTER: }
2018-08-01 18:19:24 -05:00
modules-right = ${env:PB_BAR_SECONDARY_MODULES_RIGHT:date}
2018-08-01 18:01:45 -05:00
[bar/secondary-2]
monitor = ${env:PB_MONITOR}
inherit = template/bar
bottom = false
2018-08-19 18:56:46 -05:00
border-bottom-size = 0
2018-08-01 18:01:45 -05:00
modules-left = ${env:PB_BAR_SECONDARY_2_MODULES_LEFT:bspwm}
2018-08-01 18:19:24 -05:00
modules-center = ${env:PB_BAR_SECONDARY_2_MODULES_CENTER:xwindow}
2018-08-01 22:38:48 -05:00
modules-right = ${env:PB_BAR_SECONDARY_2_MODULES_RIGHT:uname | hostname}
2018-01-20 13:29:15 -06:00
2017-09-05 18:41:31 -05:00
#========================================
# MODULES
#========================================
2017-07-30 00:04:04 -05:00
2018-01-17 18:56:13 -06:00
# BORDERS and WHITESPACE
2017-09-05 18:41:31 -05:00
#====================
2017-08-01 02:32:02 -05:00
[module/|]
2017-07-30 00:04:04 -05:00
type = custom/text
2018-06-19 21:02:54 -05:00
content = "|"
content-foreground = ${res/colors.background-alt}
2018-05-18 19:22:00 -05:00
[module/||]
type = custom/text
2018-01-16 23:26:52 -06:00
content = " "
2018-05-18 19:22:00 -05:00
content-background = ${res/colors.border}
2017-08-20 23:08:19 -05:00
2018-08-01 18:19:24 -05:00
[module/nothing]
type = custom/text
content = " "
2018-01-16 23:26:52 -06:00
# OTHER
2017-09-05 18:41:31 -05:00
#====================
2018-08-01 22:38:48 -05:00
[module/battery]
type = internal/battery
2018-08-19 17:12:59 -05:00
format-charging = <label-charging>
format-charging-prefix = "CHR: "
2018-08-01 22:38:48 -05:00
format-charging-prefix-foreground = ${res/colors.icon-battery}
2018-08-19 17:12:59 -05:00
format-discharging = <label-discharging>
format-discharging-prefix = "BAT: "
2018-08-01 22:38:48 -05:00
format-discharging-prefix-foreground = ${res/colors.icon-battery}
2018-08-19 17:12:59 -05:00
format-full = <label-full>
format-full-prefix = "BAT: "
2018-08-01 22:38:48 -05:00
format-full-prefix-foreground = ${res/colors.icon-battery}
time-format = %H:%M
2018-08-29 14:50:20 -05:00
full-at = 100
2018-08-01 22:38:48 -05:00
interval = 15
2018-08-19 17:12:59 -05:00
label-charging = %percentage:3%%
label-discharging = %percentage:3%%
label-full = %percentage:3%%
2018-08-01 22:38:48 -05:00
2018-05-06 01:45:35 -05:00
[module/bspwm]
type = internal/bspwm
2018-06-19 19:11:21 -05:00
format = <label-state>
2018-02-05 17:24:48 -06:00
enable-scroll = false
pin-workspaces = true
2018-06-19 19:11:21 -05:00
label-focused = %name%
2018-05-06 01:45:35 -05:00
label-focused-padding = ${res/config.padding}
2018-08-19 16:26:30 -05:00
label-focused-foreground = ${res/colors.icon-wm}
2018-06-21 14:29:21 -05:00
label-focused-font = 2
2018-02-05 17:24:48 -06:00
2018-08-01 18:07:25 -05:00
label-dimmed-overline = ${res/colors.background}
label-dimmed-underline = ${self.label-dimmed-overline}
2018-05-06 01:45:35 -05:00
label-occupied = ${self.label-focused}
label-occupied-padding = ${res/config.padding}
2018-06-21 14:29:21 -05:00
label-occupied-font = 2
2018-02-05 17:24:48 -06:00
2018-05-06 01:45:35 -05:00
label-urgent = ${self.label-focused}
2018-02-05 17:24:48 -06:00
label-urgent-padding = ${res/config.padding}
label-urgent-foreground = ${res/colors.alert}
2018-06-21 14:29:21 -05:00
label-urgent-font = 2
2018-02-05 17:24:48 -06:00
2018-05-06 01:45:35 -05:00
label-empty = ${self.label-focused}
2018-02-05 17:24:48 -06:00
label-empty-padding = ${res/config.padding}
2018-08-19 16:27:00 -05:00
label-empty-foreground = ${res/colors.foreground-dark}
2018-06-21 14:29:21 -05:00
label-empty-font = 3
2018-05-06 01:45:35 -05:00
2018-01-16 23:26:52 -06:00
[module/cpu]
type = internal/cpu
2018-08-19 17:12:59 -05:00
format = <label>
2018-06-19 19:11:21 -05:00
format-prefix = "CPU: "
2018-05-17 17:16:54 -05:00
format-prefix-foreground = ${res/colors.icon-cpu}
2018-01-16 23:26:52 -06:00
interval = 1
2018-08-19 17:12:59 -05:00
label = %percentage:3%%
2017-08-23 01:11:13 -05:00
2017-07-30 00:04:04 -05:00
[module/date]
type = internal/date
2018-01-16 23:26:52 -06:00
format = <label>
2018-06-19 19:11:21 -05:00
format-prefix =
2018-05-17 17:16:54 -05:00
format-prefix-foreground = ${res/colors.icon-date}
2017-07-30 19:49:39 -05:00
date = %a
time = %I:%M %p
2017-09-01 22:54:22 -05:00
interval = 30
2018-01-16 23:26:52 -06:00
label = %date% %time%
2017-07-30 00:04:04 -05:00
2018-08-01 22:38:48 -05:00
[module/eth]
type = internal/network
format-connected = <label-connected>
2018-08-19 17:12:59 -05:00
format-connected-prefix = "ETH: "
2018-08-01 22:38:48 -05:00
format-connected-prefix-foreground = ${res/colors.icon-network}
format-disconnected = <label-disconnected>
2018-08-19 17:12:59 -05:00
format-disconnected-prefix = "ETH: "
2018-08-01 22:38:48 -05:00
format-disconnected-prefix-foreground = ${res/colors.icon-network}
interface = ${env:PB_MODULE_ETH_INTERFACE:enp0s31f6}
label-connected = %local_ip%
2018-08-19 17:12:59 -05:00
label-disconnected = None
2018-08-01 22:38:48 -05:00
label-disconnected-foreground = ${res/colors.foreground-dark}
2018-01-31 19:05:26 -06:00
[module/fs-home]
type = internal/fs
2018-06-20 22:04:13 -05:00
format-mounted = <bar-used> <label-mounted>
2018-08-19 17:12:59 -05:00
format-mounted-prefix = "HOME: "
2018-05-17 17:16:54 -05:00
format-mounted-prefix-foreground = ${res/colors.icon-fs}
2018-01-31 19:05:26 -06:00
mount-0 = /home
2018-08-19 17:12:59 -05:00
label-mounted = %free:5% free
2018-06-20 22:04:13 -05:00
2018-08-01 22:38:48 -05:00
[module/hostname]
type = custom/script
format-foreground = ${res/colors.background-alt}
interval = 3600
exec = hostname
2018-01-16 23:26:52 -06:00
[module/memory]
2017-08-20 23:08:19 -05:00
type = internal/memory
2018-08-19 17:12:59 -05:00
format = <label>
format-prefix = "MEM: "
2018-05-17 17:16:54 -05:00
format-prefix-foreground = ${res/colors.icon-memory}
2017-08-01 02:32:02 -05:00
interval = 1
2017-07-30 00:04:04 -05:00
2018-08-19 17:12:59 -05:00
label = %percentage_used:3%%
2017-08-20 23:08:19 -05:00
2018-08-01 22:38:48 -05:00
[module/monitor]
type = custom/text
content = ${env:PB_MONITOR:eDP-1}
content-foreground = ${res/colors.background-alt}
[module/swap]
type = internal/memory
format = <label>
2018-08-19 17:12:59 -05:00
format-prefix = "SWP: "
2018-08-01 22:38:48 -05:00
format-prefix-foreground = ${res/colors.icon-memory}
interval = 1
2018-08-19 17:12:59 -05:00
label = %percentage_swap_used:3%%
2018-08-01 22:38:48 -05:00
2018-07-30 13:28:38 -05:00
[module/tor]
type = custom/script
2018-08-19 17:12:59 -05:00
format-prefix = "TOR: "
2018-07-30 13:28:38 -05:00
format-prefix-foreground = ${res/colors.icon-tor}
interval = 10
2018-07-30 13:32:14 -05:00
exec = if systemctl is-failed --quiet tor; then echo Failed, see logs for details; elif ! systemctl is-enabled --quiet tor; then echo Disabled; else echo Inactive; fi
2018-07-30 13:28:38 -05:00
exec-if = ! systemctl is-active tor
2018-08-01 22:38:48 -05:00
[module/uname]
type = custom/script
format-foreground = ${res/colors.background-alt}
interval = 3600
exec = uname -sr
2018-01-16 23:26:52 -06:00
[module/volume]
2017-08-20 23:08:19 -05:00
type = internal/volume
2018-08-19 17:12:59 -05:00
format-volume = <label-volume>
format-volume-prefix = "VOL: "
2018-05-17 17:16:54 -05:00
format-volume-prefix-foreground = ${res/colors.icon-volume}
2018-08-19 17:12:59 -05:00
format-muted = <label-muted>
2018-08-20 13:02:58 -05:00
format-muted-prefix = "VOL: "
2018-08-19 17:31:50 -05:00
format-muted-prefix-foreground = ${res/colors.foreground-dark}
2018-01-16 23:26:52 -06:00
2018-08-19 17:12:59 -05:00
label-volume = %percentage:3%%
label-muted = %percentage:3%%
2018-05-17 16:25:03 -05:00
label-muted-foreground = ${res/colors.foreground-dark}
2017-08-20 23:08:19 -05:00
2018-01-16 23:26:52 -06:00
[module/wlan]
type = internal/network
2018-06-19 19:11:21 -05:00
format-connected = <label-connected>
format-connected-prefix = "WLAN: "
2018-08-01 22:38:48 -05:00
format-connected-prefix-foreground = ${res/colors.icon-network}
2018-01-16 23:26:52 -06:00
format-disconnected = <label-disconnected>
2018-06-19 19:11:21 -05:00
format-disconnected-prefix = "WLAN: "
2018-08-01 22:38:48 -05:00
format-disconnected-prefix-foreground = ${res/colors.icon-network}
2018-08-01 18:01:45 -05:00
interface = ${env:PB_MODULE_WLAN_INTERFACE:wlp1s0}
2017-08-20 23:08:19 -05:00
2018-08-01 22:38:48 -05:00
label-connected = %local_ip%
2018-08-19 17:12:59 -05:00
label-disconnected = None
2018-05-17 16:25:03 -05:00
label-disconnected-foreground = ${res/colors.foreground-dark}
2018-05-06 01:45:35 -05:00
2018-01-16 23:26:52 -06:00
[module/xbacklight]
2017-12-27 15:49:02 -06:00
type = internal/xbacklight
2018-08-19 22:06:58 -05:00
format = <label>
2018-08-20 01:08:23 -05:00
format-prefix = "BRI: "
2018-05-17 17:16:54 -05:00
format-prefix-foreground = ${res/colors.icon-xbacklight}
2017-08-24 16:51:43 -05:00
2018-08-19 17:12:59 -05:00
label = %percentage:3%%
2017-08-24 16:51:43 -05:00
2018-01-16 23:26:52 -06:00
[module/xwindow]
2017-08-01 02:32:02 -05:00
type = internal/xwindow
2018-05-08 23:31:12 -05:00
format = <label>
2018-08-19 17:12:59 -05:00
label = %title:0:75:...%
2017-08-01 02:55:38 -05:00
2017-09-05 18:41:31 -05:00
# vim:ft=dosini