dotfiles/de/home/.config/waybar/config
2024-06-25 14:15:02 -06:00

169 lines
4.3 KiB
Text

{
// layout
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
"spacing": 4, // Gaps between modules (4px)
// module order
"modules-left": ["custom/sway-profile","sway/workspaces","sway/mode","sway/scratchpad","sway/window"],
"modules-center": ["custom/sonixd"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "custom/nmvpn", "bluetooth", "memory", "battery", "clock", "tray"],
// Modules configuration
// Workspaces
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{name}",
"sort-by-number": true
},
// Mode indicator
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
// Scratchpad
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}"
},
// Idle inhibitor
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
// Tray icons
"tray": {
"spacing": 15
},
// Clock
"clock": {
"format": "{0:%Y-%m-%d} <b>{0:%H:%M}</b>",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{0:%B %e, %Y} <b>{0:%H:%M}</b>"
},
// CPU
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
// Memory (RAM)
"memory": {
"format": "{percentage}%  {swapPercentage}% "
},
// Temp
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
// Backlight
"backlight": {
"format": "{percent}% {icon}",
"format-icons": [""]
},
// Battery
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
// Networking
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ",
"format-ethernet": "{essid} {ipaddr}/{cidr} 🖧",
"tooltip-format": "{ifname} via {gwaddr}",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "",
"on-click": "nm-connection-editor"
},
// NM-VPN widget
"custom/nmvpn": {
"format": "{} {icon}",
"return-type": "json",
"exec": "waybar-nmvpn",
"format-icons": {
"connected": "",
"disconnected": "",
"none": "",
"error": "⚠"
},
"on-click": "$HOME/.config/waybar/scripts/nmcli_vpn"
},
// Bluetooth
"bluetooth": {
"format": "",
"on-click": "blueman-manager"
},
// Pulseaudio
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": "🔇 {icon} {format_source}",
"format-muted": "🔇 {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"tooltip-format": "{format_source}",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol-qt --tab 3"
},
// Sonixd
"custom/sonixd": {
"format": "{}",
"return-type": "json",
"interval": 5,
"exec": "$HOME/.config/waybar/scripts/sonixd.sh",
"exec-if": "pgrep Sonixd",
"on-click":"swaymsg [class='Sonixd'] focus",
"escape": true
},
//sway profile
"custom/sway-profile": {
"format": " {} ",
"interval": 3,
"exec": "/usr/bin/sp-profile-icon"
}
}