207 lines
4.5 KiB
INI
207 lines
4.5 KiB
INI
[colors]
|
|
primary = #F0C674
|
|
alert = #FC5E03
|
|
discharging = #ED6767
|
|
charging = #47ED47
|
|
green = #8AE235
|
|
disabled = #80a088
|
|
|
|
[bar/mybar]
|
|
modules-right = power2 cpu ram swap seperator backlight pulseaudio battery seperator date tray user-menu
|
|
modules-left = i3 filesystem
|
|
#tray-position = right
|
|
#tray-detached = false
|
|
font-0 = "Worm Writing Mono:size=14"
|
|
#font-0 = "Comic Sans MS:size=12"
|
|
|
|
padding-left = 1
|
|
padding-right = 1
|
|
|
|
module-margin = 1
|
|
|
|
enable-ipc = true
|
|
|
|
height=32
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
date = %b %d, %Y
|
|
time = %H:%M:%S
|
|
label-active-font=0
|
|
label = %time% %date%
|
|
|
|
[module/pulseaudio]
|
|
type = internal/pulseaudio
|
|
use-ui-usermax = true
|
|
interval = 5
|
|
|
|
format-volume-prefix = "VOL "
|
|
format-volume-prefix-foreground = ${colors.primary}
|
|
format-volume = <label-volume>
|
|
|
|
label-volume = %percentage%%
|
|
|
|
label-muted = muted
|
|
label-muted-foreground = ${colors.disabled}
|
|
|
|
[module/tray]
|
|
type = internal/tray
|
|
|
|
[module/backlight]
|
|
type = internal/backlight
|
|
backlight-scroll = true
|
|
|
|
format-prefix = "BRI "
|
|
format-prefix-foreground = ${colors.primary}
|
|
format = <label>
|
|
|
|
label = %percentage%%
|
|
|
|
[module/i3]
|
|
type = internal/i3
|
|
format-foreground = ${colors.alert}
|
|
format = <label-mode>
|
|
|
|
[module/battery]
|
|
type = internal/battery
|
|
low-at = 5
|
|
battery = BAT1
|
|
adapter = AC
|
|
time-format = %H:%M
|
|
|
|
poll-interval = 2
|
|
|
|
format-charging = <label-charging>
|
|
format-charging-prefix = "BAT "
|
|
format-charging-prefix-foreground = ${colors.charging}
|
|
|
|
format-discharging = <label-discharging>
|
|
format-discharging-prefix = "BAT "
|
|
format-discharging-prefix-foreground = ${colors.discharging}
|
|
|
|
format-full = <label-full>
|
|
format-full-prefix = "BAT "
|
|
format-full-prefix-foreground = ${colors.primary}
|
|
|
|
label-charging = %percentage%% %{F#B0B0B0}(%time%)%{F-}
|
|
label-discharging = %percentage%% %{F#B0B0B0}(%time%)%{F-}
|
|
label-full = %percentage%% %{F#B0B0B0}(FULL)%{F-}
|
|
|
|
[module/filesystem]
|
|
type = internal/fs
|
|
|
|
mount-0 = /
|
|
|
|
label-mounted = %free% of %total% free
|
|
|
|
[module/whoami]
|
|
type = custom/text
|
|
content = ${env:USER}
|
|
content-foreground = ${colors.green}
|
|
|
|
[module/seperator]
|
|
type = custom/text
|
|
content = "|"
|
|
content-foreground = ${colors.green}
|
|
|
|
[section/memory]
|
|
type = internal/memory
|
|
format = <label>
|
|
format-prefix-foreground = ${colors.primary}
|
|
format-warn = <label-warn>
|
|
format-warn-prefix-foreground = ${colors.alert}
|
|
|
|
[module/ram]
|
|
inherit = section/memory
|
|
format-prefix = "RAM "
|
|
format-warn-prefix = "RAM "
|
|
label = %percentage_used%%
|
|
label-warn = %percentage_used%%
|
|
|
|
[module/swap]
|
|
inherit = section/memory
|
|
format-prefix = "SWP "
|
|
format-warn-prefix = "SWP "
|
|
label = %percentage_swap_used%%
|
|
label-warn = %percentage_swap_used%%
|
|
|
|
[module/temperature]
|
|
type = internal/temperature
|
|
thermal-zone = 0
|
|
warn-temperature=90
|
|
|
|
format = <label>
|
|
format-prefix = "CPU "
|
|
format-prefix-foreground = ${colors.primary}
|
|
format-warn = <label-warn>
|
|
format-warn-prefix = "CPU "
|
|
format-warn-prefix-foreground = ${colors.alert}
|
|
|
|
label = %temperature-c%
|
|
label-warn = %temperature-c%
|
|
label-warn-foreground = #ff0000
|
|
|
|
[module/cpu]
|
|
|
|
format = <label>
|
|
format-prefix = "CPU "
|
|
format-prefix-foreground = ${colors.primary}
|
|
format-warn = <label-warn>
|
|
format-warn-prefix = "CPU "
|
|
format-warn-prefix-foreground = ${colors.alert}
|
|
|
|
type = internal/cpu
|
|
warn-percentage=95
|
|
label = %percentage%%
|
|
label-warn = %percentage%%
|
|
label-warn-foreground = #ff0000
|
|
interval = 1
|
|
|
|
[module/gpu]
|
|
type = custom/script
|
|
#exec = cat /sys/class/drm/card1/device/power_state
|
|
exec = cat /sys/bus/pci/devices/0000:01:00.*/power/runtime_status
|
|
#exec = { nvidia-smi -q -d temperature | grep "GPU Current Temp" | cut -d ":" -f2 ; nvidia-smi -q -d utilization | grep Gpu | cut -d ":" -f2 ; } | tr "\n" " " | xargs
|
|
interval = 5
|
|
|
|
format = <label>
|
|
format-prefix = "GPU "
|
|
format-prefix-foreground = ${colors.primary}
|
|
|
|
[module/power]
|
|
type = custom/script
|
|
exec = /home/zacha/programs/get_power.sh
|
|
|
|
interval = 2
|
|
|
|
format = <label>
|
|
format-prefix = "PWR "
|
|
format-prefix-foreground = ${colors.primary}
|
|
|
|
[module/weather]
|
|
type = custom/script
|
|
exec = curl -s 'wttr.in/CMH?format=%l:+%C+%t'
|
|
interval = 60
|
|
|
|
[module/fronter]
|
|
type = custom/script
|
|
exec = curl -s --header 'Authorization: n4Kvl4V3zu3/z/1lBP+lqdMfWmgj6J+thN8MiiaEGwlMWXyBfLRQo6WpsEDpIwy0' 'https://api.apparyllis.com/v1/friend/51f26a0f64bdeab213c588b2c5e7107b3fe974e57e69eb70ffd070d51b351442/getFrontValue' | cut -d '"' -f4
|
|
interval = 60
|
|
|
|
format = <label>
|
|
format-prefix = "FRT "
|
|
format-prefix-foreground = ${colors.primary}
|
|
|
|
[module/user-menu]
|
|
type = custom/menu
|
|
|
|
label-open = zacha
|
|
label-open-foreground = ${colors.green}
|
|
label-close = X
|
|
label-close-foreground = ${colors.alert}
|
|
label-seperator = |
|
|
format-spacing = 1
|
|
|
|
menu-0-0 = logoff
|
|
menu-0-0-exec = kill -9 -1
|