From 118189fd2606e7d8263a2e3a32291af3d190cae1 Mon Sep 17 00:00:00 2001 From: kenpat Date: Mon, 8 Jun 2026 18:12:43 +0000 Subject: [PATCH] Add working waybar config --- waybar/config.jsonc | 145 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 waybar/config.jsonc diff --git a/waybar/config.jsonc b/waybar/config.jsonc new file mode 100644 index 0000000..7905cfa --- /dev/null +++ b/waybar/config.jsonc @@ -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" ] + }, + +//=================================== + +}