Add working waybar config

This commit is contained in:
kenpat 2026-06-08 18:12:43 +00:00
parent 5d231cf4f3
commit 118189fd26

145
waybar/config.jsonc Normal file
View file

@ -0,0 +1,145 @@
// -*- mode: jsonc -*-
// ================ Main ===================
{
"layer": "top",
"output": "eDP-1",
"position": "top",
"margin-top": 10, "margin-bottom": 0,
"height": 0,
"width": 1280,
// internet, ram %, cpu %, gpu %
"modules-left": [ "group/hardware" ],
// left_workspaces, power, right workspaces
"modules-center": [ "hyprland/workspaces#left", "custom/power", "hyprland/workspaces#right" ],
// cava, music, volume, date-time
"modules-right": [ "group/media", "clock" ],
// ========================================
// ======= hardware tracking ===============
"network": {
"format": "󰳘 {bandwidthUpBytes} 󰱦 {bandwidthDownBytes}",
"interval": 2,
"min-length": 22,
"max-length": 22,
},
"memory": {
"format": " {}%",
"interval": 2
},
"battery": {
"format": "󰁹 {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-plugged": "󰚥 {capacity}%",
"interval": 30,
"states": { "warning": 30, "critical": 15 }
},
"cpu": {
"format": " {usage}%",
"interval": 2
},
"custom/temperature": {
"exec": "awk '{print int($1/1000)}' /sys/class/hwmon/hwmon6/temp1_input",
"format": " {}°C",
"interval": 2,
},
// =========== Workspaces =================
"hyprland/workspaces#left": {
"on-click": "activate",
"format": "{name}: {icon}",
"format-icons": {
"1": "",
"3": "",
"5": "",
"7": "󱎓",
},
"ignore-workspaces": [ "^[246]$" ],
"persistent-workspaces": { "eDP-1": [1,3,5,7] }
},
"custom/power": {
"format": "",
"on-click": "wlogout --column 3"
},
"hyprland/workspaces#right": {
"on-click": "activate",
"format": "{name}: {icon}",
"format-icons": {
"2": "",
"4": "󰙨",
"6": "",
"8": "",
},
"ignore-workspaces": [ "^[1357]$" ],
"persistent-workspaces": { "eDP-1": [2,4,6,8] }
},
// ========================================
// ============== time ==============
"clock": {
"format": "{:%a %d %I:%M}",
"interval": 60,
"max-length": 25,
"tooltip": true,
"tooltip-format":"{:%B-%Y}"
},
// ========================================
// ============= Media ====================
"mpris": {
"player": "playerctld",
"interval": 1,
"format": "{player} {status_icon} {title}",
"status-icons": {
"paused": "",
"playing": ""
},
"max-length": 14
},
"pulseaudio": {
"format": "{volume}% ",
"scroll-step": 1
},
"custom/cava": {
"exec": "~/dotfiles/.config/scripts/waybar_cava.sh",
"format": "{}",
"max-length": 12,
},
"custom/spotify": {
"format": "󰓇",
"on-click": "spotify-launcher",
"tooltip": false
},
// ============= Groups ==============
"group/hardware": {
"orientation": "horizontal",
"modules": [ "network", "memory", "battery", "cpu", "custom/temperature"]
},
"group/media": {
"orientation": "horizontal",
"modules": [ "custom/spotify", "custom/cava", "mpris", "pulseaudio" ]
},
//===================================
}