dotfiles/.config/polybar/config

389 lines
9.7 KiB
Plaintext
Raw Normal View History

2023-08-04 22:02:15 +00:00
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
[colors]
background = #222
background-alt = #444
foreground = #dfdfdf
foreground-alt = #555
2023-08-04 22:49:14 +00:00
primary = #0a6cf5
2023-08-04 22:02:15 +00:00
secondary = #e60053
alert = #bd2c40
2023-08-04 22:27:55 +00:00
[bar/dwm]
2023-08-04 22:49:14 +00:00
monitor = ${env:MONITOR:HDMI-1}
2023-08-04 22:02:15 +00:00
width = 100%
height = 27
radius = 5.0
fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 5
line-color = #f00
border-size = 5
border-bottom-size = 0
border-color = #00000000
padding-left = 0
padding-right = 2
module-margin-left = 1
module-margin-right = 2
2023-08-05 23:26:57 +00:00
font-0 = monospace:pixelsize=10;1
2023-08-04 22:02:15 +00:00
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
2023-08-05 14:20:44 +00:00
font-2 = Symbola:size=10
font-3 = OpenSymbol:size=10
2023-08-04 22:02:15 +00:00
modules-left = dwm
2023-08-05 14:20:58 +00:00
modules-center = player-mpris-tail
2023-08-05 23:26:57 +00:00
modules-right = xkeyboard filesystem pulseaudio cpu memory myip temperature date powermenu
2023-08-04 22:02:15 +00:00
tray-position = right
tray-padding = 5
cursor-click = pointer
cursor-scroll = ns-resize
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
[module/xkeyboard]
type = internal/xkeyboard
2023-08-04 22:27:55 +00:00
blacklist-0 =
blacklist-1 =
2023-08-04 22:02:15 +00:00
format-prefix-foreground = ${colors.foreground-alt}
2023-08-04 22:27:55 +00:00
format-prefix-underline = ${colors.primary}
2023-08-04 22:02:15 +00:00
label-layout = %layout%
2023-08-04 22:27:55 +00:00
label-layout-underline = ${colors.primary}
2023-08-04 22:02:15 +00:00
label-indicator-padding = 2
label-indicator-margin = 1
2023-08-04 22:27:55 +00:00
label-indicator-background = ${colors.background}
label-indicator-underline = ${colors.primary}
2023-08-04 22:02:15 +00:00
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
2023-08-05 14:21:36 +00:00
label-mounted = %{F#0a81f5}root %{F-}: %percentage_used%%
2023-08-04 22:02:15 +00:00
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
[module/dwm]
type = internal/dwm
format = <label-tags> <label-layout> <label-floating> <label-title>
; Path to dwm socket (default: /tmp/dwm.sock)
; socket-path = /tmp/dwm.sock
enable-tags-click = true
enable-tags-scroll = false
2023-08-05 14:20:04 +00:00
tags-scroll-empty = false
2023-08-04 22:02:15 +00:00
tags-scroll-reverse = false
2023-08-05 14:20:04 +00:00
2023-08-04 22:02:15 +00:00
enable-layout-click = true
enable-layout-scroll = true
layout-scroll-wrap = true
layout-scroll-reverse = false
secondary-layout-symbol = [M]
label-title = %title%
2023-08-05 23:26:57 +00:00
label-title-padding = 0
2023-08-04 22:02:15 +00:00
label-title-forefround = ${colors.primary}
2023-08-05 23:26:57 +00:00
label-title-maxlen = 120
label-title-minlen = 120
label-title-alignment = left
2023-08-04 22:02:15 +00:00
label-layout = %symbol%
2023-08-05 23:26:57 +00:00
label-layout-padding = 1
2023-08-04 22:02:15 +00:00
label-layout-foreground = #fff
label-layout-background = ${colors.primary}
label-floating = F
; States: focused, unfocused, visible, urgent, empty
; Available tokens:
; %name%
; focused = Selected tag on focused monitor
label-focused = %name%
label-focused-background = ${colors.primary}
label-focused-underline= ${colors.primary}
2023-08-05 23:26:57 +00:00
label-focused-padding = 1
2023-08-04 22:02:15 +00:00
2023-08-05 14:20:04 +00:00
; unfocused = Selected tag on unselected monitor
2023-08-04 22:02:15 +00:00
label-unfocused = %name%
2023-08-05 23:26:57 +00:00
label-unfocused-padding = 1
2023-08-05 14:20:04 +00:00
label-unfocused-background = ${colors.primary}
label-unfocused-underline= ${colors.primary}
2023-08-04 22:02:15 +00:00
; visible = Unselected tag, but occupied tag on any monitor
label-visible = %name%
label-visible-background = ${colors.background}
label-visible-underline = ${colors.primary}
label-visible-padding = ${self.label-focused-padding}
label-urgent = %name%
label-urgent-background = ${colors.alert}
2023-08-05 23:26:57 +00:00
label-urgent-padding = 1
2023-08-04 22:02:15 +00:00
label-empty = %name%
label-empty-background = ${colors.background}
2023-08-05 23:26:57 +00:00
label-empty-padding = 1
2023-08-04 22:02:15 +00:00
[module/cpu]
type = internal/cpu
interval = 2
2023-08-04 22:27:55 +00:00
format-prefix = "CPU "
2023-08-04 22:02:15 +00:00
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = %percentage:2%%
[module/memory]
type = internal/memory
interval = 2
2023-08-04 22:27:55 +00:00
format-prefix = "MEM "
2023-08-04 22:02:15 +00:00
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc
label = %percentage_used%%
[module/wlan]
type = internal/network
interface = net1
interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9f78e1
label-connected = %essid%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
2023-08-04 22:27:55 +00:00
interface = br0
2023-08-04 22:02:15 +00:00
interval = 3.0
format-connected-underline = #55aa55
2023-08-05 14:21:17 +00:00
format-connected-prefix = "br0 "
2023-08-04 22:02:15 +00:00
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
2023-08-05 14:21:26 +00:00
interval = 1
2023-08-04 22:02:15 +00:00
date =
date-alt = " %Y-%m-%d"
time = %H:%M
time-alt = %H:%M:%S
2023-08-05 23:26:57 +00:00
format-prefix = 🕐
2023-08-04 22:02:15 +00:00
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
label = %date% %time%
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <label-volume> <bar-volume>
label-volume = VOL %percentage%%
label-volume-foreground = ${root.foreground}
label-muted = 🔇 muted
label-muted-foreground = #666
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
bar-volume-empty-foreground = ${colors.foreground-alt}
[module/alsa]
type = internal/alsa
format-volume = <label-volume> <bar-volume>
label-volume = VOL
label-volume-foreground = ${root.foreground}
format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted
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
bar-volume-empty-foreground = ${colors.foreground-alt}
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 98
format-charging = <animation-charging> <label-charging>
format-charging-underline = #ffb52a
format-discharging = <animation-discharging> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}
format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${self.format-charging-underline}
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
animation-discharging-0 = 
animation-discharging-1 = 
animation-discharging-2 = 
animation-discharging-foreground = ${colors.foreground-alt}
animation-discharging-framerate = 750
2023-08-04 22:27:55 +00:00
2023-08-04 22:02:15 +00:00
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature-c%
label-warn = %temperature-c%
label-warn-foreground = ${colors.secondary}
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-foreground = ${colors.foreground-alt}
2023-08-05 14:20:58 +00:00
[module/player-mpris-tail]
type = custom/script
exec = ~/.config/polybar/player-mpris-tail.py -f '{icon} {artist} - {title}'
tail = true
2023-08-05 23:27:11 +00:00
[module/myip]
type = custom/script
exec = curl ifconfig.me 2> /dev/null
interval = 90
format-underline = #55aa55
format-prefix = "🌐 "
format-prefix-font = 2
2023-08-04 22:02:15 +00:00
[module/powermenu]
type = custom/menu
expand-right = true
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-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
;pseudo-transparency = false
[global/wm]
2023-08-04 22:27:55 +00:00
margin-top = 0
margin-bottom = 0
2023-08-04 22:02:15 +00:00
; vim:ft=dosini