dotfiles/.config/polybar/config_common

321 lines
7.4 KiB
Plaintext
Raw Normal View History

2018-05-03 20:23:53 +02:00
[colors]
; First two letter of background are for transparency
background = #cc2f343f
2018-05-03 20:23:53 +02:00
foreground = #eee
foreground-alt = #555
secondary = #e60053
alert = #bd2c40
accent = #fba922
2018-06-15 21:11:14 +02:00
[global/wm]
margin-top=50
; Common to top and bottom bars
[bar/common]
width = 100%
dpi = ${variables.dpi}
enable-ipc = true
height = ${variables.height}
foreground = ${colors.foreground}
background = ${colors.background}
line-size = 3
line-color = #f00
locale = fr_FR.UTF-8
monitor = ${env:MONITOR:HDMI-0}
[bar/chostytopbar]
inherit = bar/common
2021-11-24 14:39:05 +01:00
font-0 = NotoSans-Regular:size=10;2
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
overline-color = ${self.background}
underline-color = ${self.background}
border-bottom-size = 1
border-bottom-color = #333
padding-left = 2
padding-right = 10
module-margin-left = 4
module-margin-right = 4
modules-left = ${variables.top_left}
modules-center = ${variables.top_center}
modules-right = ${variables.top_right}
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
overline-color = ${colors.accent}
underline-size = 3
underline-color = ${colors.accent}
spacing = 3
padding-left = 0
padding-right = 5
module-margin-left = 6
module-margin-right = 6
2021-11-24 14:39:05 +01:00
font-0 = Roboto:size=10;2
2018-05-03 20:23:53 +02:00
font-1 = Symbola:size=4;1
font-2 = Symbola:size=5;1
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
modules-left = ${variables.bottom_left}
modules-center = ${variables.bottom_center}
modules-right = ${variables.bottom_right}
[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
label = %{F#ddd}%title%
label-maxlen=100
[module/wireless-network]
type = internal/network
interface-type = wireless
2018-05-03 20:23:53 +02:00
interval = 1
label-connected = %{F#ddd}%essid%  %local_ip% %{F#77dd77}%{F-} %downspeed% %{F#dd7777}%{F-} %upspeed%
label-disconnected = Wireless disconnected
label-disconnected-foreground = #66
2023-11-13 17:03:13 +01:00
; Poorly documented and hackish way to have more space between some modules
label-connected-margin = 10
label-disconnected-margin = 10
[module/wired-network]
type = internal/network
interface =
interface-type = wired
interval = 1
label-connected = %{F#ddd}%ifname%  %local_ip% %{F#77dd77}%{F-} %downspeed% %{F#dd7777}%{F-} %upspeed%
2018-05-03 20:23:53 +02:00
label-disconnected = Ethernet disconnected
label-disconnected-foreground = #66
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
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
label-dimmed-underline = ${root.background}
label-separator = |
2018-05-03 20:23:53 +02:00
label-focused = %icon% %name%
label-focused-foreground = #f3f3f3
;label-focused-underline = #${colors.accent}
label-focused-underline = #9f78e1
label-focused-font = 0
label-focused-padding = 4
label-unfocused = %icon% %name%
label-unfocused-underline = #555555
label-unfocused-font = 0
label-unfocused-padding = 4
label-urgent = %icon% %name%
label-urgent-foreground = #000000
label-urgent-background = #bd2c40
label-urgent-underline = #9b0a20
label-urgent-font = 0
label-urgent-padding = 4
label-visible = %icon% %name%
label-visible-foreground = #55ffffff
label-visible-font = 0
label-visible-padding = 4
[module/cpu]
type = internal/cpu
interval = 0.5
format = <label> <ramp-coreload>
2019-01-10 10:10:44 +01:00
label = %{F#fba922} 
2018-05-03 20:23:53 +02:00
ramp-coreload-0 = ▁
ramp-coreload-0-font = 3
ramp-coreload-0-foreground = #aaff77
ramp-coreload-1 = ▂
ramp-coreload-1-font = 3
ramp-coreload-1-foreground = #aaff77
ramp-coreload-2 = ▃
ramp-coreload-2-font = 3
ramp-coreload-2-foreground = #aaff77
ramp-coreload-3 = ▄
ramp-coreload-3-font = 3
ramp-coreload-3-foreground = #aaff77
ramp-coreload-4 = ▅
ramp-coreload-4-font = 3
ramp-coreload-4-foreground = #fba922
ramp-coreload-5 = ▆
ramp-coreload-5-font = 3
ramp-coreload-5-foreground = #fba922
ramp-coreload-6 = ▇
ramp-coreload-6-font = 3
ramp-coreload-6-foreground = #ff5555
ramp-coreload-7 = █
ramp-coreload-7-font = 3
ramp-coreload-7-foreground = #ff5555
[module/date]
type = internal/date
interval = 1.0
date = " %A %d %B %Y"
time = %H:%M:%S
label = %{F#ddd} %date%  %time%
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
interval = 0.5
format = <ramp> <label>
format-warn = <ramp> <label-warn>
2019-01-10 10:10:44 +01:00
label = %{F#77dd77} %{F-} %temperature-c%
label-warn = %{F#dd7777} %{F-} %temperature-c%
2018-05-03 20:23:53 +02:00
label-warn-foreground = #dd7777
2019-11-14 16:09:40 +01:00
ramp-0 =
ramp-1 =
ramp-2 =
2018-05-03 20:23:53 +02:00
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
format-padding = 3
label-open = %{F#dd7777}%{F#ddd}
label-close = %{F#dd7777}%{F#ddd}
label-separator = " · "
menu-0-0 = Exit i3
2018-05-03 20:23:53 +02:00
menu-0-0-foreground = ${colors.accent}
menu-0-0-exec = i3-msg exit
2018-05-03 20:23:53 +02:00
menu-0-1 = Reboot
menu-0-1-foreground = ${colors.accent}
menu-0-1-exec = menu-open-1
menu-0-2 = Power off
menu-0-2-foreground = ${colors.accent}
menu-0-2-exec = menu-open-2
menu-1-0 = Cancel
menu-1-0-foreground = ${colors.accent}
menu-1-0-exec = menu-open-0
menu-1-1 = Reboot
menu-1-1-foreground = ${colors.accent}
menu-1-1-exec = systemctl reboot -i
menu-2-0 = Cancel
menu-2-0-foreground = ${colors.accent}
menu-2-0-exec = menu-open-0
menu-2-1 = Power off
menu-2-1-foreground = ${colors.accent}
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
[module/backlight]
type = internal/backlight
card = intel_backlight
label = %{F#77dd77}☀️%{F#ddd} %percentage%%
bar-width = 10
bar-indicator = |
bar-fill = ─
bar-empty = ─
enable-scroll = true
[module/pulseaudio]
type = internal/pulseaudio
interval = 5
format-volume = <ramp-volume> <label-volume>
label-muted = 🔇 muted
label-muted-foreground = #666
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>
label-charging =  %percentage%%
label-discharging =  %percentage%%
label-full = %{F#77dd77}
[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
label-muted-foreground = #66
ramp-volume-0 = 🔈
ramp-volume-1 = 🔉
ramp-volume-2 = 🔊
ramp-headphones-0 = 
ramp-headphones-1 = 
interval = 3