dotfiles/polybar/config

185 lines
4.3 KiB
Plaintext
Raw Normal View History

2020-04-02 15:42:52 +00:00
; Main color format is in ARGB.
; However, formats in RGB is fine.
; This is where all of the colors should be placed for those who are lazy to scroll down (like me).
[colors]
background = ${xrdb:background:#3B4252}
background-light = ${xrdb:color8:#4D4D4D}
foreground = ${xrdb:foreground:#D6D6D6}
foreground-light = ${xrdb:color15:#eee}
accent = ${xrdb:color6:#88C0D0}
2020-04-02 15:42:52 +00:00
; The common style between bars.
[bar-common-style]
2020-04-02 15:42:52 +00:00
width = 100%
height = 32
wm-restack = bspwm
fixed-center = false
2020-04-02 15:42:52 +00:00
line-size = 3
line-color = #f00
2020-04-02 15:42:52 +00:00
padding = 1
2020-04-02 15:42:52 +00:00
module-margin = 1
module-padding = 1
2020-04-02 15:42:52 +00:00
font-0 = "Iosevka"
font-1 = "Fira Code"
; Our fallback fonts are mostly used as icon fonts.
; For future references, the version of Font Awesome used here is at v5.13.0.
; I also installed the font myself that I downloaded from the official website (https://fontawesome.com/).
font-2 = "Font Awesome 5 Free,Font Awesome 5 Free Solid:style=Solid"
; This creates the illusion as if the modules are in the center.
2020-04-02 15:42:52 +00:00
__border-size = 5
border-top-size = ${self.__border-size}
border-top-color = ${colors.background}
border-bottom-size = ${self.__border-size}
border-bottom-color = ${colors.background}
2020-04-02 15:42:52 +00:00
tray-position = right
tray-padding = 1
cursor-click = pointer
; Common style between modules.
[module-common-style]
2020-04-02 15:42:52 +00:00
label-padding = 1
; Usually used for
[module-button-style]
format-padding = 2
format-background = ${colors.accent}
format-foreground = ${colors.background}
; The main bar.
[bar/fds-bar]
2020-04-02 15:42:52 +00:00
background = ${colors.background}
foreground = ${colors.foreground}
2020-04-02 15:42:52 +00:00
inherit = bar-common-style
enable-ipc = true
modules-left = start-menu bspwm
modules-right = pulseaudio memory eth date
[module/start-menu]
inherit = module-button-style
type = custom/script
exec = echo ';'
click-left = rofi -show drun -sidebar-mode -theme fds-mini-sidebar
label = ""
[module/power-menu]
inherit = module-button-style
type = custom/script
exec = echo ';'
click-left = $HOME/bin/prompt "Proceed to shutdown?" "sudo -A shutdown 0"
label = ""
[module/bspwm]
2020-04-02 15:42:52 +00:00
type = internal/bspwm
wrapping-scroll = false
pin-workspaces = true
label-focused = %index%
label-focused-background = ${colors.accent}
label-focused-foreground = ${colors.background}
2020-04-02 15:42:52 +00:00
label-focused-padding = 1
2020-04-02 15:42:52 +00:00
label-occupied = %index%
label-occupied-padding = 1
2020-04-02 15:42:52 +00:00
label-urgent = %index%!
label-urgent-background = ${colors.foreground}
label-urgent-padding = 1
2020-04-02 15:42:52 +00:00
label-empty = %index%
label-empty-foreground = ${colors.foreground-light}
2020-04-02 15:42:52 +00:00
label-empty-padding = 1
[module/memory]
2020-04-02 15:42:52 +00:00
inherit = module-common-style
type = internal/memory
interval = 2
format-prefix = ""
label = %gb_used%
[module/wlan]
2020-04-02 15:42:52 +00:00
inherit = module-common-style
type = internal/network
interface = wlp0s18f2u4
interval = 3.0
2020-04-02 15:42:52 +00:00
format-connected = <label-connected>
format-connected-underline = #9f78e1
format-prefix = "NET"
2020-04-02 15:42:52 +00:00
label-connected = %essid%
2020-04-02 15:42:52 +00:00
format-disconnected = <label-disconnected>
label-disconnected = disconnected
[module/eth]
2020-04-02 15:42:52 +00:00
inherit = module-common-style
type = internal/network
interface = enp4s0
2020-04-18 16:43:32 +00:00
interval = 3
2020-04-02 15:42:52 +00:00
format-connected-prefix = ""
2020-04-18 16:43:32 +00:00
label-connected = "OK"
2020-04-02 15:42:52 +00:00
label-connected-padding = 1
format-disconnected-prefix = ""
2020-04-02 15:42:52 +00:00
label-disconnected-padding = 1
2020-04-18 16:43:32 +00:00
label-disconnected = "N/A"
[module/date]
2020-04-02 15:42:52 +00:00
inherit = module-common-style
type = internal/date
interval = 5
; We've formatted the time string to alter between the time and the date instead.
; Although, I feel it's a hacky workaround, it still is functional as a date module.
2020-04-02 15:42:52 +00:00
date = "%F"
date-alt = "%B %d, %Y"
time = %T
time-alt = %F
format-prefix = ""
2020-04-02 15:42:52 +00:00
label = %time%
[module/pulseaudio]
2020-04-02 15:42:52 +00:00
inherit = module-common-style
type = internal/pulseaudio
format-volume-prefix = ""
2020-04-02 15:42:52 +00:00
format-volume = <label-volume>
label-volume = %percentage%%
label-volume-padding = 1
format-muted-prefix = ""
2020-04-02 15:42:52 +00:00
label-muted = muted
label-muted-padding = 1
[settings]
2020-04-02 15:42:52 +00:00
screenchange-reload = true
[global/wm]
2020-04-02 15:42:52 +00:00
margin = 1
padding = 1
; vim:ft=dosini