2024-07-18 13:23:54 +02:00
|
|
|
// {{ ansible_managed }}
|
|
|
|
{
|
|
|
|
"layer": "top", // Waybar at top layer
|
|
|
|
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
|
|
|
"height": 30, // Waybar height (to be removed for auto height)
|
|
|
|
// "width": 1280, // Waybar width
|
|
|
|
"spacing": 4, // Gaps between modules (4px)
|
|
|
|
// Choose the order of the modules
|
2024-07-23 22:07:05 +02:00
|
|
|
"modules-left": {{ sway__waybar_modules_left | tojson }},
|
|
|
|
"modules-center": {{ sway__waybar_modules_center | tojson }},
|
2024-07-22 14:36:03 +02:00
|
|
|
"modules-right": {{ sway__waybar_modules_right | tojson }},
|
2024-07-18 13:23:54 +02:00
|
|
|
// Modules configuration
|
|
|
|
"sway/workspaces": {
|
|
|
|
"disable-scroll": false,
|
|
|
|
"all-outputs": true,
|
|
|
|
"format": " {icon} ",
|
|
|
|
},
|
|
|
|
"keyboard-state": {
|
|
|
|
"numlock": true,
|
|
|
|
"capslock": true,
|
|
|
|
"format": "{name} {icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"locked": "",
|
|
|
|
"unlocked": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sway/mode": {
|
|
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
|
|
},
|
|
|
|
"sway/scratchpad": {
|
|
|
|
"format": "{icon} {count}",
|
|
|
|
"show-empty": false,
|
|
|
|
"format-icons": ["", ""],
|
|
|
|
"tooltip": true,
|
|
|
|
"tooltip-format": "{app}: {title}"
|
|
|
|
},
|
|
|
|
"mpd": {
|
|
|
|
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
|
|
|
"format-disconnected": "Disconnected ",
|
|
|
|
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
|
|
|
"unknown-tag": "N/A",
|
|
|
|
"interval": 2,
|
|
|
|
"consume-icons": {
|
|
|
|
"on": " "
|
|
|
|
},
|
|
|
|
"random-icons": {
|
|
|
|
"off": "<span color=\"#f53c3c\"></span> ",
|
|
|
|
"on": " "
|
|
|
|
},
|
|
|
|
"repeat-icons": {
|
|
|
|
"on": " "
|
|
|
|
},
|
|
|
|
"single-icons": {
|
|
|
|
"on": "1 "
|
|
|
|
},
|
|
|
|
"state-icons": {
|
|
|
|
"paused": "",
|
|
|
|
"playing": ""
|
|
|
|
},
|
|
|
|
"tooltip-format": "MPD (connected)",
|
|
|
|
"tooltip-format-disconnected": "MPD (disconnected)"
|
|
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"activated": "",
|
|
|
|
"deactivated": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
// "icon-size": 21,
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
// "timezone": "America/New_York",
|
|
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
|
|
"format-alt": "{:%Y-%m-%d %H:%M %Z}"
|
|
|
|
},
|
2024-07-23 22:07:05 +02:00
|
|
|
"disk": {
|
|
|
|
"interval": 30,
|
|
|
|
"format": "{path}: {percentage_used}%",
|
|
|
|
"format-alt": "{used}/{total}",
|
|
|
|
"path": "/"
|
|
|
|
},
|
|
|
|
"sway/language": {
|
|
|
|
"format": "{shortDescription}",
|
|
|
|
"tooltip-format": "{long} {variant}",
|
|
|
|
"on-click": "swaymsg input type:keyboard xkb_switch_layout next",
|
|
|
|
"on-click-right": "gnome-control-center region"
|
|
|
|
},
|
2024-07-18 13:23:54 +02:00
|
|
|
"cpu": {
|
|
|
|
"format": "{usage}% ",
|
|
|
|
"tooltip": false
|
|
|
|
},
|
|
|
|
"memory": {
|
|
|
|
"format": "{}% "
|
|
|
|
},
|
|
|
|
"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": {
|
|
|
|
// "device": "acpi_video1",
|
|
|
|
"format": "{percent}% 🖵",
|
2024-07-23 22:23:11 +02:00
|
|
|
"on-scroll-up": "{{ sway__waybar_light_up }}",
|
|
|
|
"on-scroll-down": "{{ sway__waybar_light_down }}"
|
2024-07-18 13:23:54 +02:00
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
// "good": 95,
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
|
|
|
"format": "{capacity}% {icon}",
|
2024-07-23 22:07:05 +02:00
|
|
|
"format-charging": "{capacity}% 🗲",
|
2024-07-18 13:23:54 +02:00
|
|
|
"format-plugged": "{capacity}% ",
|
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
// "format-good": "", // An empty format will hide the module
|
|
|
|
// "format-full": "",
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
"battery#bat2": {
|
|
|
|
"bat": "BAT2"
|
|
|
|
},
|
|
|
|
"network": {
|
|
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
2024-07-23 22:07:05 +02:00
|
|
|
"format-ethernet": "{ipaddr}/{cidr} 🖧",
|
|
|
|
"tooltip-format": "{ifname} via {gwaddr} 🔗",
|
|
|
|
"format-linked": "{ifname} (No IP) ⛒",
|
2024-07-18 13:23:54 +02:00
|
|
|
"format-disconnected": "Disconnected ⚠",
|
2024-07-23 22:07:05 +02:00
|
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
2024-07-31 16:52:52 +02:00
|
|
|
"on-click": "gnome-control-center network",
|
|
|
|
"on-click-right": "gnome-control-center wifi"
|
2024-07-18 13:23:54 +02:00
|
|
|
},
|
|
|
|
"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": "",
|
2024-07-23 22:07:05 +02:00
|
|
|
"hands-free": "🤙",
|
|
|
|
"headset": "🎧",
|
2024-07-18 13:23:54 +02:00
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
|
|
|
"default": ["", "", ""]
|
|
|
|
},
|
2024-07-31 16:52:52 +02:00
|
|
|
"on-click": "pavucontrol",
|
|
|
|
"on-click-right": "qpwgraph"
|
2024-07-18 13:23:54 +02:00
|
|
|
},
|
2024-07-22 14:36:03 +02:00
|
|
|
"custom/weather": {
|
|
|
|
"format": "{}",
|
|
|
|
"tooltip": true,
|
2024-07-22 14:48:28 +02:00
|
|
|
"interval": 300,
|
2024-07-22 14:36:03 +02:00
|
|
|
"exec": "{{ swayusr.home }}/.config/waybar/wttr.py",
|
2024-07-31 16:52:52 +02:00
|
|
|
"return-type": "json",
|
|
|
|
"on-click-middle": "gnome-weather"
|
2024-07-22 14:36:03 +02:00
|
|
|
},
|
2024-07-23 22:07:05 +02:00
|
|
|
"custom/power": {
|
|
|
|
"format": "",
|
|
|
|
"on-click": "wlogout",
|
|
|
|
"tooltip": false
|
2024-07-31 16:11:08 +02:00
|
|
|
},
|
|
|
|
"custom/ping": {
|
|
|
|
"format": "{}",
|
|
|
|
"exec": "{{ swayusr.home }}/.config/waybar/ping.py",
|
|
|
|
"interval": 60,
|
|
|
|
"return-type": "json"
|
2024-07-23 22:07:05 +02:00
|
|
|
}
|
2024-07-18 13:23:54 +02:00
|
|
|
}
|
|
|
|
|