dotfiles/.config/waybar/modules/bottom-bar.jsonc

99 lines
2.8 KiB
JSON

{
"hyprland/window": {
"format": "{}",
"max-length": 80,
"rewrite": {
"(.*) — LibreWolf": "󰇧 $1",
"(.*) - Discord": "󰙯 $1",
"(.*) - fish": "> [$1]",
},
"separate-outputs": false,
},
"custom/arch": {
"format": "  ",
"tooltip": false,
"on-click": "sleep 0.1 && rofi -show drun",
"on-click-right": "wleave",
},
"custom/notifications": {
"tooltip": false,
"format": "{} {icon}",
"format-icons": {
"notification": "<span foreground='red'><sup></sup></span>",
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": "",
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": "",
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "sleep 0.1 && swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true,
},
"hyprland/workspaces": {
"disable-scroll": true,
"active-only": false,
"all-outputs": false,
"enable-bar-scroll": true,
"format": "{icon}",
"format-icons": {
"10": "󰇧",
"11": "",
"12": "",
"13": "",
"14": "🎜",
"15": "",
"16": "",
"17": "",
"18": "",
},
"on-scroll-up": "hyprctl dispatch workspace r-1",
"on-scroll-down": "hyprctl dispatch workspace r+1",
"on-click": "activate",
"sort-by-number": true,
},
"cpu": {
"on-click": "kitty --class center-float-large btop",
"format": "CPU: {usage}%",
"tooltip": false,
"interval": 2,
},
"custom/gpu-usage": {
"exec": "cat /sys/class/hwmon/hwmon1/device/gpu_busy_percent",
"on-click": "kitty --class center-float-large nvtop",
"format": "GPU: {}%",
"return-type": "",
"interval": 2,
},
"memory": {
"format": "{}%  ",
"on-click": "kitty --class center-float-large btop",
"tooltip": true,
"interval": 2,
},
"temperature#cpu": {
"critical-threshold": 90,
"on-click": "kitty --class center-float-large btop",
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"format-critical": "{icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""],
"tooltip": true,
"interval": 2,
},
"temperature#gpu": {
"critical-threshold": 80,
"on-click": "kitty --class center-float-large nvtop",
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
"format-critical": "{icon} {temperatureC}°C",
"format": "{icon} {temperatureC}°C",
"format-icons": ["", "", ""],
"tooltip": true,
"interval": 2,
},
}