112 lines
3.1 KiB
Text
112 lines
3.1 KiB
Text
|
//
|
||
|
// ~/.config/waybar/config
|
||
|
//
|
||
|
|
||
|
[{
|
||
|
"position": "bottom", // Waybar position (top|bottom|left|right)
|
||
|
"height": 30, // Waybar height (to be removed for auto height)
|
||
|
"spacing": 4, // Gaps between modules (4px)
|
||
|
|
||
|
"modules-left": ["sway/workspaces", "custom/media"],
|
||
|
"modules-right": ["idle_inhibitor", "cpu", "memory", "temperature", "pulseaudio", "battery", "clock", "tray"],
|
||
|
|
||
|
"ipc": true,
|
||
|
|
||
|
"sway/workspaces": {
|
||
|
"disable-scroll": true,
|
||
|
"all-outputs": true,
|
||
|
"format": "{icon}{name}",
|
||
|
"format-icons": {
|
||
|
"urgent": " ",
|
||
|
"default": "" // Prevent showing workspace name literal.
|
||
|
}
|
||
|
},
|
||
|
"idle_inhibitor": {
|
||
|
"format": "Prohibit idle {icon}",
|
||
|
"format-icons": {
|
||
|
"activated": "",
|
||
|
"deactivated": ""
|
||
|
},
|
||
|
"tooltip": false
|
||
|
},
|
||
|
"tray": {
|
||
|
// "icon-size": 21,
|
||
|
"spacing": 10
|
||
|
},
|
||
|
"clock": {
|
||
|
"timezone": "Europe/Brussels",
|
||
|
"format": "<big>{:%H:%M %d/%m%Y}</big>", //"<big>{:%H:%M}</big>\n21-03-2022", //\n{:%d/%m/%Y}",
|
||
|
"format-alt": "{:%H:%M}",
|
||
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||
|
},
|
||
|
"cpu": {
|
||
|
"format": "{usage}% ",
|
||
|
"tooltip": true
|
||
|
},
|
||
|
"memory": {
|
||
|
"format": "{}% ",
|
||
|
"on-click": "alacritty | htop"
|
||
|
},
|
||
|
"temperature": {
|
||
|
"critical-threshold": 70,
|
||
|
// "format-critical": "{temperatureC}°C {icon}",
|
||
|
"format": "{temperatureC}°C {icon}",
|
||
|
"format-icons": ["", "", ""]
|
||
|
},
|
||
|
"backlight": {
|
||
|
"format": "{percent}% {icon}",
|
||
|
"format-icons": ["", ""]
|
||
|
},
|
||
|
"battery": {
|
||
|
"states": {
|
||
|
"warning": 30,
|
||
|
"critical": 15
|
||
|
},
|
||
|
"format": "{capacity}% {icon}",
|
||
|
"format-charging": "{capacity}% ",
|
||
|
"format-plugged": "{capacity}% ",
|
||
|
"format-alt": "{time} {icon}",
|
||
|
// "format-good": "", // An empty format will hide the module
|
||
|
// "format-full": "",
|
||
|
"format-icons": ["", "", "", "", ""]
|
||
|
},
|
||
|
"pulseaudio": {
|
||
|
"scroll-step": 2,
|
||
|
"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": " ",
|
||
|
"hands-free": "",
|
||
|
"headset": "",
|
||
|
"phone": "",
|
||
|
"portable": "",
|
||
|
"car": "",
|
||
|
"default": ["", "", ""]
|
||
|
},
|
||
|
"on-click": "playerctl play-pause"
|
||
|
},
|
||
|
"custom/media": {
|
||
|
"format": "{icon} {}",
|
||
|
"return-type": "json",
|
||
|
"max-length": 40,
|
||
|
"format-icons": {
|
||
|
"spotify": "",
|
||
|
"default": "🎜"
|
||
|
},
|
||
|
"escape": true,
|
||
|
"exec": "~/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||
|
// "exec": "~/.config/waybar/mediaplayer.py --player spotify //2> /dev/null" // Filter player based on name
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"position": "top",
|
||
|
"height": 20,
|
||
|
"modules-left": ["sway/mode"],
|
||
|
"modules-center": ["sway/window"]
|
||
|
}]
|
||
|
|