dots/dots/.config/waybar/config

233 lines
7.2 KiB
Plaintext

[
{
"layer": "top",
"position": "top",
"modules-left": [
"custom/launcher",
"hyprland/submap",
"wlr/workspaces",
"cpu",
"memory",
"temperature",
"disk",
"battery",
"custom/audio-device",
"wireplumber",
"wlr/taskbar"
],
"modules-center": [
"custom/media"
],
"modules-right": [
"custom/pacman-update",
"tray",
"backlight",
"network",
"clock",
"custom/lock"
],
"custom/launcher": {
"format": "󰫢",
"tooltip": false,
"min-length": 5,
"on-click": "wofi",
"interval": "once"
},
"hyprland/submap": {
"format": "󰥻 {}",
"tooltip": false
},
"battery": {
"min-length": 5,
"design-capacity": true,
"states": {
"warning": 30,
"near-critical": 15,
"critical": 10
},
"tooltip": false,
"interval": 3,
"full-at": 95,
"format-plugged": "󰚥{icon} {capacity}%",
"format-charging": "󱐋{icon} {capacity}%",
"format-near-critical": "󱈸{icon} {capacity}%",
"format-warning": " {icon} {capacity}%",
"format-critical": "󱈸{icon} {capacity}%",
"format": "{icon} {capacity}%",
"format-icons": [
"󰁻",
"󰁺",
"󰁼",
"󰁽",
"󰁾",
"󰁿",
"󰂀",
"󰂁",
"󰁹"
]
},
"wlr/workspaces": {
"format": "",
"on-scroll-up": "hyprctl dispatch workspace e-1",
"on-scroll-down": "hyprctl dispatch workspace e+1",
"on-click": "activate"
},
"clock": {
"format": " {:%a %b %d %I:%M %p}",
"format-alt": " {:%H:%M %p}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#FFA066'><b>{}</b></span>",
"days": "<span color='#DCD7BA'><b>{}</b></span>",
"weeks": "<span color='#A3D4D5'><b>W{}</b></span>",
"weekdays": "<span color='#E6C384'><b>{}</b></span>",
"today": "<span color='#FF5D62'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
}
},
"custom/lock": {
"tooltip": false,
"format": "",
"interval": "once",
"on-click": "swaylock"
},
"backlight": {
"format": "󰃠 {percent}%",
"scroll-step": 5.0
},
"network": {
"on-click-right": "~/.config/waybar/scripts/set-rfkill.bash",
"interval": 1,
"format-alt": " {bandwidthUpBytes} |  {bandwidthDownBytes}",
"format-disconnected": "{icon} Disconnected",
"format-linked": " {ifname} | ↕ {bandwidthTotalBytes}",
"format-wifi": "{icon} {essid} | ↕ {bandwidthTotalBytes}",
"format-ethernet": "{icon} {ipaddr}/{cidr} | ↕ {bandwidthTotalBytes}",
"format-disabled": "󰀝 Wireless Networking Disabled",
"tooltip-format": "{ifname}: {ipaddr}/{cidr} 󰌹 {gwaddr}",
"format-icons": {
"ethernet": "󰈀",
"disconnected": "",
"wifi": ""
},
"tooltip": true,
"max-length": 60,
"min-length": 30
},
"custom/audio-device": {
"tooltip": false,
"min-length": 20,
"interval": 1,
"format": "󰓃 {}",
"exec": "wpctl status | grep -m 1 '*' | cut -d '.' -f2 | cut -d '[' -f1 | xargs"
},
"wireplumber": {
"format": "{icon}{volume}%",
"format-muted": "󰖁 0%",
"on-click-middle": "helvum",
"on-click-right": "pavucontrol-qt",
"on-click": "pw-volume mute toggle",
"format-icons": [
"󰕿 ",
"󰖀 ",
"󰕾 "
]
},
"idle_inhibitor": {
"tooltip": false,
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"cpu": {
"interval": 4,
"min-length": 6,
"format": " {usage}%",
"tooltip": false,
"states": {
"critical": 90
}
},
"temperature": {
"tooltip": false,
"min-length": 6,
"thermal-zone": 12,
"critical-threshold": 90,
"format": "{icon} {temperatureC}°C",
"format-critical": "{icon} {temperatureC}°C",
"format-icons": {
"default": [
"",
"",
"",
"",
""
]
}
},
"memory": {
"format": " {percentage}%",
"tooltip-format": "{used:0.1f}GB/{total:0.1f}GB ",
"states": {
"critical": 90
},
"min-length": 5
},
"disk": {
"path": "/home",
"interval": 60,
"tooltip-format": "{used} used out of {total} ({percentage_used}%)",
"min-length": 5,
"format": "󰋊 {percentage_used}%",
"states": {
"critical": 90
}
},
"custom/media": {
"return-type": "json",
"on-click": "playerctl play-pause",
"exec": "~/.config/waybar/scripts/get-media.bash"
},
"custom/pacman-update": {
"return-type": "json",
"exec": "~/.config/waybar/scripts/get-pacman-package-updates.bash",
"format": "󰇚 {}",
"tooltip": true,
"interval": 3600,
"signal": 8
},
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 12,
"icon-theme": "Numix-Circle",
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-middle": "close",
"ignore-list": [
"Alacritty"
],
"app_ids-mapping": {
"firefoxdeveloperedition": "firefox-developer-edition"
}
},
"tray": {
"icon-size": 14
}
}
]