dotfiles/system-specific/cheems/polybar/config

261 lines
5.6 KiB
Plaintext
Raw Normal View History

2020-12-05 08:18:52 +00:00
[colors]
darkgray = #373b41
orange = ${xrdb:color9}
white = #c5c8c6
gray = #707880
black = #1d1f21
red = #a54242
blue = #5f819d
yellow = #f0c674
green = #b5bd68
background = #114E00
background-alt = #1d1f21
foreground = #c5c8c6
foreground-alt = #c5c8c9
primary = #282a2e
secondary = c5c8c6
alert = #a54242
pseudo-transparency = true
[bar/bar]
monitor = ${env:MONITOR:""}
width = 100%
height = 20
fixed-center = true
enable-ipc = true
padding-left = 0
padding-right = 0
module-margin-left = 0
module-margin-right = 0
modules-right = workspace i3 cmus-np network volume system-cpu-temppercore date keyboard powermenu
modules-center = title
modules-left = mpd cpu memory uptime weather battery
background = ${colors.background}
foreground = ${colors.foreground}
underline-size = 2
underline-color = ${colors.white}
tray-detached = false
tray-position = right
tray-maxsize = 18
tray-transparent = false
tray-scale = 1.0
tray-offset-x = 0
font-0 = "Hack:size=8;2"
font-1 = "FontAwesome:size=8;2"
font-2 = "NotoEmoji:size=8;2"
font-3 = "UnifontUpper:size=8;2"
font-4 = "Font Awesome 5 Brands:size=8;2"
font-5 = "Font Awesome 5 Free Solid:size=8;2"
;override-redirect = true
wm-restack = i3
[module/i3]
type = internal/i3
format = "<label-state>"
index-sort = false
wrapping-scroll = false
pin-workspaces = false
strip-wsnumbers = false
label-focused = %index%
label-visible = %name%
label-urgent = " !"
label-focused-padding-right = 1
label-unfocused-padding-right = 1
label-visible-padding-right = 1
label-urgent-padding-right = 1
[module/date]
type = internal/date
date-alt =  %A, %d %B %Y %H:%M
date = %{F#928374}%{F-} %H:%M
interval = 5
format-foreground = ${colors.foreground}
format-padding = 1
label-separator = |
[module/volume]
type = internal/volume
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 
format-volume = <ramp-volume> <bar-volume>
format-muted-prefix =
format-muted-foreground = ${colors.white}
label-muted = 🔇 SOUND MUTED
format-padding = 10
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 = true
bar-volume-indicator = ▒
bar-volume-indicator-font = 2
bar-volume-fill = ▓
bar-volume-fill-font = 2
bar-volume-empty = ░
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
format-muted-padding = 1
format-volume-padding = 1
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = #928374
;format-underline = #f90000
label = %percentage:2%%
label-foreground = ${root.foreground}
format-padding = 1
[module/memory]
type = internal/memory
interval = 2
format-prefix = ""
format-prefix-foreground = #928374
;format-underline = #4bffdc
label = %percentage_used:2%% %gb_used:3%
label-foreground = ${root.foreground}
format-padding = 1
[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-0-2 = log out
menu-0-2-exec = menu-open-3
;MENU1
menu-1-0 = reboot
menu-1-0-exec = reboot
menu-1-1 = back
menu-1-1-exec = menu-open-0
;MENU2
menu-2-0 = power off
menu-2-0-exec = shutdown now
menu-2-1 = back
menu-2-1-exec = menu-open-0
;MENU3
menu-3-0 = log out
menu-3-0-exec = i3-msg exit
menu-3-1 = back
menu-3-1-exec = menu-open-0
format-padding = 1
[module/title]
type = internal/xwindow
format-prefix = " "
label-foreground = ${colors.foreground}
label-maxlen = 50
[module/keyboard]
type = internal/xkeyboard
format-prefix = ""
label-layout-padding = 1
format = <label-layout>
[settings]
screenchange-reload = true
; vim:ft=dosini
[module/network]
type = internal/network
interface = wlp3s0
; Seconds to sleep between updates
; Default: 1
interval = 1
font-8 = "FontAwesome:size=8;2"
label-active-font = 8
; Test connectivity every Nth update
; A value of 0 disables the feature
; NOTE: Experimental (needs more testing)
; Default: 0
;ping-interval = 3
label-connected = %upspeed% %downspeed:9%
; @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%)
; Minimum output width of upload/download rate
; Default: 3
udspeed-minwidth = 5
; Accumulate values from all interfaces
; when querying for up/downspeed rate
; Default: false
accumulate-stats = true
; Consider an `UNKNOWN` interface state as up.
; Some devices have an unknown state, even when they're running
; Default: false
unknown-as-up = true
[module/battery]
type = internal/battery
format-prefix = " "
label-charging = "  %percentage%%"
label-discharging = "  %percentage%%"
label-full = "  %percentage%%"
; This is useful in case the battery never reports 100% charge
full-at = 99
; Use the following command to list batteries and adapters:
; $ ls -1 /sys/class/power_supply/
battery = BAT0
adapter = AC
; Disable polling by setting the interval to 0.
;
; Default: 5
poll-interval = 5
[module/uptime]
type = custom/script
format-prefix = ""
exec = uptime -p | sed -e 's/\<up\>//g'
tail = true
[module/workspace]
type = custom/script
format-prefix = " "
exec = ~/.config/polybar/jshon.sh
tail = true
[module/system-cpu-temppercore]
type = custom/script
exec = ~/.config/polybar/system-cpu-temppercore.sh
interval = 60
format-prefix = " "
[module/cmus-np]
type = custom/script
format-prefix = " "
exec = ~/.config/polybar/cmus-np.sh
tail = true