{ // layout "layer": "bottom", // Waybar at top layer "position": "top", // Waybar position (top|bottom|left|right) "spacing": 4, // Gaps between modules (4px) // module order "modules-left": ["custom/sway-power","custom/sway-profile","sway/workspaces","sway/mode","sway/scratchpad","sway/window"], //,"image"], "modules-center": ["custom/feishin"], "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, "on-scroll-up": "swaymsg workspace next", "on-scroll-down": "swaymsg workspace prev" }, // "image":{ // "path":"/home/penelope/Documents/Work/slack/purple_pikmin3big.png", // "size":20 // }, // Mode indicator "sway/mode": { "format": "{}" }, // Scratchpad "sway/scratchpad": { "format": "{icon} {count}", "show-empty": false, "format-icons": ["", ""], "tooltip": true, "tooltip-format": "{app}" }, // Window Name "sway/window": { "format":"{}", "max-length":30, "rewrite":{ "(.*) — Mozilla Firefox":" $1", "(.*) — LibreOffice Calc":" $1", "(.*) — LibreOffice Writer":" $1", "(.*) — LibreOffice Draw":" $1", "(.*) — LibreOffice Math":" $1", "(.*) — Alacritty":" $1", "(.*) - Chromium":" $1", "(.*) - KeePassXC":" $1", "(.*) — Dolphin":" $1" } }, // Idle inhibitor "idle_inhibitor": { "format": "{icon}", "format-icons": { "activated": "", "deactivated": "" } }, // Tray icons "tray": { "spacing": 15 }, // Clock "clock": { "format": "{0:%b %e, %Y} {0:%H:%M}", "tooltip-format": "{:%Y %B}\n{calendar}" }, // CPU "cpu": { "format": "{usage}% ", "tooltip": false }, // Memory (RAM) "memory": { "format": "{percentage}% ", "tooltip-format": "{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": "", "format-ethernet": "🖧", "tooltip-format": "{essid} | {ipaddr}", "format-linked": "{ifname} (No IP) ", "format-disconnected": "", "on-click": "nm-connection-editor" }, // NM-VPN widget "custom/nmvpn": { "format": "{}", "return-type": "json", "exec": "$HOME/.config/waybar/scripts/waybar-vpn", "interval": 10, "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-bluetooth-muted": "🔇 {icon}", "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" }, // Feishin "custom/feishin": { "format": "{}", // "tooltip-format": "{}", "return-type": "json", "interval": 5, "exec": "$HOME/.config/waybar/scripts/feishin.sh", // "exec": "playerctl --player Feishin metadata arti", // "exec-if": "[[ ! \"$(playerctl status)\" == \"No players found\" ]]", "exec-if": "pgrep feishin", "on-click":"swaymsg [class='feishin'] focus", "escape": true }, //sway profile "custom/sway-profile": { "format": " {} ", "interval": 3, "exec": "/usr/bin/sp-profile-icon", "on-click":"swaymsg exec 'sp-profiles next'" }, //sway power buttom "custom/sway-power": { "format": "  ", "on-click":"swaymsg exec 'sp-powermenu'" } }