dotfiles/dot_config/waybar/config
2023-07-21 22:03:05 -04:00

103 lines
2.5 KiB
Plaintext

{
"layer": "top",
"position": "top",
"height": 24,
"modules-left": ["sway/workspaces", "custom/music"],
"modules-center": ["sway/window", "sway/mode"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "temperature#cpu", "temperature#gpu", "memory", "tray", "clock"],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}",
"format-icons": {
"1:web": "www",
"2:code": "",
"3:term": "",
"4:work": "",
"5:music": "",
"6:docs": "",
"urgent": "",
"focused": "",
"default": ""
}
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"tray": {
"icon-size": 14,
"spacing": 10
},
"clock": {
// 24hr Robot Friendly
"format": "{:%Y-%m-%d - %H:%M}",
// Human Friendly
"format-alt": "{:%A, %B %d at %I:%M %p}"
},
"cpu": {
"format": "{usage}% "
},
"temperature#cpu": {
"hwmon-path": "/sys/class/hwmon/hwmon1/temp2_input",
"critical-threshold": 70,
"format": "C: {temperatureC}°C ",
"format-alt": "C: {temperatureF}°F "
},
"temperature#gpu": {
"hwmon-path": "/sys/class/hwmon/hwmon0/temp1_input",
"critical-threshold": 70,
"format": "G: {temperatureC}°C ",
"format-alt": "G: {temperatureF}°F "
},
"memory": {
"interval": 30,
"format": "{used:0.1f}/{total:0.1f}G "
},
"network": {
// "interface": "wlp2s0", // (Optional) To force the use of this interface
"format-wifi": "{signalStrength}% ",
"format-ethernet": "{ipaddr} ",
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
"tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"format-disconnected": ""
},
"pulseaudio": {
//"scroll-step": 1,
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol"
},
"custom/music": {
"format": " {}",
"max-length": 60,
"interval": 5, // Remove this if your script is endless and write in loop
"exec": "$HOME/.config/waybar/mediaplayer.sh 2> /dev/null", // Script in resources folder
"tooltip": false,
"on-click": "playerctl play-pause",
"on-scroll-up": "playerctl previous",
"on-scroll-down": "playerctl next"
}
}