146 lines
4.4 KiB
JSON
146 lines
4.4 KiB
JSON
// __ __ ___.
|
|
// / \ / \_____ ___.__.\_ |__ _____ _______
|
|
// \ \/\/ /\__ \< | | | __ \\__ \\_ __ \
|
|
// \ / / __ \\___ | | \_\ \/ __ \| | \/
|
|
// \__/\ / (____ / ____| |___ (____ /__|
|
|
// \/ \/\/ \/ \/
|
|
//
|
|
// https://github.com/Alexays/Waybar/wiki
|
|
// Configuration by Coby Powers
|
|
|
|
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"height": 50,
|
|
"modules-left": ["custom/app-drawer", "hyprland/workspaces", "cpu", "disk", "memory", "custom/weather"],
|
|
"modules-center": ["clock", "custom/updates"],
|
|
"modules-right": ["temperature", "custom/power_profile", "battery", "pulseaudio", "pulseaudio#microphone", "tray"],
|
|
|
|
"custom/app-drawer": {
|
|
"format": "",
|
|
"on-click": "sleep 0.1 && wofi",
|
|
"tooltip": false
|
|
},
|
|
|
|
"hyprland/workspaces": {
|
|
"persistent-workspaces": {
|
|
"1": [],
|
|
"2": [],
|
|
"3": []
|
|
}
|
|
},
|
|
|
|
"cpu": {
|
|
"format": " {usage}%",
|
|
//"format": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}{icon8}{icon9}{icon10}{icon11}{icon12}{icon13}{icon14}{icon15}",
|
|
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
|
|
//"tooltip-format": "CPU Usage\n{usage}% | {load}\n{avg_frequency} GHz\n\n{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}\n{icon8}{icon9}{icon10}{icon11}{icon12}{icon13}{icon14}{icon15}",
|
|
"tooltip-format": "bruh",
|
|
"on-click": "alacritty -o 'window.startup_mode=\"Fullscreen\"' -e btop"
|
|
},
|
|
|
|
"disk": {
|
|
"format": " {percentage_used}%",
|
|
"tooltip-format": "Disk Usage\n\nFree: {percentage_free}%\nUsed: {percentage_used}%\nTotal: {total}",
|
|
"on-click": "alacritty -o 'window.startup_mode=\"Fullscreen\"' -e btop"
|
|
},
|
|
|
|
"memory": {
|
|
"format": " {percentage}%",
|
|
"tooltip-format": "Memory Usage\n\nFree: {avail} GiB\nUsed: {used} GiB\nTotal: {total} GiB",
|
|
"on-click": "alacritty -o 'window.startup_mode=\"Fullscreen\"' -e btop"
|
|
},
|
|
|
|
"custom/weather":{
|
|
"exec": "~/.config/waybar/scripts/weather.py",
|
|
"interval": 30,
|
|
"format": "{}",
|
|
"return-type": "json"
|
|
},
|
|
|
|
"clock": {
|
|
"format": "{:%I:%M %p • %D}",
|
|
"tooltip-format": "<big>{:%A, %b %d}</big>\n<tt>{calendar}</tt>",
|
|
"calendar": {
|
|
"format": {
|
|
"months": "",
|
|
"weekdays": "<span color='#89b4fa'><b><u>{}</u></b></span>",
|
|
"today": "<span color='#89b4fa'><b><u>{}</u></b></span>"
|
|
}
|
|
}
|
|
},
|
|
|
|
"custom/updates":{
|
|
"exec": "~/.config/waybar/scripts/updates.sh json",
|
|
"interval": 300,
|
|
"format": "{}",
|
|
"on-click": "~/.config/waybar/scripts/updates.sh update",
|
|
"return-type": "json"
|
|
},
|
|
|
|
"temperature": {
|
|
"thermal-zone": 0,
|
|
"critical-threshold": 75,
|
|
"format": " {temperatureC}°C",
|
|
"format-critical": " {temperatureC}°C",
|
|
"tooltip-format": "CPU Temp\n{temperatureC}°C | {temperatureF}°F"
|
|
},
|
|
|
|
"custom/power_profile":{
|
|
"exec": "asusctl profile -p | sed s:'Active profile is '::",
|
|
"interval": 30,
|
|
"format": " {}",
|
|
"tooltip-format": "CPU Mode\n{}",
|
|
"on-click": "asusctl profile -n; pkill -SIGRTMIN+8 waybar",
|
|
"signal": 8
|
|
},
|
|
|
|
"battery": {
|
|
"states": {
|
|
"ok": 50,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
|
|
"tooltip-format": "Battery\n{capacity}% | {power} W\n\n{timeTo}"
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"format": "{icon} {volume}%",
|
|
"tooltip-format": "{icon} {desc}",
|
|
"format-muted": " Muted",
|
|
"on-click": "pamixer -t",
|
|
"on-scroll-up": "pamixer -i 5",
|
|
"on-scroll-down": "pamixer -d 5",
|
|
"scroll-step": 5,
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
}
|
|
},
|
|
|
|
"pulseaudio#microphone": {
|
|
"format": "{format_source}",
|
|
"format-source": " {volume}%",
|
|
"format-source-muted": " Muted",
|
|
"tooltip-format": " {desc}",
|
|
"on-click": "pamixer --default-source -t",
|
|
"on-scroll-up": "pamixer --default-source -i 5",
|
|
"on-scroll-down": "pamixer --default-source -d 5",
|
|
"scroll-step": 5
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 14,
|
|
"spacing": 10
|
|
}
|
|
}
|