polybar: add conditions for buzz
This commit is contained in:
parent
4a05eb7682
commit
8413b03484
@ -23,7 +23,11 @@ margin-bottom = 0
|
||||
[bar/top]
|
||||
enable-ipc = true
|
||||
bottom = false
|
||||
monitor = ${env:MONITOR:DP-2}
|
||||
{{- if eq .chezmoi.hostname "arch" }}
|
||||
monitor = DP-2
|
||||
{{- else if eq .chezmoi.hostname "buzz" }}
|
||||
monitor = eDP1
|
||||
{{- end }}
|
||||
width = 100%
|
||||
height = 16
|
||||
offset-x = 0
|
||||
@ -54,9 +58,16 @@ font-3 = "Font Awesome 6 Free:style=Solid:pixelsize=8;2"
|
||||
font-4 = "Font Awesome 6 Brands:pixelsize=8;2"
|
||||
font-5 = "Symbols Nerd Font:pixelsize=12;2"
|
||||
|
||||
{{- if eq .chezmoi.hostname "arch" }}
|
||||
modules-left = i3 clicker xwindow
|
||||
modules-center = date
|
||||
modules-right = pueue filesystem temp cpu memory eth-down eth-up ipv6 caffeine cam tray
|
||||
{{- else if eq .chezmoi.hostname "buzz" }}
|
||||
modules-left = i3 xwindow
|
||||
modules-center = date
|
||||
modules-right = filesystem temp cpu memory tray
|
||||
{{- end }}
|
||||
|
||||
|
||||
; tray-position = right
|
||||
; tray-padding = 4
|
||||
@ -90,6 +101,7 @@ type = custom/script
|
||||
interval = 5
|
||||
exec = /home/inkch/.config/polybar/scripts/vm-stat.py
|
||||
|
||||
{{ if eq .chezmoi.hostname "arch" }}
|
||||
[module/clicker]
|
||||
type = custom/script
|
||||
format = <label>
|
||||
@ -98,9 +110,8 @@ interval = 1
|
||||
format-background = ${colors.alert}
|
||||
label-padding-left = 2
|
||||
label-padding-right = 2
|
||||
|
||||
|
||||
exec = /home/inkch/.config/polybar/scripts/clicker-stat.sh
|
||||
{{ end }}
|
||||
|
||||
[module/caffeine]
|
||||
type = custom/script
|
||||
@ -144,9 +155,13 @@ format-warn-underline = ${colors.alert}
|
||||
type = internal/fs
|
||||
interval = 30
|
||||
|
||||
{{ if eq .chezmoi.hostname "arch" }}
|
||||
mount-0 = /
|
||||
mount-1 = /mnt/hdd
|
||||
mount-2 = /mnt/hdd2
|
||||
{{ else if eq .chezmoi.hostname "buzz" }}
|
||||
mount-0 = /
|
||||
{{ end }}
|
||||
|
||||
label-mounted = %free:2%
|
||||
label-mounted-foreground = ${colors.foreground-alt}
|
||||
@ -197,7 +212,11 @@ label = %percentage_used:2%%
|
||||
|
||||
[module/eth-up]
|
||||
type = internal/network
|
||||
{{ if eq .chezmoi.hostname "arch" }}
|
||||
interface = enp34s0
|
||||
{{ else if eq .chezmoi.hostname "buzz" }}
|
||||
interface = enp3s0
|
||||
{{ end }}
|
||||
interval = 1.0
|
||||
|
||||
format-connected = <label-connected>
|
||||
@ -210,7 +229,11 @@ label-disconnected-foreground = ${colors.foreground-alt}
|
||||
|
||||
[module/eth-down]
|
||||
type = internal/network
|
||||
{{ if eq .chezmoi.hostname "arch" }}
|
||||
interface = enp34s0
|
||||
{{ else if eq .chezmoi.hostname "buzz" }}
|
||||
interface = enp3s0
|
||||
{{ end }}
|
||||
interval = 1.0
|
||||
|
||||
format-connected = <label-connected>
|
||||
|
Loading…
Reference in New Issue
Block a user