90 lines
3.0 KiB
Cheetah
Raw Normal View History

2023-12-13 23:47:17 -08:00
{
"layer": "top",
// Choose the order of the modules
"modules-left": ["hyprland/workspaces", "hyprland/submap", "hyprland/window"],
"modules-center": ["clock"],
2023-12-14 20:44:57 -08:00
"modules-right": ["tray", "custom/separator",
"network", "custom/separator",
"cpu", "custom/separator",
"memory", "custom/separator",
2024-03-10 21:37:58 -07:00
"custom/laptop_batt", "custom/mouse", "custom/separator",
2023-12-14 20:44:57 -08:00
"pulseaudio", "custom/separator",
"custom/disk", "custom/bits"],
2023-12-13 23:47:17 -08:00
"hyprland/workspaces": {
"format": "{icon}",
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1"
},
"hyprland/window": {
"format": "{}",
"max-length": 50,
},
"hyprland/submap": {
"format": " {}"
},
2023-12-14 20:44:57 -08:00
"custom/bits": {
"format": "{}",
"interval": 5,
"exec": "~/.config/waybar/scripts/bits.sh",
},
"custom/disk": {
2024-01-07 00:58:22 -08:00
"format": " 󰉉 <span color=\"#{{ .themes.gruvbox.red }}\">{}</span>G ",
2023-12-14 20:44:57 -08:00
"interval": 30,
"exec": "df -h --output=avail / | awk 'NR==2 {sub(/.$/, \"\", $1); print $1}'",
2023-12-13 23:47:17 -08:00
},
"cpu": {
2024-01-07 00:58:22 -08:00
"format": " <span color=\"#{{ .themes.gruvbox.red }}\">{usage}</span>%",
2023-12-13 23:47:17 -08:00
"tooltip": false
},
"memory": {
2024-01-07 00:58:22 -08:00
"format": " <span color=\"#{{ .themes.gruvbox.red }}\">{used:0.1f}</span>G"
2023-12-13 23:47:17 -08:00
},
"network": {
"format-wifi": "({signalStrength}%) ",
2024-01-07 00:58:22 -08:00
"format-ethernet": "<span color=\"#{{ .themes.gruvbox.green }}\">{ifname}</span>",
2023-12-13 23:47:17 -08:00
"tooltip-format": "{ifname} via {gwaddr}",
"format-linked": "{ifname} (No IP) ?",
"format-disconnected": "",
"on-click": "nm-connection-editor"
},
2024-03-10 21:37:58 -07:00
"custom/laptop_batt": {
"format": " 󰁹 <span color=\"#{{ .themes.gruvbox.red }}\">{}</span>% ",
"interval": 5,
"exec": "cat /sys/class/power_supply/BAT0/capacity",
},
2023-12-14 20:44:57 -08:00
"custom/mouse": {
2024-01-07 00:58:22 -08:00
"format": " 󰍽 <span color=\"#{{ .themes.gruvbox.red }}\">{}</span>% ",
2023-12-14 20:44:57 -08:00
"interval": 5,
"exec": "cat /sys/class/power_supply/hidpp_battery_[0-9]*/capacity | head -n 1",
},
2023-12-13 23:47:17 -08:00
"pulseaudio": {
2024-01-07 00:58:22 -08:00
"format": "{icon} <span color=\"#{{ .themes.gruvbox.red }}\">{volume}</span>% {format_source}",
2023-12-13 23:47:17 -08:00
"format-muted": "󰖁 {format_source}",
2024-01-07 00:58:22 -08:00
"format-bluetooth": "{icon}  <span color=\"#{{ .themes.gruvbox.red }}\">{volume}</span>% {format_source}",
2023-12-13 23:47:17 -08:00
"format-bluetooth-muted": "󰖁  {format_source}",
"tooltip": false,
2023-12-13 23:47:17 -08:00
2024-01-07 00:58:22 -08:00
"format-source": "  <span color=\"#{{ .themes.gruvbox.red }}\">{volume}</span>%",
2023-12-13 23:47:17 -08:00
"format-source-muted": "",
"format-icons": {
"default": ["", "", ""]
},
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
},
"clock": {
"interval": 1,
"format": " {:%Y-%m-%d  %H:%M:%S}"
},
"tray": {
"spacing": 10
},
"custom/separator": {
2024-03-10 21:37:58 -07:00
"format": " <span color=\"#{{ .themes.gruvbox.green }}\">|</span> ",
2023-12-13 23:47:17 -08:00
"interval": "once",
"tooltip": false
},
}