577 lines
19 KiB
Plaintext
577 lines
19 KiB
Plaintext
[
|
|
{
|
|
"output": "DP-1",
|
|
"position": "bottom",
|
|
"height": 42,
|
|
"layer": "top",
|
|
"spacing": 4,
|
|
|
|
"modules-left": [
|
|
"sway/workspaces",
|
|
"sway/mode",
|
|
"custom/media"
|
|
],
|
|
|
|
"modules-center": [
|
|
"sway/window"
|
|
],
|
|
|
|
"modules-right": [
|
|
"idle_inhibitor",
|
|
"privacy",
|
|
"custom/updates",
|
|
"custom/weather",
|
|
"bluetooth",
|
|
"network",
|
|
"custom/vpn",
|
|
"pulseaudio",
|
|
"custom/monitor-brightness",
|
|
"cpu",
|
|
"memory",
|
|
"temperature",
|
|
"battery",
|
|
"custom/ibus",
|
|
"tray",
|
|
"clock",
|
|
"custom/power"
|
|
],
|
|
|
|
"sway/workspaces": {
|
|
"disable-scroll": false,
|
|
"all-outputs": false,
|
|
"format": "{name}"
|
|
},
|
|
|
|
"sway/mode": {
|
|
"format": "<span style=\"italic\"> {}</span>",
|
|
"tooltip": false
|
|
},
|
|
|
|
"sway/window": {
|
|
"format": "{}",
|
|
"max-length": 50,
|
|
"icon": true,
|
|
"icon-size": 16,
|
|
"rewrite": {
|
|
"(.*) — Mozilla Firefox": " $1",
|
|
"(.*) - Visual Studio Code": " $1",
|
|
"(.*) - vim": " $1",
|
|
"(.*) - zsh": " $1"
|
|
}
|
|
},
|
|
|
|
"custom/media": {
|
|
"format": " {}",
|
|
"return-type": "json",
|
|
"max-length": 40,
|
|
"escape": true,
|
|
"exec": "$HOME/.config/waybar/scripts/mediaplayer.py 2> /dev/null",
|
|
"on-click": "playerctl play-pause",
|
|
"on-click-right": "playerctl next",
|
|
"on-scroll-up": "playerctl previous",
|
|
"on-scroll-down": "playerctl next"
|
|
},
|
|
|
|
"clock": {
|
|
"interval": 1,
|
|
"format": "{:%H:%M:%S}",
|
|
"format-alt": "{:%A, %B %d, %Y (%R)}",
|
|
"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='#ffead3'><b>{}</b></span>",
|
|
"days": "<span color='#ecc6d9'><b>{}</b></span>",
|
|
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
|
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
|
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
|
}
|
|
},
|
|
"actions": {
|
|
"on-click-right": "mode",
|
|
"on-scroll-up": "shift_up",
|
|
"on-scroll-down": "shift_down"
|
|
}
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
},
|
|
"tooltip-format-activated": "Idle inhibitor: ON",
|
|
"tooltip-format-deactivated": "Idle inhibitor: OFF"
|
|
},
|
|
|
|
"privacy": {
|
|
"icon-spacing": 4,
|
|
"icon-size": 18,
|
|
"transition-duration": 250,
|
|
"modules": [
|
|
{
|
|
"type": "screenshare",
|
|
"tooltip": true,
|
|
"tooltip-icon-size": 24
|
|
},
|
|
{
|
|
"type": "audio-in",
|
|
"tooltip": true,
|
|
"tooltip-icon-size": 24
|
|
}
|
|
]
|
|
},
|
|
|
|
"custom/updates": {
|
|
"format": "{} ",
|
|
"interval": 3600,
|
|
"exec": "checkupdates 2>/dev/null | wc -l",
|
|
"exec-if": "exit 0",
|
|
"on-click": "alacritty -e paru -Syu",
|
|
"tooltip": true,
|
|
"tooltip-format": "{} pending updates"
|
|
},
|
|
|
|
"custom/weather": {
|
|
"format": "{}",
|
|
"tooltip": true,
|
|
"interval": 1800,
|
|
"exec": "$HOME/.config/waybar/scripts/weather.sh",
|
|
"return-type": "json",
|
|
"on-click": "xdg-open https://weather.com"
|
|
},
|
|
|
|
"bluetooth": {
|
|
"format": " {status}",
|
|
"format-disabled": "",
|
|
"format-connected": " {num_connections}",
|
|
"tooltip-format": "{controller_alias}\t{controller_address}",
|
|
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
|
|
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
|
"on-click": "blueman-manager"
|
|
},
|
|
|
|
"network": {
|
|
"interval": 5,
|
|
"format-wifi": "📶 {signalStrength}%",
|
|
"format-ethernet": "🔌 {ipaddr}",
|
|
"format-linked": "🔌 {ifname} (No IP)",
|
|
"format-disconnected": "❌ Disconnected",
|
|
"tooltip-format": "{ifname}: {ipaddr}/{cidr}\nGateway: {gwaddr}\nStrength: {signalStrength}%\nFrequency: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
|
|
"tooltip-format-wifi": "📶 {essid} ({signalStrength}%)\n{ipaddr}/{cidr}\nGateway: {gwaddr}\nFrequency: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
|
|
"tooltip-format-ethernet": "🔌 {ifname}\n{ipaddr}/{cidr}\nGateway: {gwaddr}\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
|
|
"on-click": "nm-connection-editor",
|
|
"on-click-right": "alacritty -e nmtui"
|
|
},
|
|
|
|
"custom/vpn": {
|
|
"format": "{}",
|
|
"interval": 5,
|
|
"exec": "$HOME/.config/waybar/scripts/vpn-check.sh",
|
|
"return-type": "json",
|
|
"on-click": "nm-connection-editor",
|
|
"tooltip": true
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"scroll-step": 5,
|
|
"format": "{icon} {volume}%",
|
|
"format-bluetooth": "{icon} {volume}%",
|
|
"format-bluetooth-muted": " {icon}",
|
|
"format-muted": " {volume}%",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "if pgrep -x pavucontrol > /dev/null; then pkill pavucontrol; else pavucontrol; fi",
|
|
"on-click-right": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
|
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +5%",
|
|
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -5%",
|
|
"tooltip-format": "{desc}\nVolume: {volume}%"
|
|
},
|
|
|
|
"custom/monitor-brightness": {
|
|
"format": " {}%",
|
|
"interval": 2,
|
|
"exec": "$HOME/.config/waybar/scripts/monitor-brightness.sh get",
|
|
"on-click": "gddccontrol",
|
|
"on-scroll-up": "$HOME/.config/waybar/scripts/monitor-brightness.sh up && pkill -RTMIN+10 waybar",
|
|
"on-scroll-down": "$HOME/.config/waybar/scripts/monitor-brightness.sh down && pkill -RTMIN+10 waybar",
|
|
"signal": 10,
|
|
"tooltip": true,
|
|
"tooltip-format": "Monitor Brightness: {}%"
|
|
},
|
|
|
|
"cpu": {
|
|
"interval": 2,
|
|
"format": " {usage}%",
|
|
"max-length": 10,
|
|
"on-click": "alacritty -e htop",
|
|
"tooltip": true
|
|
},
|
|
|
|
"memory": {
|
|
"interval": 5,
|
|
"format": " {}%",
|
|
"tooltip-format": "RAM: {used:0.1f}G / {total:0.1f}G\nSwap: {swapUsed:0.1f}G / {swapTotal:0.1f}G",
|
|
"on-click": "alacritty -e htop"
|
|
},
|
|
|
|
"temperature": {
|
|
"thermal-zone": 2,
|
|
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
"critical-threshold": 80,
|
|
"interval": 5,
|
|
"format": "{icon} {temperatureC}°C",
|
|
"format-icons": ["", "", "", "", ""],
|
|
"tooltip": true
|
|
},
|
|
|
|
"battery": {
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"interval": 30,
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-alt": "{icon} {time}",
|
|
"format-icons": ["", "", "", "", ""],
|
|
"tooltip-format": "{timeTo}\nCapacity: {capacity}%\nHealth: {health}%\nPower: {power}W"
|
|
},
|
|
|
|
"custom/ibus": {
|
|
"exec": "ibus engine",
|
|
"interval": 1,
|
|
"format": "⌨ {}",
|
|
"on-click": "ibus engine Thaana",
|
|
"tooltip-format": "Current keyboard: {}"
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 18,
|
|
"spacing": 8,
|
|
"show-passive-items": true
|
|
},
|
|
|
|
"custom/power": {
|
|
"format": "⏻",
|
|
"on-click": "$HOME/.config/waybar/scripts/power-menu.sh",
|
|
"tooltip": false
|
|
}
|
|
},
|
|
{
|
|
"output": ["DP-2", "DP-3", "DP-4", "DP-5", "DP-6", "DP-7", "DP-8", "HDMI-A-1", "HDMI-A-2", "HDMI-A-3"],
|
|
"position": "bottom",
|
|
"height": 42,
|
|
"layer": "top",
|
|
"spacing": 4,
|
|
|
|
"modules-left": [
|
|
"sway/workspaces",
|
|
"sway/mode"
|
|
],
|
|
|
|
"modules-center": [
|
|
"sway/window"
|
|
],
|
|
|
|
"modules-right": [
|
|
"privacy",
|
|
"network",
|
|
"pulseaudio",
|
|
"battery",
|
|
"tray",
|
|
"clock",
|
|
"custom/power"
|
|
],
|
|
|
|
"sway/workspaces": {
|
|
"disable-scroll": false,
|
|
"all-outputs": false,
|
|
"format": "{name}"
|
|
},
|
|
|
|
"sway/mode": {
|
|
"format": "<span style=\"italic\"> {}</span>",
|
|
"tooltip": false
|
|
},
|
|
|
|
"sway/window": {
|
|
"format": "{}",
|
|
"max-length": 50,
|
|
"icon": true,
|
|
"icon-size": 16,
|
|
"rewrite": {
|
|
"(.*) — Mozilla Firefox": " $1",
|
|
"(.*) - Visual Studio Code": " $1",
|
|
"(.*) - vim": " $1",
|
|
"(.*) - zsh": " $1"
|
|
}
|
|
},
|
|
|
|
"privacy": {
|
|
"icon-spacing": 4,
|
|
"icon-size": 18,
|
|
"transition-duration": 250,
|
|
"modules": [
|
|
{
|
|
"type": "screenshare",
|
|
"tooltip": true,
|
|
"tooltip-icon-size": 24
|
|
},
|
|
{
|
|
"type": "audio-in",
|
|
"tooltip": true,
|
|
"tooltip-icon-size": 24
|
|
}
|
|
]
|
|
},
|
|
|
|
"network": {
|
|
"interval": 5,
|
|
"format-wifi": "📶 {signalStrength}%",
|
|
"format-ethernet": "🔌 {ipaddr}",
|
|
"format-linked": "🔌 {ifname} (No IP)",
|
|
"format-disconnected": "❌ Disconnected",
|
|
"tooltip-format": "{ifname}: {ipaddr}/{cidr}\nGateway: {gwaddr}\nStrength: {signalStrength}%\nFrequency: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
|
|
"tooltip-format-wifi": "📶 {essid} ({signalStrength}%)\n{ipaddr}/{cidr}\nGateway: {gwaddr}\nFrequency: {frequency}MHz\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
|
|
"tooltip-format-ethernet": "🔌 {ifname}\n{ipaddr}/{cidr}\nGateway: {gwaddr}\nUp: {bandwidthUpBits} Down: {bandwidthDownBits}",
|
|
"on-click": "nm-connection-editor",
|
|
"on-click-right": "alacritty -e nmtui"
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"scroll-step": 5,
|
|
"format": "{icon} {volume}%",
|
|
"format-bluetooth": "{icon} {volume}%",
|
|
"format-bluetooth-muted": " {icon}",
|
|
"format-muted": " {volume}%",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "if pgrep -x pavucontrol > /dev/null; then pkill pavucontrol; else pavucontrol; fi",
|
|
"on-click-right": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
|
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +5%",
|
|
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -5%",
|
|
"tooltip-format": "{desc}\nVolume: {volume}%"
|
|
},
|
|
|
|
"battery": {
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"interval": 30,
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-alt": "{icon} {time}",
|
|
"format-icons": ["", "", "", "", ""],
|
|
"tooltip-format": "{timeTo}\nCapacity: {capacity}%\nHealth: {health}%\nPower: {power}W"
|
|
},
|
|
|
|
"clock": {
|
|
"interval": 1,
|
|
"format": "{:%H:%M:%S}",
|
|
"format-alt": "{:%A, %B %d, %Y (%R)}",
|
|
"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='#ffead3'><b>{}</b></span>",
|
|
"days": "<span color='#ecc6d9'><b>{}</b></span>",
|
|
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
|
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
|
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
|
}
|
|
},
|
|
"actions": {
|
|
"on-click-right": "mode",
|
|
"on-scroll-up": "shift_up",
|
|
"on-scroll-down": "shift_down"
|
|
}
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 18,
|
|
"spacing": 8,
|
|
"show-passive-items": true
|
|
},
|
|
|
|
"custom/power": {
|
|
"format": "⏻",
|
|
"on-click": "$HOME/.config/waybar/scripts/power-menu.sh",
|
|
"tooltip": false
|
|
}
|
|
},
|
|
{
|
|
"output": "eDP-1",
|
|
"position": "bottom",
|
|
"height": 42,
|
|
"layer": "top",
|
|
"spacing": 4,
|
|
|
|
"modules-left": [
|
|
"sway/workspaces"
|
|
],
|
|
|
|
"modules-center": [
|
|
"sway/window"
|
|
],
|
|
|
|
"modules-right": [
|
|
"privacy",
|
|
"pulseaudio",
|
|
"backlight",
|
|
"battery",
|
|
"tray",
|
|
"clock",
|
|
"custom/power"
|
|
],
|
|
|
|
"sway/workspaces": {
|
|
"disable-scroll": false,
|
|
"all-outputs": false,
|
|
"format": "{name}"
|
|
},
|
|
|
|
"sway/window": {
|
|
"format": "{}",
|
|
"max-length": 50,
|
|
"icon": true,
|
|
"icon-size": 16,
|
|
"rewrite": {
|
|
"(.*) — Mozilla Firefox": " $1",
|
|
"(.*) - Visual Studio Code": " $1",
|
|
"(.*) - vim": " $1",
|
|
"(.*) - zsh": " $1"
|
|
}
|
|
},
|
|
|
|
"privacy": {
|
|
"icon-spacing": 4,
|
|
"icon-size": 18,
|
|
"transition-duration": 250,
|
|
"modules": [
|
|
{
|
|
"type": "screenshare",
|
|
"tooltip": true,
|
|
"tooltip-icon-size": 24
|
|
},
|
|
{
|
|
"type": "audio-in",
|
|
"tooltip": true,
|
|
"tooltip-icon-size": 24
|
|
}
|
|
]
|
|
},
|
|
|
|
"pulseaudio": {
|
|
"scroll-step": 5,
|
|
"format": "{icon} {volume}%",
|
|
"format-bluetooth": "{icon} {volume}%",
|
|
"format-bluetooth-muted": " {icon}",
|
|
"format-muted": " {volume}%",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "if pgrep -x pavucontrol > /dev/null; then pkill pavucontrol; else pavucontrol; fi",
|
|
"on-click-right": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
|
|
"on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +5%",
|
|
"on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -5%",
|
|
"tooltip-format": "{desc}\nVolume: {volume}%"
|
|
},
|
|
|
|
"backlight": {
|
|
"device": "intel_backlight",
|
|
"format": "{icon} {percent}%",
|
|
"format-icons": ["", "", "", "", "", "", "", "", ""],
|
|
"on-scroll-up": "brightnessctl set +5%",
|
|
"on-scroll-down": "[ $(brightnessctl -m | cut -d',' -f4 | tr -d '%') -le 5 ] && brightnessctl set 1% || brightnessctl set 5%-",
|
|
"tooltip-format": "Brightness: {percent}%"
|
|
},
|
|
|
|
"battery": {
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"interval": 30,
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-alt": "{icon} {time}",
|
|
"format-icons": ["", "", "", "", ""],
|
|
"tooltip-format": "{timeTo}\nCapacity: {capacity}%\nHealth: {health}%\nPower: {power}W"
|
|
},
|
|
|
|
"clock": {
|
|
"interval": 1,
|
|
"format": "{:%H:%M:%S}",
|
|
"format-alt": "{:%A, %B %d, %Y (%R)}",
|
|
"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='#ffead3'><b>{}</b></span>",
|
|
"days": "<span color='#ecc6d9'><b>{}</b></span>",
|
|
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
|
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
|
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
|
}
|
|
},
|
|
"actions": {
|
|
"on-click-right": "mode",
|
|
"on-scroll-up": "shift_up",
|
|
"on-scroll-down": "shift_down"
|
|
}
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 18,
|
|
"spacing": 8,
|
|
"show-passive-items": true
|
|
},
|
|
|
|
"custom/power": {
|
|
"format": "⏻",
|
|
"on-click": "$HOME/.config/waybar/scripts/power-menu.sh",
|
|
"tooltip": false
|
|
}
|
|
}
|
|
]
|