This commit is contained in:
m
2025-08-22 18:16:06 -04:00
parent 50e30f9ba4
commit 5965f8c83f
18 changed files with 1261 additions and 207 deletions

View File

@@ -1,206 +0,0 @@
[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

105
pipktop/waybar/config.jsonc Normal file
View File

@@ -0,0 +1,105 @@
{
"layer": "top",
"height": 32,
"spacing": 20,
"output": "eDP-1",
"modules-left": [
"disk"
],
"modules-right": [
"cpu",
"memory#ram",
"memory#swap",
"custom/seperator",
"backlight",
"pulseaudio",
"battery",
"custom/seperator",
"clock",
"tray",
"custom/user"
],
"disk": {
"interval": 30,
"format": "{free} of {total} free",
"path": "/",
"tooltip": false
},
"custom/user": {
"exec": "/usr/bin/whoami",
"interval": "once",
"tooltip": false,
},
"clock": {
"interval": 1,
"format": "{:%H:%M:%S %d %b %Y}",
"tooltip": false
},
"custom/seperator": {
"format": "|",
"tooltip": false
},
"battery": {
"interval": 30,
"format-not-full": "BAT <span color=\"#ffffff\">{capacity}%</span> <span color=\"#b0b0b0\">({time})</span>",
"format-full": "<span color=\"#F0C674\">BAT</span> <span color=\"#ffffff\">{capacity}%</span> <span color=\"#b0b0b0\">(FULL)</span>",
"states": {
"full": 100,
"not-full": 99
},
"format-time": "{H}:{m}",
"tooltip": false
},
"pulseaudio": {
"format": "<span color=\"#F0C674\">VOL</span> {volume}%",
"format-muted": "<span color=\"#80a088\">muted</span>",
"on-click": "amixer set Master toggle",
"tooltip": false
},
"backlight": {
"format": "<span color=\"#F0C674\">BRI</span> {percent}%",
"tooltip": false
},
"memory#swap": {
"format": "<span color=\"#F0C674\">SWP</span> {swapPercentage}%",
"format-warning": "<span color=\"#FC5E03\">SWP</span> {usage}%",
"interval": 2,
"states": {
"warning": 90
},
"tooltip": false
},
"memory#ram": {
"format": "<span color=\"#F0C674\">RAM</span> {percentage}%",
"format-warning": "<span color=\"#FC5E03\">RAM</span> {usage}%",
"interval": 2,
"states": {
"warning": 90
},
"tooltip": false
},
"cpu": {
"format": "<span color=\"#F0C674\">CPU</span> {usage}%",
"format-warning": "<span color=\"#FC5E03\">CPU</span> {usage}%",
"interval": 2,
"states": {
"warning": 80
},
"tooltip": false
}
}