mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
140 lines
3.0 KiB
Cheetah
140 lines
3.0 KiB
Cheetah
{{- $i3:= include ".gen/i3.json" | mustFromJson -}}
|
|
|
|
[bar/fullbar]
|
|
monitor = {{ $i3.disp_sec }}
|
|
include-file = ~/.config/polybar/common
|
|
|
|
background = #bb282a36
|
|
foreground = #f8f8f2
|
|
wm-restack = i3
|
|
|
|
modules-left = i3 spacing spacing xwindow
|
|
modules-center = date
|
|
modules-right = memory separator cpu separator spacing pulseaudio separator wlan separator bandwidth separator
|
|
|
|
[module/xwindow]
|
|
type = internal/xwindow
|
|
label = %title:0:60:...%
|
|
|
|
[module/memory]
|
|
type = internal/memory
|
|
internal = 1
|
|
format-prefix = MEM:
|
|
format-prefix-foreground = "#8be9fd"
|
|
format = <label>
|
|
label-foreground = "#8be9fd"
|
|
label = %mb_used%
|
|
format-prefix-padding = 1
|
|
|
|
[module/cpu]
|
|
type = internal/cpu
|
|
internal = 0.5
|
|
format-prefix = CPU:
|
|
format-prefix-foreground = "#ff79c6"
|
|
format = <label>%
|
|
label = %percentage%
|
|
format-foreground = "#ff79c6"
|
|
format-prefix-padding = 1
|
|
|
|
[module/filesystem]
|
|
type = internal/fs
|
|
mount-0 = /home
|
|
interval = 10
|
|
fixed-values = true
|
|
format-mounted-prefix =
|
|
format-mounted-prefix-foreground = "#ff79c6"
|
|
format-mounted = <label-mounted>
|
|
format-unmounted-prefix =
|
|
format-unmounted-prefix-foreground = "#ff79c6"
|
|
format-unmounted = <label-unmounted>
|
|
label-mounted = %free%
|
|
label-unmounted = %mountpoint%: not mounted
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
interval = 60
|
|
date = %a %d %b
|
|
time = %l:%M %p
|
|
label = %date% %time%
|
|
format-padding = 2
|
|
format-background = "#44475a"
|
|
label-font = 2
|
|
|
|
[module/wlan]
|
|
type = internal/network
|
|
interface = enp3s0
|
|
interval = 5
|
|
label-connected = 直 %local_ip%
|
|
label-connected-foreground = "#50fa7b"
|
|
label-disconnected = 睊 NOT CONNECTED
|
|
label-disconnected-foreground = "#ff5555"
|
|
content-padding = 2
|
|
|
|
[module/bandwidth]
|
|
type = internal/network
|
|
interface = enp3s0
|
|
interval = 5
|
|
label-connected = %downspeed% %upspeed%
|
|
label-disconnected =
|
|
content-padding = 2
|
|
|
|
[module/volume]
|
|
type = internal/alsa
|
|
format-volume = <label-volume>
|
|
format-muted = Muted
|
|
|
|
[module/pulseaudio]
|
|
type = internal/pulseaudio
|
|
sink = alsa_output.pci-0000_00_1b.0.analog-stereo
|
|
use-ui-max = true
|
|
interval = 5
|
|
format-volume = 墳<label-volume>
|
|
format-muted = 墳Muted
|
|
|
|
[module/title]
|
|
type = internal/xwindow
|
|
format = <label>
|
|
label = %title:0:20:...%
|
|
#label-maxlen = 20
|
|
format-font = 3
|
|
label-foreground = "#50fa7b"
|
|
|
|
[module/separator]
|
|
type = custom/text
|
|
content = " |"
|
|
content-padding = 0
|
|
content-foreground = "#f8f8f2"
|
|
|
|
[module/spacing]
|
|
type = custom/text
|
|
content = " "
|
|
content-padding = 0
|
|
content-foreground= "#282a36"
|
|
|
|
[module/i3]
|
|
type = internal/i3
|
|
pin-workspace = false
|
|
index-sort = true
|
|
enable-click = true
|
|
enable-scroll = true
|
|
wrapping-scroll = false
|
|
reverse-scroll = false
|
|
format = <label-state> <label-mode>
|
|
label-focused = %name%
|
|
label-focused-padding = 2
|
|
label-focused-background = "#bd93f9"
|
|
label-focused-foreground = "#282a36"
|
|
|
|
label-unfocused = %name%
|
|
label-unfocused-padding = 2
|
|
label-unfocused-background = "#44475a"
|
|
label-visible = %name%
|
|
label-visible-padding = 2
|
|
label-visible-background = "#44475a"
|
|
label-mode = %mode%
|
|
label-mode-background = "#ff5555"
|
|
label-mode-foreground = "#282a36"
|
|
label-mode-padding = 1
|
|
label-urgent = %name%
|
|
label-urgent-padding = 2
|