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

320 lines
6.9 KiB
INI

[colors]
background = #001D1F21
background-alt = #373B41
#foreground = #C5C8C6
foreground = #DDD
primary = #F0C674
secondary = #8ABEB7
disabled = #707880
alert = #A54242S
[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
font-0 = Hack Nerd Font:size=10;2
height = 14pt
; modules
modules-left = xworkspaces weather-thinkpad
modules-right = battery pulseaudio memory cpu wlan vpn uptime seafile calendar-sync bg-selector date-tp powermenu
[bar/desktop-bar]
; desktop bar config
inherit = section/base-bar
; height
height = 24pt
; modules
modules-left = xworkspaces focus-fast spotify spotify-len
;modules-left = xworkspaces spotify spotify-len
modules-center = weather-desktop
modules-right = pulseaudio memory cpu temperature wlan eth vpn dev-bat seafile calendar-sync bg-selector quotes date powermenu
[bar/work-bar]
; desktop bar config
inherit = section/base-bar
; height
height = 18pt
; modules
modules-left = xworkspaces focus-fast
modules-center = weather-desktop
modules-right = memory cpu eth seafile bg-selector date-tp 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/focus-fast]
; correct title size
type = custom/script
tail = true
exec = ~/.dotfiles/bin/i3-focus.sh
[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 = i3-scratchpad.sh scratch st -n scratch -e weather -f
; middle click is nerdfont forecast
click-middle = i3-scratchpad.sh scratch st -n scratch -e 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 = %H:%M
label-charging = %percentage%% %time%
label-discharging = %percentage%% %time%
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "%{A1:i3-scratchpad.sh scratch st -n scratch -e zfxtop:}CPU %{A}"
format-prefix-foreground = ${colors.primary}
label = %percentage%%
; zfxtop for monitoring
[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>
; packet loss
animation-packetloss-0 = "⚠ "
animation-packetloss-0-foreground = #e1e815
animation-packetloss-1 = "⚠ "
animation-packetloss-1-foreground = #000000
format-packetloss = <animation-packetloss> <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 = %signal%%
[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/date-tp]
type = internal/date
date = %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 --player=spotify 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
[module/dev-bat]
; grabs mouse power from custom script
type = custom/script
interval = 5
exec = device_battery.sh -dc
click-left = i3-scratchpad.sh scratch st -n scratch -e bluetuith
[module/calendar-sync]
; clickable sync for calendar
type = custom/ipc
hook-0 = echo -e '\uf073'
hook-1 = echo -e '%{F#0F0}\uf274'
hook-2 = echo -e '%{F#F00}\uf273'
hook-3 = echo -e '%{F#FF0}\uf073'
initial = 1
click-left = calcurse-sync.sh
[module/bg-selector]
; select background
type = custom/script
interval = 60
exec = echo -e '\uf1c5'
click-left = wallpaper.sh -s
[module/quotes]
type = custom/script
interval = 120
exec = echo -e '\ueaa4'
; left click is random quote
click-left = i3-scratchpad.sh scratch st -n scratch -e quotes -rl
; right click is daily quote
click-right = i3-scratchpad.sh scratch st -n scratch -e quotes -dl
[module/uptime]
type = custom/script
interval = 30
format-prefix = "UP "
format-prefix-foreground = ${colors.primary}
exec = display_uptime
[module/packages]
type = custom/script
interval = 600
exec = printf "%s %s\n" `echo -e '\ueb29'` `pacman -Qu | wc -l`
[module/vpn]
; custom vpn script
type = custom/script
exec = vpn_status.sh
tail = true
[module/crypto]
; custom crypto script
type = custom/script
exec = /home/spinach/sb-ticker 20
tail = true
[settings]
screenchange-reload = true