dotfiles/de/home/.config/waybar/config
2024-03-27 15:15:01 -06:00

201 lines
5.4 KiB
Text

{
// layout
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
"spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": ["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": "{icon}",
"format-icons": {
// "1": "",
// "2": "",
"3": "",
"4": "",
"Development": "",
"Development1": "",
"Development2": "",
"Development3": "",
"Development4": "",
"Development5": "",
"Development6": "",
"Development7": "",
"Development8": "",
"Development9": "",
"School": "",
"School1": "",
"School2": "",
"School3": "",
"School4": "",
"School5": "",
"School6": "",
"School7": "",
"School8": "",
"School9": "",
"Work": "",
"Work1": "",
"Work2": "",
"Work3": "",
"Work4": "",
"Work5": "",
"Work6": "",
"Work7": "",
"Work8": "",
"Work9": "",
// "default": ""
}
},
// 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}: {title}"
},
// Idle inhibitor
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
// Tray icons
"tray": {
// "icon-size": 21,
"spacing": 15
},
// Clock
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
// CPU
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
// Memory (RAM)
"memory": {
"format": "{}% "
},
// 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": {
// "device": "acpi_video1",
"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-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
// Networking
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{essid} {ipaddr}/{cidr} 🖧",
"tooltip-format": "{ifname} via {gwaddr}",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
// "format-alt": "{ifname}: {ipaddr}/{cidr}",
"on-click": "nm-connection-editor"
},
//
"custom/nmvpn": {
"format": "{} {icon}",
"return-type": "json",
"exec": "$HOME/go/bin/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": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {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-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
}
}