dotfiles-remastered/.config/polybar/config

246 lines
6.1 KiB
Plaintext
Raw Normal View History

2020-06-11 14:22:40 +00:00
;===========================================================;
; ;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ ;
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ ;
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ ;
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ ;
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ ;
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ;
; ;
;===========================================================;
2020-08-04 19:51:15 +00:00
; Required packages:
; - xorg-xrandr (for launch script)
; - xrdb (for wal colors)
2020-09-14 10:41:57 +00:00
include-file = $HOME/.config/polybar/colors
2020-06-11 14:22:40 +00:00
[bar/main]
enable-ipc = true
2020-07-09 11:17:17 +00:00
monitor = ${env:MONITOR}
2020-06-11 14:22:40 +00:00
width = 100%
2020-08-04 19:51:15 +00:00
height = 3%
2020-06-11 14:22:40 +00:00
radius = 0
fixed-center = false
2020-09-13 12:00:51 +00:00
2020-06-11 14:22:40 +00:00
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 0
border-color = #00000000
padding-left = 0
padding-right = 2
module-margin-left = 1
module-margin-right = 2
font-0 = fixed:pixelsize=10;1
2020-09-13 12:00:51 +00:00
font-1 = "Hack Nerd Font:style=Regular:pixelsize=10;2"
2020-06-11 14:22:40 +00:00
modules-left = i3
modules-center =
2021-03-06 22:00:33 +00:00
modules-right = playerctl pulseaudio mute-mic wireguard-status notify date
2020-06-11 14:22:40 +00:00
tray-position = right
tray-padding = 2
;tray-background = #0063ff
cursor-click = pointer
cursor-scroll = ns-resize
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
2020-08-04 19:51:15 +00:00
format-foreground = ${colors.text}
2020-06-11 14:22:40 +00:00
label-mode-padding = 2
2020-09-14 10:41:57 +00:00
label-mode-foreground = ${colors.i3-mode-fg}
label-mode-background = ${colors.i3-mode-bg}
2020-06-11 14:22:40 +00:00
; focused = Active workspace on focused monitor
label-focused = %index%
2020-09-14 10:41:57 +00:00
label-focused-background = ${colors.i3-focus-bg}
label-focused-underline = ${colors.i3-focus-ul}
2020-08-04 19:51:15 +00:00
label-focused-padding = 2
2020-06-11 14:22:40 +00:00
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
2020-08-04 19:51:15 +00:00
label-unfocused-padding = 2
2020-06-11 14:22:40 +00:00
; visible = Active workspace on unfocused monitor
label-visible = %index%
2020-09-14 10:41:57 +00:00
label-visible-background = ${colors.i3-visable-bg}
label-visible-underline = ${colors.i3-visable-ul}
2020-06-11 14:22:40 +00:00
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %index%
2020-09-14 10:41:57 +00:00
label-urgent-background = ${colors.i3-urgent-bg}
2020-08-04 19:51:15 +00:00
label-urgent-padding = 2
2020-06-11 14:22:40 +00:00
[module/xbacklight]
type = internal/xbacklight
format = <label> <bar>
label = BL
bar-width = 10
bar-indicator = |
bar-indicator-foreground = #fff
bar-indicator-font = 2
bar-fill = ─
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
2020-08-04 19:51:15 +00:00
bar-empty-foreground = ${colors.foreground}
2020-06-11 14:22:40 +00:00
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-underline = #f90000
2020-08-04 19:51:15 +00:00
format-foreground = ${colors.text}
2020-06-11 14:22:40 +00:00
label = %percentage:2%%
[module/memory]
type = internal/memory
interval = 2
2020-09-14 10:41:57 +00:00
format-underline = ${colors.cpu-ul}
2020-08-04 19:51:15 +00:00
format-foreground = ${colors.text}
2020-06-11 14:22:40 +00:00
label = %percentage_used%%
[module/wlan]
type = internal/network
interface = wlp3s0
interval = 3.0
2020-08-04 19:51:15 +00:00
format-connected-foreground = ${colors.text}
format-connected = <label-connected>
2020-06-11 14:22:40 +00:00
format-connected-underline = #9f78e1
label-connected = %essid%
[module/date]
type = internal/date
interval = 5
date =
date-alt = " %Y-%m-%d"
time = %H:%M
time-alt = %H:%M:%S
2020-08-04 19:51:15 +00:00
format-foreground = ${colors.text}
2020-09-14 10:41:57 +00:00
format-underline = ${colors.date-ul}
2020-06-11 14:22:40 +00:00
label = %date% %time%
[module/pulseaudio]
type = internal/pulseaudio
2020-09-14 10:41:57 +00:00
format-volume-underline = ${colors.vol-ul}
2020-06-11 14:22:40 +00:00
format-volume = <label-volume> <bar-volume>
2020-08-06 14:05:14 +00:00
label-volume = %percentage%%
2020-08-04 19:51:15 +00:00
label-volume-foreground = ${colors.text}
2020-06-11 14:22:40 +00:00
2020-08-04 19:51:15 +00:00
label-muted = muted
label-muted-foreground = ${colors.text}
2020-09-14 10:41:57 +00:00
format-muted-underline = ${colors.vol-ul}
2020-06-11 14:22:40 +00:00
bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
2020-08-04 19:51:15 +00:00
bar-volume-empty-foreground = ${colors.foreground}
2020-06-11 14:22:40 +00:00
[module/battery]
type = internal/battery
battery = BAT1
adapter = ADP1
full-at = 98
2020-08-04 19:51:15 +00:00
format-charging-foreground = ${colors.text}
format-charging = <label-charging>
2020-09-14 10:41:57 +00:00
format-charging-underline = ${colors.bat-ul}
2020-06-11 14:22:40 +00:00
2020-08-04 19:51:15 +00:00
format-discharging-foreground = ${colors.text}
format-discharging = <label-discharging>
2020-06-11 14:22:40 +00:00
format-discharging-underline = ${self.format-charging-underline}
2020-08-04 19:51:15 +00:00
format-full-foreground = ${colors.text}
format-full-prefix-foreground = ${colors.foreground}
2020-06-11 14:22:40 +00:00
format-full-underline = ${self.format-charging-underline}
2021-01-16 22:32:46 +00:00
[module/playerctl]
type = custom/script
exec = $XDG_CONFIG_HOME/polybar/playerctl-meta.sh
tail = true
2020-08-04 19:51:15 +00:00
format-foreground = ${colors.text}
2020-09-14 10:41:57 +00:00
format-underline = ${colors.spotify-ul}
2020-09-13 12:00:51 +00:00
[module/wireguard-status]
type = custom/ipc
format-foreground = ${colors.text}
2020-09-14 10:41:57 +00:00
format-underline = ${colors.wg-ul}
2020-09-13 12:00:51 +00:00
click-left = $HOME/.config/polybar/wireguard-switch.sh
hook-0 = $HOME/.config/polybar/wireguard-info.sh
initial = 1
2021-01-17 16:33:10 +00:00
[module/mute-mic]
type = custom/ipc
hook-0 = $XDG_CONFIG_HOME/polybar/is-muted.sh
inital = 1
2021-03-06 22:00:33 +00:00
[module/notify]
type = custom/script
exec = "echo "
click-left = kill -s USR1 $(pidof deadd-notification-center)
interval = 0
2020-06-11 14:22:40 +00:00
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
2020-08-04 19:51:15 +00:00
pseudo-transparency = false
2020-06-11 14:22:40 +00:00
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini