Integration
Waybar
Example Custom Module
To use Stasis with waybar is fairly straightforward. Below is an example custom module for waybar:
Icon-based Display
"custom/stasis": {
"exec": "stasis info --json",
"format": "{icon}",
"format-icons": {
"idle_active": "",
"idle_inhibited": "",
"manually_inhibited": "",
"not_running": ""
},
"tooltip": true,
"on-click": "stasis toggle-inhibit",
"interval": 2,
"restart-interval": 2,
"return-type": "json"
}Text-based Display
Or you can just display text if you don't want icons:
"custom/stasis": {
"exec": "stasis info --json",
"format": "{text}",
"tooltip": true,
"on-click": "stasis toggle-inhibit",
"interval": 2,
"restart-interval": 2,
"return-type": "json"
}