sway/waybar/config
2024-08-18 21:15:23 +00:00

168 lines
4.9 KiB
Plaintext

{
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
"height": 40,
"width":1915,
"margin": "0 0 0 0",
"spacing":10,
// Choose the order of the modules
"modules-left": ["hyprland/workspaces", "wlr/taskbar", "hyprland/window"],
"modules-center": ["custom/network_traffic"],
"modules-right": [ "temperature", "cpu", "memory", "battery", "battery#bat1","pulseaudio", "network", "clock", "tray"],
// Modules configuration
"hyprland/workspaces": {
"format": "{icon}",
"on-click": "activate",
"all-outputs": true,
"sort-by-number": true,
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7",
"8": "8",
"9": "9",
"10": "10",
"focused": "",
"default": ""
},
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
},
"hyprland/window": {
"format": "{}",
"icon":true,
"icon-size" : 20
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"wlr/taskbar": {
"format": "{icon}",
"on-click": "activate",
"on-click-right": "fullscreen",
"on-click-middle": "close",
},
"tray": {
"icon-size": 20,
"spacing": 5
},
"clock": {
"tooltip-format": "<big>{:%A, %d.%B %Y }</big>\n<tt><small>{calendar}</small></tt>",
"format": " {:%a %d %b  %I:%M %p}", //12 hour format
//"format": " {:%a %d %b  %H:%M}", //24 hour format
"format-alt": " {:%d/%m/%Y  %H:%M:%S}",
"timezones": [ "America/Denver" ],
//"max-length": 200
"interval": 1
},
"cpu": {
"format": "{icon0}{icon1}{icon2}{icon3} {usage:>2}% ",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
"on-click": "kitty -e btop"
},
"memory": {
"format": "🖴 {: >3}%",
"on-click": "kitty -e btop"
},
"battery": {
"bat": "BAT0",
"interval": 60,
"states": {
"good": 80,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity: >3}%",
"format-icons": ["", "", "", "", ""]
},
"battery#bat1": {
"bat": "BAT1",
"interval": 60,
"states": {
"good": 80,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity: >3}%",
"format-icons": ["", "", "", "", ""]
},
"network": {
//"interface": "wlp0s20f3", // (Optional) To force the use of this interface "format-wifi": " {essid}",
"format": "⚠Disabled",
"format-wifi": "",
"format-ethernet": "",
"format-linked": "{ifname} (No IP)",
"format-disconnected": "⚠Disabled",
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"family": "ipv4",
"tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
"tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n up: {bandwidthUpBits} down: {bandwidthDownBits}",
//"min-length": 2,
//"max-length": 2,
"on-click": "nm-connection-editor"
},
"custom/updates": {
"format": "{} {icon}",
"return-type": "json",
"format-icons": {
"has-updates": "󱍷",
"updated": "󰂪",
"interval": 7200,
},
"exec-if": "which waybar-module-pacman-updates",
"exec": "waybar-module-pacman-updates",
"on-click": "foot -e update"
},
"custom/power": {
"format":"⏻",
"on-click": "nwgbar",
"tooltip": false,
},
"custom/network_traffic": {
"exec": "~/.config/waybar/scripts/network_traffic.sh",
"return-type": "json",
"format-ethernet": "{icon} {ifname} ⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", // optional
},
"pulseaudio": {
"scroll-step": 3, // %, can be a float
"format": "{icon} {volume}% {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
//"format-source": "{volume}% ",
//"format-source-muted": "",
"format-source": "",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol",
"on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
},
// https://github.com/chubin/wttr.in
"custom/weather": {
"exec": "curl 'https://wttr.in/Essen?format=2'",
"interval": 900,
"on-click": "yad --html --uri='https://wttr.in/Essen' --center --fixed --width=1000 --height=680 --timeout=60 --timeout-indicator=right"
},
}