145 lines
2.9 KiB
JSON
145 lines
2.9 KiB
JSON
// -*- 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" ]
|
|
},
|
|
|
|
//===================================
|
|
|
|
}
|