vincentbernat.i3wm-configur.../dotfiles/polybar.conf

184 lines
4.1 KiB
Text
Raw Normal View History

2021-07-04 18:25:28 +02:00
[colors]
2021-07-14 13:55:31 +02:00
# Format: [aa]rrggbb
background = #a0000000
2021-07-04 18:25:28 +02:00
foreground = #eaeaea
highlight = #4c7899
2021-07-14 09:05:01 +02:00
warning = #ff3121
focused = #cc5c00
2021-07-14 13:55:31 +02:00
transparent = #00000000
2021-07-04 18:25:28 +02:00
[settings]
screenchange-reload = false
[bar/common]
2021-07-04 18:25:28 +02:00
enable-ipc = true
width = 100%
height = ${env:HEIGHT:}
monitor = ${env:MONITOR:}
monitor-strict = true
dpi = ${env:DPI:}
border-size = 0
tray-position = none
fixed-center = true
module-margin = 1
padding-right = 1
2021-07-04 18:25:28 +02:00
background = ${colors.background}
foreground = ${colors.foreground}
font-0 = Iosevka:style=Regular:size=10;4
font-1 = Font Awesome 6 Pro:style=Solid:size=10;4
font-2 = Font Awesome 6 Brands:style=Regular:size=10;4
2021-07-04 18:25:28 +02:00
modules-left = i3
2021-08-10 13:08:15 +02:00
modules-center = date weather
[bar/alone]
inherit = bar/common
2021-09-02 09:37:25 +02:00
modules-right = battery cpu memory brightness bluetooth network disk dunst micro speaker
2021-07-04 18:25:28 +02:00
[bar/primary]
inherit = bar/common
2021-09-02 09:37:25 +02:00
modules-right = battery cpu memory brightness bluetooth network disk dunst micro speaker
[bar/secondary]
inherit = bar/common
2021-08-10 13:08:15 +02:00
modules-center = date
2021-09-02 09:37:25 +02:00
modules-right = micro speaker
2021-07-04 18:25:28 +02:00
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
pin-workspaces = true
label-mode-background = ${colors.highlight}
label-mode-padding = 1
label-focused = %name%
label-focused-background = ${colors.focused}
2021-07-04 18:25:28 +02:00
label-focused-padding = 1
label-unfocused = %name%
2021-07-04 18:25:28 +02:00
label-unfocused-padding = 1
label-visible = %name%
label-visible-background = ${colors.highlight}
label-visible-padding = 1
label-urgent = %name%
2021-07-04 18:25:28 +02:00
label-urgent-background = #a00000
label-urgent-padding = 1
# This needs 3.6+
[module/disk]
type = internal/fs
2021-08-02 23:03:45 +02:00
warn-percentage = 94
fixed-values = true
interval = 10
format-unmounted =
format-mounted =
format-warn = <label-warn>
2021-07-14 09:05:01 +02:00
format-warn-foreground = ${colors.warning}
label-warn = 🖴 %mountpoint%: %percentage_used%%
include-file = $XDG_RUNTIME_DIR/i3/polybar-filesystems.conf
2021-07-05 08:28:06 +02:00
[module/brightness]
type = internal/backlight
card = ${env:BACKLIGHT:intel_backlight}
2021-08-11 18:33:20 +02:00
format = <ramp> <label>
label = %percentage: 2%%
2021-08-13 16:02:57 +02:00
ramp-0 = 
ramp-1 = 
enable-scroll = true
use-actual-brightness = true
2021-07-05 08:28:06 +02:00
2021-07-04 18:25:28 +02:00
[module/cpu]
type = internal/cpu
interval = 2
format = <label>
2021-12-19 12:37:41 +01:00
label = %{T2}%{T-} %percentage: 2%%
2021-07-04 18:25:28 +02:00
[module/memory]
type = internal/memory
interval = 5
label =  %percentage_used: 2%%
[module/date]
type = internal/date
interval = 2
date = %B %e
2021-07-04 18:25:28 +02:00
time = %H:%M
2021-07-17 20:32:33 +02:00
label = %date%  %time%
2021-07-04 18:25:28 +02:00
[module/battery]
type = internal/battery
poll-interval = 30
format-charging = <label-charging>
label-charging =  %percentage%%
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%%
2021-07-04 18:25:28 +02:00
format-full = <label-full>
label-full = 
2021-07-14 09:05:01 +02:00
format-low = <animation-low> <label-low>
label-low = %percentage%%
2021-07-14 13:55:31 +02:00
label-low-foreground = ${colors.warning}
animation-low-foreground = ${colors.warning}
2021-07-14 09:05:01 +02:00
full-at = 99
2022-10-16 09:04:54 +02:00
low-at = 5
2021-07-14 09:05:01 +02:00
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
ramp-capacity-5 = 
ramp-capacity-6 = 
ramp-capacity-7 = 
ramp-capacity-8 = 
ramp-capacity-9 = 
2021-07-14 09:05:01 +02:00
animation-low-0 = 
2021-07-14 13:55:31 +02:00
animation-low-1 = 
animation-low-2 = 
animation-low-3 = 
animation-low-3-foreground = ${colors.transparent}
animation-low-framerate = 500
2021-07-04 18:25:28 +02:00
2021-09-02 09:37:25 +02:00
[module/speaker]
2021-07-04 18:25:28 +02:00
type = internal/pulseaudio
use-ui-max = false
format-volume = <label-volume>
2021-07-04 18:25:28 +02:00
format-muted = <label-muted>
label-volume =  %percentage: 2%%
label-muted = 🔇 %percentage: 2%%
2021-09-02 09:37:25 +02:00
[module/micro]
type = internal/pulseaudio
use-ui-max = false
source = "@DEFAULT_SOURCE@"
format-volume = <label-volume>
format-muted = <label-muted>
label-volume =  %percentage: 2%%
label-muted =  %percentage: 2%%
# All IPC modules require 3.6+
[module/network]
type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/network.txt 2> /dev/null
initial = 1
[module/bluetooth]
type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/bluetooth.txt 2> /dev/null
initial = 1
[module/weather]
type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/weather.txt 2> /dev/null
initial = 1
click-left = xdg-open https://www.meteoblue.com/en/weather/week
[module/dunst]
type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/dunst.txt 2> /dev/null
initial = 1
click-left = dunstctl set-paused toggle
scroll-down = dunstctl close
scroll-up = dunstctl history-pop