You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/gui/polybar/config.ini

228 lines
4.7 KiB
INI

[colors]
background = #001D1F21
background-alt = #373B41
#foreground = #C5C8C6
foreground = #DDD
primary = #F0C674
secondary = #8ABEB7
disabled = #707880
alert = #A54242
[section/base-bar]
; base bar settings
width = 100%
radius = 5
; font
font-0 = Hack Nerd Font;2
; ipc
enable-ipc = true
; seperator
separator = |
separator-foreground = ${colors.disabled}
module-margin = 1
padding = 2
; multi-monitor support
monitor = ${env:MONITOR}
; places bar at the top
bottom = false
fixed-center = true
; hybrid bg color, might go lighter grey
background = ${colors.background}
; hybrid fg color, might go lighter if I go lighter grey
foreground = ${colors.foreground}
[bar/thinkpad-bar]
; thinkpad bar conf
inherit = section/base-bar
height = 16pt
; modules
modules-left = xworkspaces focus weather-thinkpad
modules-right = battery pulseaudio memory cpu wlan seafile date powermenu
[bar/desktop-bar]
; desktop bar config
inherit = section/base-bar
; height
height = 24pt
; modules
modules-left = xworkspaces focus spotify spotify-len todo
;modules-left = xworkspaces spotify spotify-len
modules-center = weather-desktop
modules-right = pulseaudio memory cpu temperature eth seafile date powermenu
[module/xworkspaces]
type = internal/xworkspaces
label-active = %name%
label-active-background = ${colors.background-alt}
label-active-underline= ${colors.primary}
label-active-padding = 1
label-occupied = %name%
label-occupied-padding = 1
label-urgent = %name%
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
label-empty = %name%
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1
format = <label-state>
[module/focus]
; correct title size
type = custom/script
interval = 0.2
exec = ~/.dotfiles/bin/focus_class
[module/pulseaudio]
type = internal/pulseaudio
format-volume-prefix = "VOL "
format-volume-prefix-foreground = ${colors.primary}
format-volume = <label-volume>
label-volume = %percentage%%
label-muted = muted
label-muted-foreground = ${colors.disabled}
[section/weather]
type = custom/script
interval = 30
; left click is forecast
click-left = weather -f
; middle click is nerdfont forecast
click-middle = weather -pf
; right click is radar
click-right = weather -r
[module/weather-thinkpad]
; no desc to shorten
inherit = section/weather
exec = weather -p
[module/weather-desktop]
; longer desc
inherit = section/weather
exec = weather -pd
[module/memory]
type = internal/memory
interval = 2
format-prefix = "RAM "
format-prefix-foreground = ${colors.primary}
label = %used%
format = <label>
[module/battery]
type = internal/battery
poll-interval = 10
low-at = 10
format-discharging-prefix = "BAT "
format-discharging-prefix-foreground = ${colors.primary}
format-discharging = <label-discharging>
format-charging-prefix = "CHR "
format-charging-prefix-foreground = ${colors.primary}
format-charging = <label-charging>
time-format = %l:%M
label-charging = %percentage%%%time%
label-discharging = %percentage%%%time%
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "CPU "
format-prefix-foreground = ${colors.primary}
label = %percentage%%
[module/temperature]
type = internal/temperature
format-prefix = "TEMP "
format-prefix-foreground = ${colors.primary}
units = true
label = %temperature-c%
[network-base]
type = internal/network
interval = 5
format-connected-prefix = "NET "
format-connected-prefix-foreground = ${colors.primary}
format-connected = <label-connected>
;format-connected-foreground = ${colors.primary}
format-disconnected = <label-disconnected>
format-disconnected-foreground = ${colors.disabled}
[module/wlan]
inherit = network-base
interface-type = wireless
label-connected = %ifname%
[module/eth]
inherit = network-base
interface-type = wired
label-connected = %linkspeed%
[module/date]
type = internal/date
date = %A, %b %d %l:%M %P
;date alt is for laptop
date-alt = %a, %b %d %l:%M %P
label = %date%
label-foreground = ${colors.primary}
[module/seafile]
; custom seafile script
type = custom/script
exec = seafile_check
interval = 3
[module/powermenu]
type = custom/text
content = %{F#F30} 
click-left = rofi-powermenu
[module/spotify]
; playerctl interaction for spotify
type = custom/script
tail = true
; spotify logo
format-prefix = " "
format-prefix-foreground = "#1ed760"
exec = poly_spotify --scroll 20
click-left = poly_spotify --toggle
click-right = rofi-music
[module/spotify-len]
; playerctl interaction for spotify
type = custom/script
interval = 1
exec = playerctl metadata -s --format '{{duration(position)}}/{{duration(mpris:length)}}'
[module/todo]
; uses calcurse to cycle through todo items
type = custom/script
interval = 1
exec = todo_display.sh
click-left = todo_display.sh inc
click-right = todo_display.sh dec
[settings]
screenchange-reload = true