Cleaned the file a bit, added disk

This commit is contained in:
Tibo De Peuter 2022-04-22 22:02:11 +02:00
parent f8b6378c3f
commit d02943669b
2 changed files with 50 additions and 48 deletions

View file

@ -4,11 +4,11 @@
[{ [{
"position": "bottom", // Waybar position (top|bottom|left|right) "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height) "height": 30,
"spacing": 4, // Gaps between modules (4px) "spacing": 4,
"modules-left": ["sway/workspaces", "custom/media"], "modules-left": ["sway/workspaces", "custom/media"],
"modules-right": ["idle_inhibitor", "cpu", "memory", "temperature", "pulseaudio", "battery", "clock", "tray"], "modules-right": ["idle_inhibitor", "cpu", "memory", "disk", "temperature", "pulseaudio", "battery", "clock", "tray"],
"ipc": true, "ipc": true,
@ -19,56 +19,46 @@
"format-icons": { "format-icons": {
"urgent": " ", "urgent": " ",
"default": "" // Prevent showing workspace name literal. "default": "" // Prevent showing workspace name literal.
}
}, },
},
"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
},
"idle_inhibitor": { "idle_inhibitor": {
"format": "Prohibit idle {icon}", "format": "Prohibit idle {icon}",
"format-icons": { "format-icons": {
"activated": "", "activated": "",
"deactivated": "" "deactivated": ""
}, },
"tooltip": false "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": { "cpu": {
"format": "{usage}% ", "format": "{usage}% ",
"tooltip": true "tooltip": true,
}, },
"memory": { "memory": {
"format": "{}% ", "format": "{}% ",
"on-click": "alacritty | htop" },
"disk": {
"interval": 30,
"format": "{percentage_free}% ({free}) 💾",
"path": "/",
}, },
"temperature": { "temperature": {
"critical-threshold": 70, "critical-threshold": 70,
// "format-critical": "{temperatureC}°C {icon}", // "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""] "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": { "pulseaudio": {
"scroll-step": 2, "scroll-step": 2,
@ -87,21 +77,33 @@
"car": "", "car": "",
"default": ["", "", ""] "default": ["", "", ""]
}, },
"on-click": "playerctl play-pause" "on-click": "playerctl play-pause",
}, },
"custom/media": { "battery": {
"format": "{icon} {}", "states": {
"return-type": "json", "warning": 30,
"max-length": 40, "critical": 15
"format-icons": {
"spotify": "",
"default": "🎜"
}, },
"escape": true, "format": "{capacity}% {icon}",
"exec": "~/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder "format-charging": "{capacity}% ",
// "exec": "~/.config/waybar/mediaplayer.py --player spotify //2> /dev/null" // Filter player based on name "format-plugged": "{capacity}% ",
} "format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""],
}, },
"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>",
},
"tray": {
// "icon-size": 21,
"spacing": 10,
},
},
{ {
"position": "top", "position": "top",
"height": 20, "height": 20,