2019-10-26 20:05:31 +03:00
|
|
|
// vim: ft=jsonc
|
|
|
|
{
|
|
|
|
"layer": "bottom", // Waybar at top layer
|
|
|
|
"height": 22, // Waybar height
|
2020-04-07 13:29:13 +03:00
|
|
|
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
|
2019-10-26 20:05:31 +03:00
|
|
|
"modules-center": ["sway/window"],
|
|
|
|
"modules-right": [
|
|
|
|
"idle_inhibitor",
|
|
|
|
"pulseaudio",
|
2019-11-19 14:15:30 +02:00
|
|
|
"custom/yay",
|
2020-01-10 15:35:07 +02:00
|
|
|
"network",
|
2019-11-19 14:31:08 +02:00
|
|
|
"temperature",
|
2019-10-26 20:05:31 +03:00
|
|
|
"battery",
|
|
|
|
"clock",
|
|
|
|
"tray"
|
|
|
|
],
|
|
|
|
// Modules configuration
|
|
|
|
"sway/workspaces": {
|
|
|
|
"disable-scroll": true,
|
|
|
|
"all-outputs": true,
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"1": "",
|
|
|
|
"2": "",
|
|
|
|
"3": "",
|
|
|
|
"4": "",
|
|
|
|
"5": "",
|
|
|
|
"urgent": "",
|
|
|
|
"focused": "",
|
|
|
|
"default": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sway/mode": {
|
|
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
|
|
},
|
|
|
|
"idle_inhibitor": {
|
|
|
|
"tooltip": false,
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"activated": "",
|
|
|
|
"deactivated": ""
|
|
|
|
}
|
|
|
|
},
|
2020-01-10 15:35:07 +02:00
|
|
|
"network": {
|
|
|
|
"format": "{ifname}",
|
|
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
|
|
"format-ethernet": "{ipaddr} ",
|
|
|
|
"format-disconnected": "Disconnected ", //An empty format will hide the module.
|
|
|
|
"tooltip-format": "{ifname}",
|
|
|
|
"tooltip-format-wifi": "{ifname} {frequency}MHz ",
|
|
|
|
"tooltip-format-ethernet": "{ifname} ",
|
|
|
|
"tooltip-format-disconnected": "Disconnected"
|
|
|
|
},
|
2019-10-26 20:05:31 +03:00
|
|
|
"tray": {
|
|
|
|
// "icon-size": 21,
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
"tooltip": false,
|
2019-11-19 14:31:08 +02:00
|
|
|
"format": "{:%Y-%m-%d %H:%M} "
|
2019-10-26 20:05:31 +03:00
|
|
|
},
|
|
|
|
"cpu": {
|
|
|
|
"tooltip": false,
|
2019-11-19 14:31:08 +02:00
|
|
|
"format": "{usage}% "
|
2019-10-26 20:05:31 +03:00
|
|
|
},
|
|
|
|
"memory": {
|
|
|
|
"tooltip": false,
|
2019-11-19 14:31:08 +02:00
|
|
|
"format": "{}% "
|
2019-10-26 20:05:31 +03:00
|
|
|
},
|
|
|
|
"backlight": {
|
|
|
|
// "device": "acpi_video1",
|
|
|
|
"format": "{percent}% {icon}",
|
|
|
|
"format-icons": ["", ""]
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"tooltip": false,
|
|
|
|
"states": {
|
|
|
|
// "good": 95,
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
|
|
|
"format": "{capacity}% {icon}",
|
|
|
|
// "format-good": "", // An empty format will hide the module
|
|
|
|
// "format-full": "",
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
"battery#bat2": {
|
|
|
|
"bat": "BAT2"
|
|
|
|
},
|
|
|
|
"pulseaudio": {
|
|
|
|
"tooltip": false,
|
|
|
|
//"scroll-step": 1,
|
|
|
|
"format": "{volume}% {icon}",
|
2020-03-24 10:43:40 +02:00
|
|
|
"format-bluetooth": "{volume}% ",
|
2019-10-26 20:05:31 +03:00
|
|
|
"format-muted": "",
|
|
|
|
"format-icons": {
|
|
|
|
"headphones": "",
|
|
|
|
"handsfree": "",
|
|
|
|
"headset": "",
|
|
|
|
"phone": "",
|
|
|
|
"portable": "",
|
|
|
|
"car": "",
|
|
|
|
"default": ["", ""]
|
|
|
|
},
|
2020-03-12 18:46:18 +02:00
|
|
|
"on-click": "pamixer --toggle-mute && ( pamixer --get-mute && echo 0 > $SWAYSOCK.wob ) || pamixer --get-volume > $SWAYSOCK.wob",
|
2019-10-26 20:05:31 +03:00
|
|
|
"on-click-right": "pavucontrol",
|
2020-03-12 18:46:18 +02:00
|
|
|
"on-scroll-up": "pamixer -ui 1 && pamixer --get-volume > $SWAYSOCK.wob",
|
|
|
|
"on-scroll-down": "pamixer -ud 1 && pamixer --get-volume > $SWAYSOCK.wob"
|
2019-10-26 20:05:31 +03:00
|
|
|
},
|
2020-04-07 13:29:13 +03:00
|
|
|
"custom/media": {
|
2019-10-26 20:05:31 +03:00
|
|
|
"tooltip": false,
|
|
|
|
"format": "{}",
|
2020-04-07 13:29:13 +03:00
|
|
|
"return-type": "json",
|
|
|
|
"exec": "$HOME/Scripts/mediaplayer.py 2>/dev/null",
|
|
|
|
"max-length": 50,
|
2019-10-26 20:05:31 +03:00
|
|
|
"on-click": "playerctl play-pause",
|
|
|
|
"on-click-right": "playerctl next",
|
|
|
|
"on-scroll-up": "playerctl volume 0.05+",
|
|
|
|
"on-scroll-down": "playerctl volume 0.05-"
|
2019-11-19 14:15:30 +02:00
|
|
|
},
|
|
|
|
"custom/yay":{
|
|
|
|
"tooltip": false,
|
|
|
|
"format": "{} ",
|
|
|
|
"exec": "yay -Qu | wc -l",
|
2019-11-19 14:31:08 +02:00
|
|
|
"interval": 300,
|
2020-04-07 13:29:13 +03:00
|
|
|
"on-click": "gnome-software --mode=updates"
|
2019-11-19 14:31:08 +02:00
|
|
|
},
|
|
|
|
"temperature": {
|
|
|
|
"format": "{temperatureC}°C "
|
2019-10-26 20:05:31 +03:00
|
|
|
}
|
|
|
|
}
|