2018-06-15 21:11:14 +02:00
|
|
|
[global/wm]
|
|
|
|
margin-top=50
|
2024-01-28 21:07:25 +01:00
|
|
|
include-file = $HOME/.config/polybar/macchiato.ini
|
2018-06-15 21:11:14 +02:00
|
|
|
|
2019-11-14 19:06:44 +01:00
|
|
|
; Common to top and bottom bars
|
|
|
|
[bar/common]
|
|
|
|
width = 100%
|
2023-10-28 23:12:12 +02:00
|
|
|
dpi = ${variables.dpi}
|
2019-11-14 19:06:44 +01:00
|
|
|
enable-ipc = true
|
2023-10-28 23:12:12 +02:00
|
|
|
height = ${variables.height}
|
2023-12-18 21:58:40 +01:00
|
|
|
foreground = ${colors.text}
|
|
|
|
background = ${colors.surface0}
|
2019-11-14 19:06:44 +01:00
|
|
|
line-size = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
line-color = ${colors.base}
|
2019-11-14 19:06:44 +01:00
|
|
|
|
|
|
|
locale = fr_FR.UTF-8
|
|
|
|
monitor = ${env:MONITOR:HDMI-0}
|
|
|
|
|
|
|
|
[bar/chostytopbar]
|
|
|
|
inherit = bar/common
|
2023-12-18 20:00:52 +01:00
|
|
|
font-0 = NotoSans-Regular:size=10;1
|
2019-11-14 19:06:44 +01:00
|
|
|
font-1 = MaterialIcons-Regular:size=11;4
|
|
|
|
font-2 = Symbola:size=10;2
|
|
|
|
font-3 = Weather Icons:size=10;3
|
|
|
|
|
|
|
|
overline-size = 10
|
|
|
|
underline-size = 10
|
2023-12-18 21:58:40 +01:00
|
|
|
overline-color = ${colors.mauve}
|
|
|
|
underline-color = ${colors.mauve}
|
2019-11-14 19:06:44 +01:00
|
|
|
border-bottom-size = 1
|
2023-12-18 21:58:40 +01:00
|
|
|
border-bottom-color = ${colors.base}
|
2019-11-14 19:06:44 +01:00
|
|
|
padding-left = 2
|
|
|
|
padding-right = 10
|
|
|
|
module-margin-left = 4
|
|
|
|
module-margin-right = 4
|
|
|
|
|
2023-10-28 23:12:12 +02:00
|
|
|
modules-left = ${variables.top_left}
|
|
|
|
modules-center = ${variables.top_center}
|
|
|
|
modules-right = ${variables.top_right}
|
2019-11-14 19:06:44 +01:00
|
|
|
|
|
|
|
tray-position = right
|
|
|
|
|
2018-05-03 20:23:53 +02:00
|
|
|
[bar/chostybottombar]
|
2018-06-15 21:11:14 +02:00
|
|
|
inherit = bar/common
|
2018-05-03 20:23:53 +02:00
|
|
|
bottom = true
|
|
|
|
|
|
|
|
overline-size = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
overline-color = ${colors.mauve}
|
2018-05-03 20:23:53 +02:00
|
|
|
underline-size = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
underline-color = ${colors.mauve}
|
2018-05-03 20:23:53 +02:00
|
|
|
|
|
|
|
spacing = 3
|
|
|
|
padding-left = 0
|
|
|
|
padding-right = 5
|
|
|
|
module-margin-left = 6
|
|
|
|
module-margin-right = 6
|
|
|
|
|
2023-12-18 20:00:52 +01:00
|
|
|
font-0 = NotoSans-Regular:size=10;1
|
|
|
|
font-1 = Symbola:size=4;2
|
|
|
|
font-2 = Symbola:size=5;2
|
2023-02-18 23:53:35 +01:00
|
|
|
;MaterialIcons are the ones used for i3 icons
|
2018-05-03 20:23:53 +02:00
|
|
|
font-3 = MaterialIcons-Regular:size=11;4
|
|
|
|
font-4 = Font Awesome 5 Free:style=solid:size=10;2
|
|
|
|
|
2023-10-28 23:12:12 +02:00
|
|
|
modules-left = ${variables.bottom_left}
|
|
|
|
modules-center = ${variables.bottom_center}
|
|
|
|
modules-right = ${variables.bottom_right}
|
2018-06-21 00:04:18 +02:00
|
|
|
|
2023-02-19 19:42:07 +01:00
|
|
|
[module/player-mpris]
|
|
|
|
type = custom/script
|
|
|
|
exec = python ~/.config/polybar/scripts/player-mpris.py -f '🎝 {artist} - {title} %{A1:python ~/.config/polybar/scripts/player-mpris.py previous:} ⏮ %{A} %{A1:python ~/.config/polybar/scripts/player-mpris.py play-pause:} {icon-reversed} %{A} %{A1:python ~/.config/polybar/scripts/player-mpris.py next:} ⏭ %{A}'
|
|
|
|
tail = true
|
|
|
|
|
2018-05-03 20:23:53 +02:00
|
|
|
[module/xwindow]
|
|
|
|
type = internal/xwindow
|
2023-12-18 21:58:40 +01:00
|
|
|
label = ${env:BAR_WINDOW}
|
2018-05-03 20:23:53 +02:00
|
|
|
label-maxlen=100
|
|
|
|
|
|
|
|
[module/i3]
|
|
|
|
type = internal/i3
|
|
|
|
format = <label-state> <label-mode>
|
|
|
|
|
|
|
|
index-sort = true
|
|
|
|
|
2023-02-18 22:29:26 +01:00
|
|
|
ws-icon-0 = 1;
|
|
|
|
ws-icon-1 = 2;
|
2019-10-02 22:12:55 +02:00
|
|
|
ws-icon-2 = 3;
|
|
|
|
ws-icon-3 = 4;
|
|
|
|
ws-icon-4 = 5;
|
2023-02-18 23:53:35 +01:00
|
|
|
ws-icon-5 = 6;
|
2018-05-03 20:23:53 +02:00
|
|
|
|
2018-10-23 16:15:36 +02:00
|
|
|
label-separator = |
|
2023-12-18 21:58:40 +01:00
|
|
|
|
2023-12-18 21:58:40 +01:00
|
|
|
label-mode-underline = ${colors.surface0}
|
2023-12-18 21:58:40 +01:00
|
|
|
|
2018-05-03 20:23:53 +02:00
|
|
|
label-focused = %icon% %name%
|
2023-12-18 21:58:40 +01:00
|
|
|
label-focused-foreground = ${colors.text}
|
|
|
|
label-focused-underline = ${colors.mauve}
|
2018-05-03 20:23:53 +02:00
|
|
|
label-focused-font = 0
|
|
|
|
label-focused-padding = 4
|
|
|
|
|
|
|
|
label-unfocused = %icon% %name%
|
2023-12-19 21:32:31 +01:00
|
|
|
label-unfocused-underline = ${colors.surface0}
|
2018-05-03 20:23:53 +02:00
|
|
|
label-unfocused-font = 0
|
|
|
|
label-unfocused-padding = 4
|
|
|
|
|
|
|
|
label-urgent = %icon% %name%
|
2023-12-18 21:58:40 +01:00
|
|
|
label-urgent-foreground = ${colors.base}
|
|
|
|
label-urgent-background = ${colors.red}
|
|
|
|
label-urgent-underline = ${colors.mauve}
|
2018-05-03 20:23:53 +02:00
|
|
|
label-urgent-font = 0
|
|
|
|
label-urgent-padding = 4
|
|
|
|
|
|
|
|
label-visible = %icon% %name%
|
2023-12-18 21:58:40 +01:00
|
|
|
label-visible-foreground = ${colors.text}
|
2023-12-18 21:58:40 +01:00
|
|
|
label-visible-underline = ${colors.surface0}
|
2018-05-03 20:23:53 +02:00
|
|
|
label-visible-font = 0
|
|
|
|
label-visible-padding = 4
|
|
|
|
|
|
|
|
[module/cpu]
|
|
|
|
type = internal/cpu
|
|
|
|
interval = 0.5
|
|
|
|
|
|
|
|
format = <label> <ramp-coreload>
|
|
|
|
|
2023-12-18 21:58:40 +01:00
|
|
|
label = ${env:BAR_CPU}
|
2018-05-03 20:23:53 +02:00
|
|
|
|
|
|
|
ramp-coreload-0 = ▁
|
|
|
|
ramp-coreload-0-font = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
ramp-coreload-0-foreground = ${colors.sapphire}
|
2018-05-03 20:23:53 +02:00
|
|
|
ramp-coreload-1 = ▂
|
|
|
|
ramp-coreload-1-font = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
ramp-coreload-1-foreground = ${colors.sapphire}
|
2018-05-03 20:23:53 +02:00
|
|
|
ramp-coreload-2 = ▃
|
|
|
|
ramp-coreload-2-font = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
ramp-coreload-2-foreground = ${colors.sapphire}
|
2018-05-03 20:23:53 +02:00
|
|
|
ramp-coreload-3 = ▄
|
|
|
|
ramp-coreload-3-font = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
ramp-coreload-3-foreground = ${colors.sapphire}
|
2018-05-03 20:23:53 +02:00
|
|
|
ramp-coreload-4 = ▅
|
|
|
|
ramp-coreload-4-font = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
ramp-coreload-4-foreground = ${colors.peach}
|
2018-05-03 20:23:53 +02:00
|
|
|
ramp-coreload-5 = ▆
|
|
|
|
ramp-coreload-5-font = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
ramp-coreload-5-foreground = ${colors.peach}
|
2018-05-03 20:23:53 +02:00
|
|
|
ramp-coreload-6 = ▇
|
|
|
|
ramp-coreload-6-font = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
ramp-coreload-6-foreground = ${colors.maroon}
|
2018-05-03 20:23:53 +02:00
|
|
|
ramp-coreload-7 = █
|
|
|
|
ramp-coreload-7-font = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
ramp-coreload-7-foreground = ${colors.red}
|
2018-05-03 20:23:53 +02:00
|
|
|
|
|
|
|
[module/date]
|
|
|
|
type = internal/date
|
|
|
|
interval = 1.0
|
|
|
|
date = " %A %d %B %Y"
|
|
|
|
time = %H:%M:%S
|
2023-12-18 21:58:40 +01:00
|
|
|
label = ${env:BAR_DATE}
|
2018-05-03 20:23:53 +02:00
|
|
|
|
|
|
|
[module/temperature]
|
|
|
|
type = internal/temperature
|
|
|
|
thermal-zone = 0
|
|
|
|
warn-temperature = 60
|
|
|
|
interval = 0.5
|
|
|
|
|
2023-12-18 21:58:40 +01:00
|
|
|
format = <label>
|
|
|
|
format-warn = <label-warn>
|
2018-05-03 20:23:53 +02:00
|
|
|
|
2023-12-18 21:58:40 +01:00
|
|
|
label = ${env:BAR_TEMP_OK}
|
|
|
|
label-warn = ${env:BAR_TEMP_WARN}
|
|
|
|
label-warn-foreground = ${colors.text}
|
2018-05-03 20:23:53 +02:00
|
|
|
|
|
|
|
[module/powermenu]
|
|
|
|
type = custom/menu
|
|
|
|
format-padding = 3
|
2023-12-18 21:58:40 +01:00
|
|
|
label-open = ${env:BAR_MENU_OPEN}
|
|
|
|
label-close = ${env:BAR_MENU_CLOSE}
|
2018-05-03 20:23:53 +02:00
|
|
|
label-separator = " · "
|
|
|
|
|
2023-02-18 22:29:26 +01:00
|
|
|
menu-0-0 = Exit i3
|
2023-12-18 21:58:40 +01:00
|
|
|
menu-0-0-foreground = ${colors.text}
|
2023-02-18 22:29:26 +01:00
|
|
|
menu-0-0-exec = i3-msg exit
|
2018-05-03 20:23:53 +02:00
|
|
|
menu-0-1 = Reboot
|
2023-12-18 21:58:40 +01:00
|
|
|
menu-0-1-foreground = ${colors.text}
|
2018-05-03 20:23:53 +02:00
|
|
|
menu-0-1-exec = menu-open-1
|
|
|
|
menu-0-2 = Power off
|
2023-12-18 21:58:40 +01:00
|
|
|
menu-0-2-foreground = ${colors.text}
|
2018-05-03 20:23:53 +02:00
|
|
|
menu-0-2-exec = menu-open-2
|
|
|
|
|
|
|
|
menu-1-0 = Cancel
|
2023-12-18 21:58:40 +01:00
|
|
|
menu-1-0-foreground = ${colors.mauve}
|
2018-05-03 20:23:53 +02:00
|
|
|
menu-1-0-exec = menu-open-0
|
|
|
|
menu-1-1 = Reboot
|
2023-12-18 21:58:40 +01:00
|
|
|
menu-1-1-foreground = ${colors.mauve}
|
2018-05-03 20:23:53 +02:00
|
|
|
menu-1-1-exec = systemctl reboot -i
|
|
|
|
|
|
|
|
menu-2-0 = Cancel
|
2023-12-18 21:58:40 +01:00
|
|
|
menu-2-0-foreground = ${colors.mauve}
|
2018-05-03 20:23:53 +02:00
|
|
|
menu-2-0-exec = menu-open-0
|
|
|
|
menu-2-1 = Power off
|
2023-12-18 21:58:40 +01:00
|
|
|
menu-2-1-foreground = ${colors.mauve}
|
2018-05-03 20:23:53 +02:00
|
|
|
menu-2-1-exec = systemctl poweroff
|
|
|
|
|
|
|
|
[module/system-usb-udev]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/system-usb-udev.sh
|
|
|
|
tail = true
|
|
|
|
click-left = ~/.config/polybar/scripts/system-usb-udev.sh --mount
|
|
|
|
click-right = ~/.config/polybar/scripts/system-usb-udev.sh --unmount
|
|
|
|
|
|
|
|
[module/updates-arch-combined]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/updates-arch-combined.sh
|
|
|
|
interval = 600
|
|
|
|
|
|
|
|
[module/filesystem-custom]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/filesystem.sh
|
|
|
|
interval = 60
|
|
|
|
|
|
|
|
[module/system-uptime-pretty]
|
|
|
|
type = custom/script
|
|
|
|
exec = ~/.config/polybar/scripts/system-uptime-pretty.sh
|
2018-06-15 21:11:14 +02:00
|
|
|
interval = 30
|
2023-02-18 22:29:26 +01:00
|
|
|
|
|
|
|
[module/backlight]
|
|
|
|
type = internal/backlight
|
|
|
|
card = intel_backlight
|
2023-12-18 21:58:40 +01:00
|
|
|
label = ${env:BAR_BACKLIGHT}
|
2023-02-18 22:29:26 +01:00
|
|
|
bar-width = 10
|
|
|
|
bar-indicator = |
|
|
|
|
bar-fill = ─
|
|
|
|
bar-empty = ─
|
2023-10-29 00:26:31 +02:00
|
|
|
enable-scroll = true
|
2023-02-18 22:29:26 +01:00
|
|
|
|
|
|
|
[module/pulseaudio]
|
|
|
|
type = internal/pulseaudio
|
|
|
|
interval = 5
|
|
|
|
|
|
|
|
format-volume = <ramp-volume> <label-volume>
|
|
|
|
label-muted = 🔇 muted
|
2023-12-18 21:58:40 +01:00
|
|
|
label-muted-foreground = ${colors.rosewater}
|
2023-02-18 22:29:26 +01:00
|
|
|
|
|
|
|
ramp-volume-0 = 🔈
|
|
|
|
ramp-volume-1 = 🔉
|
|
|
|
ramp-volume-2 = 🔊
|
|
|
|
|
|
|
|
ramp-headphones-0 =
|
|
|
|
ramp-headphones-1 =
|
|
|
|
|
|
|
|
[module/battery]
|
|
|
|
type = internal/battery
|
|
|
|
full-at = 100
|
|
|
|
battery = BAT0
|
|
|
|
adapter = AC0
|
|
|
|
poll-interval = 5
|
|
|
|
format-charging = <label-charging>
|
|
|
|
format-discharging = <label-discharging>
|
|
|
|
format-full = <label-full>
|
2023-12-18 21:58:40 +01:00
|
|
|
label-charging = ${env:BAR_BATTERY_CHARGING}
|
|
|
|
label-discharging = ${env:BAR_BATTERY_DISCHARGING}
|
|
|
|
label-full = ${env:BAR_BATTERY_FULL}
|
2023-02-18 22:29:26 +01:00
|
|
|
|
|
|
|
[module/alsa]
|
|
|
|
type = internal/alsa
|
|
|
|
|
|
|
|
master-soundcard = hw:PCH
|
|
|
|
speaker-soundcard = hw:PCH
|
|
|
|
headphone-soundcard = hw:PCH
|
|
|
|
|
|
|
|
master-mixer = Master
|
|
|
|
|
|
|
|
format-volume = <ramp-volume> <label-volume>
|
|
|
|
label-muted = 🔇 muted
|
2023-12-18 21:58:40 +01:00
|
|
|
label-muted-foreground = ${colors.rosewater}
|
2023-02-18 22:29:26 +01:00
|
|
|
|
2023-12-18 21:58:40 +01:00
|
|
|
ramp-volume-0 = ${env:BAR_LOW_VOL}
|
|
|
|
ramp-volume-1 = ${env:BAR_MED_VOL}
|
|
|
|
ramp-volume-2 = ${env:BAR_HIGH_VOL}
|
2023-02-18 22:29:26 +01:00
|
|
|
|
2023-12-18 21:58:40 +01:00
|
|
|
ramp-headphones-0 = ${env:BAR_HEAD_VOL}
|
|
|
|
ramp-headphones-1 = ${env:BAR_HEAD_VOL}
|
2023-02-18 22:29:26 +01:00
|
|
|
|
2023-10-28 23:12:12 +02:00
|
|
|
interval = 3
|