chezmoi/dot_config/polybar/config.tmpl
2023-08-23 09:44:16 +02:00

1158 lines
29 KiB
INI

;Symbols
;▁▂▃▄▅▆▇█
;
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
[colors]
;gruvbox colors
dark0_hard = #1d2021
dark0 = #282828
dark0_soft = #32302f
dark1 = #3c3836
dark2 = #504945
dark3 = #665c54
dark4 = #7c6f64
gray_245 = #928374
gray_244 = #928374
light0_hard = #f9f5d7
light0 = #fbf1c7
light0_soft = #f2e5bc
light1 = #ebdbb2
light2 = #d5c4a1
light3 = #bdae93
light4 = #a89984
bright_red = #fb4934
bright_green = #b8bb26
bright_yellow = #fabd2f
bright_blue = #83a598
bright_purple = #d3869b
bright_aqua = #8ec07c
bright_orange = #fe8019
neutral_red = #cc241d
neutral_green = #98971a
neutral_yellow = #d79921
neutral_blue = #458588
neutral_purple = #b16286
neutral_aqua = #689d6a
neutral_orange = #d65d0e
faded_red = #9d0006
faded_green = #79740e
faded_yellow = #b57614
faded_blue = #076678
faded_purple = #8f3f71
faded_aqua = #427b58
faded_orange = #af3a03
;want to get colors from xrdb / .Xresources?
;background = ${xrdb:color0:#222}
;bar-background = #00FFFFFF
;ARGB
bar-background = #dd1d2021
[bar/general]
width = 100%
; spaces before/after each module
module-margin-left = 1
module-margin-right = 1
height = 27
fixed-center = true
line-size = 2
line-color = #f00
; rounded corners of the bar
radius = 0.0
;this makes sure that i3 doesn't reposition everything when polybar becomes active... is shit
override-redirect = false
wm-restack = i3
; all the bar colors
background = ${colors.bar-background}
foreground = ${colors.light0_hard}
;border-color = ${colors.bright_blue}
border-color = #00FFFFFF
border-left-size = 0
border-right-size = 0
border-top-size = 0
; spaces on begin/end of bar
padding-left = 5
padding-right = 5
; set the bar fonts
; when using mono fonts, icons might appear way too small
;font-0 = fixed:pixelsize=10;1
;font-0 = "Wuncon Siji:pixelsize=15;1"
;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
;font-2 = "Inconsolata\ For\ Powerline:pixelsize=10;1"
;font-0 = FuraCode Nerd Font:pixelsize=11;1
font-0 = Hasklug Nerd Font Mono:pixelsize=9;1
; larger variant for icons if they're too small (use %{T2}x%{T-})
font-1 = Hasklug Nerd Font Mono:pixelsize=14;1
;font-1 = Siji:style=Regular:pixelsize=11
;font-1 = Siji:pixelsize=14;0
; override pointers
cursor-click = pointer
cursor-scroll = pointer
; this bar will contain the tray, only on primary monitor
[bar/primary]
inherit = bar/general
monitor = ${env:MONITOR:eDP-1}
bottom = false
;offset-x = 2%
;offset-y = 1%
;i'm faking the left and right margins with a fat border. i'm helpless
;border-size = 20
;border-left-size = 16
;border-right-size = 16
;unused modules - mpd xbacklight backlight-acpi alsa
modules-left = i3
modules-center = temperature battery xkeyboard memory cpu filesystem updates-pacman updates-aurhelper reboot-check xbacklight top-process
modules-right = net wifi0 vpn
; TRAY MANAGEMENT
tray-position = right
;tray-position = ${env:TRAY_POSITION:none}
tray-transparent = false
tray-detached = false
tray-maxsize = 16
;tray-background = ${colors.background-alt}
;this makes sure that the tray doesn't run off to the right of the monitor - only enable this when the bar's width is a bit off
tray-offset-x = 0
tray-offset-y = 27
tray-padding = 2
tray-scale = 1.0
padding-left = 2
padding-right = 2
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
cursor-click = pointer
;cursor-scroll = ns-resize
cursor-scroll = pointer
[bar/secondary]
inherit = bar/general
monitor = ${env:MONITOR:eDP-1}
;offset-x = 2%
;offset-y = 1%
;unused modules - mpd xbacklight backlight-acpi alsa
modules-right = pulseaudio
modules-center = player-mpris-tail
modules-left = date
padding-left = 2
padding-right = 2
[module/player-mpris-tail]
type = custom/script
exec = ~/.config/polybar/polybar-scripts/player-mpris-tail/player-mpris-tail.py -f '{icon} {artist} - {:t30:{title}:}' --icon-playing  --icon-paused  --icon-stopped  --icon-none ﱙ
tail = true
label = %output%
label-foreground = ${colors.light0_hard}
[module/gpu-temp]
type = custom/script
exec = ~/scripts/gpu.temp.sh
tail = true
label = "%output%°C"
label-foreground = ${colors.light0_hard}
format-prefix = "%{T2}󱣾%{T-} "
format-prefix-foreground = ${colors.bright_green}
interval = 5
;[module/info-hackspeed]
;type = custom/script
;format-prefix = " "
;format-prefix-foreground = ${colors.bright_green}
;exec = ~/.config/polybar/polybar-scripts/info-hackspeed/info-hackspeed.sh
;tail = true
[module/obelisk-status]
type = custom/script
exec = ~/scripts/obelisk.status.sh
tail = false
interval = 10
[module/mail-status]
type = custom/script
exec = ~/scripts/mail.status.sh
tail = false
interval = 10
[module/top-process]
type = custom/script
format-prefix = " "
format-prefix-foreground = ${colors.bright_green}
;format-underline = ${colors.bright_red}
interval = 5
exec = ~/.dotfiles/scripts/top.process.sh
tail = true
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = " "
format-prefix-foreground = ${colors.bright_green}
format-prefix-font = 2
;format-prefix-underline = ${colors.underline-keyboard}
; layout, number, name
label-layout = %layout%
;label-layout-underline = ${colors.underline-keyboard}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.neutral_blue}
;label-indicator-underline = ${colors.underline-keyboard}
cursor-click = pointer
[module/vpn]
type = custom/script
exec = nmcli | grep "VPN connection" | sed -e "s/VPN connection//g"
exec-if = pgrep -x openvpn
interval = 5
;format-underline = #268bd2
format-prefix = " "
format-prefix-foreground = ${colors.light0}
[module/filesystem]
type = internal/fs
; Mountpoints to display
; mounts differ depending on the machine
; need to include comments in each of the options: template swallows newlines
{{- if eq .chezmoi.hostname "dome" }}
; mount root
mount-0 = /
{{ else if eq .chezmoi.hostname "carbonraptor" -}}
; mount root
mount-0 = /
; mount ext4 partition for non-btrfs files
mount-1 = /mnt/ext4
{{ else if eq .chezmoi.hostname "jnielandt" -}}
; only root
mount-0 = /
{{ else if eq .chezmoi.hostname "nielanjo" -}}
; only root
mount-0 = /
{{- end }}
; Seconds to sleep between updates
; Default: 30
interval = 10
; Display fixed precision values
; Default: false
fixed-values = true
; Spacing (number of spaces, pixels, points) between entries
; Default: 2
spacing = 4
; Default: 90
; New in version 3.6.0
warn-percentage = 75
; Available tags:
; <label-mounted> (default)
; <bar-free>
; <bar-used>
; <ramp-capacity>
format-mounted = <label-mounted>
format-mounted-prefix = "󰋊 "
format-mounted-prefix-foreground = ${colors.bright_green}
; Available tags:
; <label-unmounted> (default)
format-unmounted = <label-unmounted>
; Format used when mountpoint %percentage_used% reaches warn-percentage
; If not defined, format-mounted is used instead.
; Available tags:
; <label-warn>
; <bar-free>
; <bar-used>
; <ramp-capacity>
; New in version 3.6.0
; format-warn = <label-warn>
; Available tokens:
; %mountpoint%
; %type%
; %fsname%
; %percentage_free%
; %percentage_used%
; %total%
; %free%
; %used%
; Default: %mountpoint% %percentage_free%%
label-mounted = %mountpoint% %percentage_used%%
label-mounted-foreground = ${colors.bright_green}
; Available tokens:
; %mountpoint%
; Default: %mountpoint% is not mounted
label-unmounted = %mountpoint%: not mounted
label-unmounted-foreground = ${colors.bright_orange}
; Available tokens:
; %mountpoint%
; %type%
; %fsname%
; %percentage_free%
; %percentage_used%
; %total%
; %free%
; %used%
; Default: %mountpoint% %percentage_free%%
; New in version 3.6.0
; label-warn = %mountpoint%: WARNING
[module/bspwm]
type = internal/bspwm
label-focused = %index%
label-focused-background = ${colors.background-alt}
;label-focused-underline= ${colors.primary}
label-focused-padding = 2
label-occupied = %index%
label-occupied-padding = 2
label-urgent = %index%!
label-urgent-background = ${colors.bright_red}
label-urgent-padding = 2
label-empty = %index%
label-empty-foreground = ${colors.bright_green}
label-empty-padding = 2
; Separator in between workspaces
; label-separator = |
[module/i3]
type = internal/i3
; Only show workspaces defined on the same output as the bar
;
; Useful if you want to show monitor specific workspaces
; on different bars
;
; Default: false
pin-workspaces = true
; Show urgent workspaces regardless of whether the workspace is actually hidden
; by pin-workspaces.
;
; Default: false
; New in version 3.6.0
show-urgent = true
; This will split the workspace name on ':'
; Default: false
strip-wsnumbers = true
; Sort the workspaces by index instead of the default
; sorting that groups the workspaces by output
; Default: false
index-sort = true
; Create click handler used to focus workspace
; Default: true
enable-click = true
; Create scroll handlers used to cycle workspaces
; Default: true
enable-scroll = true
; Wrap around when reaching the first/last workspace
; Default: true
wrapping-scroll = false
; Set the scroll cycle direction
; Default: true
reverse-scroll = false
; Use fuzzy (partial) matching on labels when assigning
; icons to workspaces
; Example: code;♚ will apply the icon to all workspaces
; containing 'code' in the label
; Default: false
fuzzy-match = true
; ws-icon-[0-9]+ = <label>;<icon>
; NOTE: The <label> needs to match the name of the i3 workspace
; Neither <label> nor <icon> can contain a semicolon (;)
;ws-icon-0 = 1;a
;ws-icon-1 = 2;b
;ws-icon-2 = 3;c
;ws-icon-3 = 4;d
;ws-icon-4 = 5;♞
;ws-icon-default = ♟
; NOTE: You cannot skip icons, e.g. to get a ws-icon-6
; you must also define a ws-icon-5.
; NOTE: Icon will be available as the %icon% token inside label-*
; Available tags:
; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
; <label-mode> (default)
format = <label-state> <label-mode>
; Available tokens:
; %mode%
; Default: %mode%
label-mode = %mode%
label-mode-padding = 2
label-mode-background = ${colors.dark2}
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-focused = %name%
label-focused-foreground = ${colors.bright_green}
;label-focused-background = ${colors.dark2}
;label-focused-underline = #fba922
label-focused-padding = 1
; unfocused = Inactive workspace on any monitor
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-unfocused = %name%
label-unfocused-padding = 1
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-visible = %name%
;label-visible-underline = #555555
label-visible-foreground = ${colors.neutral_green}
label-visible-padding = 1
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-urgent = %index%
label-urgent-foreground = ${colors.bright_orange}
label-urgent-background = #bd2c40
label-urgent-padding = 1
; Separator in between workspaces
label-separator = ·
label-separator-padding = 0
label-separator-foreground = ${colors.light0_hard}
[module/mpd]
type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
icon-prev =
icon-stop =
icon-play =
icon-pause =
icon-next =
label-song-maxlen = 25
label-song-ellipsis = true
[module/xbacklight]
type = internal/xbacklight
format = <label> <bar>
label =
; format-underline = ${colors.bright_green}
;format-underline = ${colors.col6}
format-prefix-foreground = ${colors.bright_green}
bar-width = 10
bar-indicator = |
bar-indicator-foreground = #ff
bar-indicator-font = 2
bar-fill =
bar-fill-font = 2
bar-fill-foreground = ${colors.col6}
bar-empty =
bar-empty-font = 2
bar-empty-foreground = ${colors.col7}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
;card = intel_backlight
card = acpi_video0
[module/cpu]
type = internal/cpu
; Seconds to sleep between updates
; Default: 1
interval = 0.5
; Default: 80
; New in version 3.6.0
warn-percentage = 95
; Available tags:
; <label> (default)
; <bar-load>
; <ramp-load>
; <ramp-coreload>
format = <label> <ramp-coreload>
; Format used when average CPU load (same as %percentage%) reaches warn-percentage
; If not defined, format is used instead.
; Available tags:
; <label-warn>
; <bar-load>
; <ramp-load>
; <ramp-coreload>
; New in version 3.6.0
; format-warn = <label-warn>
; Available tokens:
; %percentage% (default) - total cpu load averaged over all cores
; %percentage-sum% - Cumulative load on all cores
; %percentage-cores% - load percentage for each core
; %percentage-core[1-9]% - load percentage for specific core
label = %percentage%%
; Available tokens:
; %percentage% (default) - total cpu load averaged over all cores
; %percentage-sum% - Cumulative load on all cores
; %percentage-cores% - load percentage for each core
; %percentage-core[1-9]% - load percentage for specific core
; New in version 3.6.0
label-warn = %percentage%%
label-warn-foreground = ${colors.bright_red}
; Spacing (number of spaces, pixels, points) between individual per-core ramps
ramp-coreload-spacing = 0.8
ramp-coreload-0 =
ramp-coreload-1 =
ramp-coreload-2 =
ramp-coreload-3 =
ramp-coreload-4 =
ramp-coreload-5 =
ramp-coreload-6 =
ramp-coreload-7 =
ramp-coreload-foreground = ${colors.light0_soft}
; Prefix
format-prefix = " "
format-prefix-foreground = ${colors.bright_green}
format-prefix-font = 2
[module/memory]
type = internal/memory
; Seconds to sleep between updates
; Default: 1
interval = 3
; Default: 90
; New in version 3.6.0
warn-percentage = 95
; Available tags:
; <label> (default)
; <bar-used>
; <bar-free>
; <ramp-used>
; <ramp-free>
; <bar-swap-used>
; <bar-swap-free>
; <ramp-swap-used>
; <ramp-swap-free>
format = <label>
; Format used when RAM reaches warn-percentage
; If not defined, format is used instead.
; Available tags:
; <label-warn>
; <bar-used>
; <bar-free>
; <ramp-used>
; <ramp-free>
; <bar-swap-used>
; <bar-swap-free>
; <ramp-swap-used>
; <ramp-swap-free>
; New in version 3.6.0
format-warn = <label-warn>
; Available tokens:
; %percentage_used% (default)
; %percentage_free%
; %used% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %free% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %total% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %gb_used%
; %gb_free%
; %gb_total%
; %mb_used%
; %mb_free%
; %mb_total%
; %percentage_swap_used%
; %percentage_swap_free%
; %swap_total% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %swap_free% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %swap_used% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %gb_swap_total%
; %gb_swap_free%
; %gb_swap_used%
; %mb_swap_total%
; %mb_swap_free%
; %mb_swap_used%
;label = %gb_used%/%gb_free%
label = %percentage_used%% %percentage_swap_used%%
; Available tokens:
; %percentage_used% (default)
; %percentage_free%
; %used% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %free% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %total% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %gb_used%
; %gb_free%
; %gb_total%
; %mb_used%
; %mb_free%
; %mb_total%
; %percentage_swap_used%
; %percentage_swap_free%
; %swap_total% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %swap_free% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %swap_used% (Switches between KiB, MiB, and GiB) (New in version 3.6.0)
; %gb_swap_total%
; %gb_swap_free%
; %gb_swap_used%
; %mb_swap_total%
; %mb_swap_free%
; %mb_swap_used%
; New in version 3.6.0
label-warn = %gb_used%/%gb_free%
; Only applies if <bar-used> is used
bar-used-indicator =
bar-used-width = 50
bar-used-foreground-0 = #55aa55
bar-used-foreground-1 = #557755
bar-used-foreground-2 = #f5a70a
bar-used-foreground-3 = #ff5555
bar-used-fill =
bar-used-empty =
bar-used-empty-foreground = #444444
; Only applies if <ramp-used> is used
ramp-used-0 =
ramp-used-1 =
ramp-used-2 =
ramp-used-3 =
ramp-used-4 =
ramp-used-5 =
ramp-used-6 =
ramp-used-7 =
; Only applies if <ramp-free> is used
ramp-free-0 =
ramp-free-1 =
ramp-free-2 =
ramp-free-3 =
ramp-free-4 =
ramp-free-5 =
ramp-free-6 =
ramp-free-7 =
format-prefix = "󰍛 "
format-prefix-font = 2
format-prefix-foreground = ${colors.bright_green}
[module/updates-pacman]
type = custom/script
format-prefix=" "
format-prefix-font = 2
format-prefix-foreground = ${colors.bright_yellow}
exec = ~/.config/polybar/polybar-scripts/updates-pacman/updates-pacman.sh
interval = 600
[module/updates-aurhelper]
type = custom/script
format-prefix=" "
format-prefix-font = 2
format-prefix-foreground = ${colors.bright_yellow}
exec = ~/.config/polybar/polybar-scripts/updates-aurhelper/updates-aurhelper.sh
interval = 600
[module/reboot-check]
type = custom/script
exec = ~/.dotfiles/scripts/reboot.check
format-underline = ${colors.light0}
format-foreground = ${colors.bright_red}
interval = 30
label = ""
[module/wifi0]
type = internal/network
; Name of the network interface to display. You can get the names of the
; interfaces on your machine with `ip link`
; Wireless interfaces often start with `wl` and ethernet interface with `eno` or `eth`
{{- if eq .chezmoi.hostname "dome" }}
interface = wlp3s0
{{- else if eq .chezmoi.hostname "jnielandt" }}
interface = wlp58s0
{{- else if eq .chezmoi.hostname "nielanjo" }}
interface = wlan0
{{ else }}
interface = wifi0
{{- end }}
; Seconds to sleep between updates
; Default: 1
interval = 3.0
; Test connectivity every Nth update
; A value of 0 disables the feature
; NOTE: Experimental (needs more testing)
; Default: 0
;ping-interval = 3
; @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 like USB network adapters have
; an unknown state, even when they're running
; Default: false
unknown-as-up = true
; The unit used for displaying network speeds
; For example if set to the empty string, a speed of 5 KB/s is displayed as 5 K
; Default: B/s
; New in version 3.6.0
speed-unit =
; Available tags:
; <label-connected> (default)
; <ramp-signal>
format-connected = <ramp-signal> <label-connected>
; Available tags:
; <label-disconnected> (default)
format-disconnected = <label-disconnected>
; Available tags:
; <label-connected> (default)
; <label-packetloss>
; <animation-packetloss>
format-packetloss = <animation-packetloss> <label-connected>
; All labels support the following tokens:
; %ifname% [wireless+wired]
; %local_ip% [wireless+wired]
; %local_ip6% [wireless+wired]
; %essid% [wireless]
; %signal% [wireless]
; %upspeed% [wireless+wired]
; %downspeed% [wireless+wired]
; %netspeed% [wireless+wired] (%upspeed% + %downspeed%) (New in version 3.6.0)
; %linkspeed% [wired]
; %mac% [wireless+wired] (New in version 3.6.0)
; Default: %ifname% %local_ip%
label-connected = %essid% 󰄼%downspeed:3% 󰄿%upspeed:3%
label-connected-foreground = #eefafa
; Default: (none)
label-disconnected = 󰤭
label-disconnected-foreground = ${colors.bright_red}
label-disconnected-font = 2
; Default: (none)
label-packetloss = %essid%
label-packetloss-foreground = #eefafafa
; Only applies if <ramp-signal> is used
ramp-signal-0 = 󰤫
ramp-signal-1 = 󰤯
ramp-signal-2 = 󰤟
ramp-signal-3 = 󰤢
ramp-signal-4 = 󰤥
ramp-signal-5 = 󰤨
ramp-signal-font = 2
ramp-signal-foreground = ${colors.bright_green}
; Only applies if <animation-packetloss> is used
animation-packetloss-0 =
animation-packetloss-0-foreground = ${colors.bright_red}
animation-packetloss-1 = 📶
animation-packetloss-1-foreground = #000000
; Framerate in milliseconds
animation-packetloss-framerate = 500
[module/net]
type = internal/network
{{- if eq .chezmoi.hostname "jnielandt" }}
interface = enp0s31f6
{{ else }}
interface = net0
{{- end }}
interval = 3.0
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.bright_green}
;label-connected = %local_ip%
label-connected = "%downspeed:3% %upspeed:3%"
label-connected-foreground = ${colors.light0_hard}
format-disconnected =
format-disconnected-prefix-foreground = ${colors.bright_green}
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.bright_green}
[module/date]
type = internal/date
interval = 5
date = " %Y-%m-%d"
date-alt =
time = %H:%M:%S
time-alt = %H:%M
format-prefix = ""
format-prefix-foreground = ${colors.bright_green}
label-foreground = ${colors.light0_hard}
;format-underline = #0a6cf5
;format-underline = ${colors.underline-date}
label = "%date% %time%"
[module/pulseaudio]
type = internal/pulseaudio
; Sink to be used, if it exists (find using `pacmd list-sinks`, name field)
; If not, uses default sink
; sink = alsa_output.pci-0000_12_00.3.analog-stereo
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
; Default: true
use-ui-max = true
; Interval for volume increase/decrease (in percent points)
; Default: 5
interval = 5
; Available tags:
; <label-volume> (default)
; <ramp-volume>
; <bar-volume>
;format-volume = <ramp-volume> <label-volume>
format-volume = <label-volume> <bar-volume>
; Available tags:
; <label-muted> (default)
; <ramp-volume>
; <bar-volume>
;format-muted = <label-muted>
; Available tokens:
; %percentage% (default)
; %decibels%
label-volume =  %percentage%%
label-volume-foreground = ${colors.bright_green}
;
; Available tokens:
; %percentage% (default)
; %decibels%
label-muted =
label-muted-foreground = ${colors.faded_green}
; Only applies if <ramp-volume> is used
ramp-volume-0 = 󰕿
ramp-volume-1 = 󰖀
ramp-volume-2 = 󰕾
; Right and Middle click
click-right = pavucontrol
; click-middle =
;
;; the muted symbol comes from siji font (check the 'view.sh' script for altcodes)
;
;bar-volume-width = 10
;bar-volume-foreground-0 = #b8bb26
;bar-volume-foreground-1 = #b8bb26
;bar-volume-foreground-2 = #b8bb26
;bar-volume-foreground-3 = #b8bb26
;bar-volume-foreground-4 = #b8bb26
;bar-volume-foreground-5 = #fe8019
;bar-volume-foreground-6 = #fb4934
;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 = 
;bar-volume-empty-font = 2
;bar-volume-empty-foreground = ${colors.faded_green}
[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.bright_green}
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.bright_green}
[module/battery]
;https://github.com/polybar/polybar/wiki/Module:-battery
type = internal/battery
; This is useful in case the battery never reports 100% charge
; Default: 100
full-at = 96
; format-low once this charge percentage is reached
; Default: 10
; New in version 3.6.0
low-at = 5
; Use the following command to list batteries and adapters:
; $ ls -1 /sys/class/power_supply/
battery = BAT0
adapter = AC
; If an inotify event haven't been reported in this many
; seconds, manually poll for new values.
;
; Needed as a fallback for systems that don't report events
; on sysfs/procfs.
;
; Disable polling by setting the interval to 0.
;
; Default: 5
poll-interval = 5
; see "man date" for details on how to format the time string
; NOTE: if you want to use syntax tags here you need to use %%{...}
; Default: %H:%M:%S
time-format = %H:%M
; Available tags:
; <label-charging> (default)
; <bar-capacity>
; <ramp-capacity>
; <animation-charging>
format-charging = <animation-charging> <label-charging>
; Available tags:
; <label-discharging> (default)
; <bar-capacity>
; <ramp-capacity>
; <animation-discharging>
format-discharging = <ramp-capacity> <label-discharging>
; Available tags:
; <label-full> (default)
; <bar-capacity>
; <ramp-capacity>
; format-full = <ramp-capacity> <label-full>
format-full = <ramp-capacity>
; Format used when battery level drops to low-at
; If not defined, format-discharging is used instead.
; Available tags:
; <label-low>
; <animation-low>
; <bar-capacity>
; <ramp-capacity>
; New in version 3.6.0
format-low = <label-low> <animation-low>
; Available tokens:
; %percentage% (default) - is set to 100 if full-at is reached
; %percentage_raw%
; %time%
; %consumption% (shows current charge rate in watts)
label-charging = "  %time% %percentage%%"
; Available tokens:
; %percentage% (default) - is set to 100 if full-at is reached
; %percentage_raw%
; %time%
; %consumption% (shows current discharge rate in watts)
label-discharging = "  %time% %percentage%%"
; Available tokens:
; %percentage% (default) - is set to 100 if full-at is reached
; %percentage_raw%
label-full = ""
; Available tokens:
; %percentage% (default) - is set to 100 if full-at is reached
; %percentage_raw%
; %time%
; %consumption% (shows current discharge rate in watts)
; New in version 3.6.0
label-low = BATTERY LOW
; Only applies if <ramp-capacity> is used
ramp-capacity-0 = "%{T2}%{T-} "
ramp-capacity-1 = "%{T2}%{T-} "
ramp-capacity-2 = "%{T2}%{T-} "
ramp-capacity-3 = "%{T2}%{T-} "
ramp-capacity-4 = "%{T2}%{T-} "
ramp-capacity-foreground = ${colors.bright_green}
; Only applies if <bar-capacity> is used
bar-capacity-width = 10
; Only applies if <animation-charging> is used
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
; Framerate in milliseconds
animation-charging-framerate = 750
animation-charging-foreground = ${colors.bright_green}
; Only applies if <animation-discharging> is used
animation-discharging-0 = "%{T2}%{T-} "
animation-discharging-1 = "%{T2}%{T-} "
animation-discharging-2 = "%{T2}%{T-} "
animation-discharging-3 = "%{T2}%{T-} "
animation-discharging-4 = "%{T2}%{T-} "
; Framerate in milliseconds
animation-discharging-framerate = 500
animation-discharging-foreground = ${colors.bright_orange}
; Only applies if <animation-low> is used
; New in version 3.6.0
animation-low-0 = !
animation-low-1 =
animation-low-framerate = 200
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
;format-underline = ${colors.bright_green}
format-warn = <ramp> <label-warn>
;format-warn-underline = ${self.format-underline}
label = %temperature-c%
label-warn = %temperature-c%
label-warn-foreground = ${colors.bright_red}
;found this with following command
; for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp2_input
;hwmon-path = ${env:HWMON_PATH:/sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input}
; different approach: add to .xinitrc a line that sets up an env variable
; > CPU_TEMP_PATH=$(ls /sys/devices/platform/coretemp*/hwmon/hwmon*/temp*_input | grep -m 1 '')
hwmon-path = ${env:CPU_TEMP_PATH:/sys/devices/platform/coretemp.0/hwmon/hwmon5/temp5_input}
;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp2_input
ramp-0 =
ramp-1 =
ramp-2 =
ramp-foreground = ${colors.bright_green}
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open =
label-open-foreground = ${colors.bright_green}
label-close = " back"
label-close-foreground = ${colors.bright_green}
label-separator = |
label-separator-foreground = ${colors.bright_green}
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 = systemctl reboot
menu-2-0 = power off
menu-2-0-exec = systemctl 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
[global/wm]
;margin-top = 5
;margin-bottom = 5
; vim:ft=dosini