mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 01:25:42 +02:00
187 lines
4.3 KiB
Text
187 lines
4.3 KiB
Text
[colors]
|
|
# Format: [aa]rrggbb
|
|
background = #a0000000
|
|
foreground = #eaeaea
|
|
highlight = #4c7899
|
|
warning = #ff3121
|
|
focused = #cc5c00
|
|
transparent = #00000000
|
|
|
|
[settings]
|
|
screenchange-reload = false
|
|
|
|
[bar/common]
|
|
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
|
|
|
|
background = ${colors.background}
|
|
foreground = ${colors.foreground}
|
|
|
|
font-0 = Iosevka Term SS18: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
|
|
font-3 = Weather Icons:style=Regular:size=10;4
|
|
|
|
modules-left = i3
|
|
modules-center = date weather
|
|
|
|
[bar/alone]
|
|
inherit = bar/common
|
|
modules-right = battery cpu memory brightness bluetooth network disk dunst micro speaker
|
|
|
|
[bar/primary]
|
|
inherit = bar/common
|
|
modules-right = battery cpu memory brightness bluetooth network disk dunst micro speaker
|
|
|
|
[bar/secondary]
|
|
inherit = bar/common
|
|
modules-center = date
|
|
modules-right = micro speaker
|
|
|
|
[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}
|
|
label-focused-padding = 1
|
|
label-unfocused = %name%
|
|
label-unfocused-padding = 1
|
|
label-visible = %name%
|
|
label-visible-background = ${colors.highlight}
|
|
label-visible-padding = 1
|
|
label-urgent = %name%
|
|
label-urgent-background = #a00000
|
|
label-urgent-padding = 1
|
|
|
|
# This needs 3.6+
|
|
[module/disk]
|
|
type = internal/fs
|
|
warn-percentage = 94
|
|
fixed-values = true
|
|
interval = 10
|
|
format-unmounted =
|
|
format-mounted =
|
|
format-warn = <label-warn>
|
|
format-warn-foreground = ${colors.warning}
|
|
label-warn = 🖴 %mountpoint%: %percentage_used%%
|
|
include-file = $XDG_RUNTIME_DIR/i3/polybar-filesystems.conf
|
|
|
|
[module/brightness]
|
|
type = internal/backlight
|
|
card = ${env:BACKLIGHT:intel_backlight}
|
|
format = <ramp> <label>
|
|
label = %percentage: 2%%
|
|
ramp-0 =
|
|
ramp-1 =
|
|
enable-scroll = true
|
|
use-actual-brightness = true
|
|
|
|
[module/cpu]
|
|
type = internal/cpu
|
|
interval = 2
|
|
format = <label>
|
|
label = %{T2}%{T-} %percentage: 2%%
|
|
|
|
[module/memory]
|
|
type = internal/memory
|
|
interval = 5
|
|
label = %percentage_used: 2%%
|
|
warn-percentage = 90
|
|
format-warn = <label>
|
|
format-warn-foreground = ${colors.warning}
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
interval = 2
|
|
date = %B %e
|
|
time = %H:%M
|
|
label = %date% %time%
|
|
|
|
[module/battery]
|
|
type = internal/battery
|
|
poll-interval = 30
|
|
format-charging = <label-charging>
|
|
label-charging = %percentage%%
|
|
format-discharging = <ramp-capacity> <label-discharging>
|
|
label-discharging = %percentage%%
|
|
format-full = <label-full>
|
|
label-full =
|
|
format-low = <animation-low> <label-low>
|
|
label-low = %percentage%%
|
|
label-low-foreground = ${colors.warning}
|
|
animation-low-foreground = ${colors.warning}
|
|
full-at = 99
|
|
low-at = 5
|
|
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 =
|
|
animation-low-0 =
|
|
animation-low-1 =
|
|
animation-low-2 =
|
|
animation-low-3 =
|
|
animation-low-3-foreground = ${colors.transparent}
|
|
animation-low-framerate = 500
|
|
|
|
[module/speaker]
|
|
type = internal/pulseaudio
|
|
use-ui-max = false
|
|
format-volume = <label-volume>
|
|
format-muted = <label-muted>
|
|
label-volume = %percentage: 2%%
|
|
label-muted = 🔇 %percentage: 2%%
|
|
|
|
[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
|