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