waybar config for sxmo, made for notched devices
Find a file
2025-09-04 23:15:11 +02:00
img init 2025-09-04 23:15:11 +02:00
userscripts init 2025-09-04 23:15:11 +02:00
waybar init 2025-09-04 23:15:11 +02:00
README.md init 2025-09-04 23:15:11 +02:00

waybar config for sxmo

a screenshot of the bar

screenshot with overlay a screenshot of the bar, with an overlay showing notches and rounded corners of xiaomi-beryllium

the default swaybar configuration for sxmo doesn't seem to work very well with notched devices (like my poco f1), either being obstructed by the cutout, or leaving the top part of the screen unused.

this waybar config contains two bars:

  • one that is behind the notch
  • one that acts like the default swaybar

usage

  1. put the waybar config in your ~/.config/sxmo/ directory
  2. disable the built in bar, add a line for executing waybar
exec "waybar -s ~/.config/sxmo/waybar/style.css -c ~/.config/sxmo/waybar/config.jsonc"
  1. (optional, recommended) modify the statusbar hook to hide the duplicated modem, battery, state, and clock modules
  2. (optional) add the toggle_waybar.sh userscript for toggling the bar (as the default option doesn't work well with 2 bars)

additional notes

  • scripts used by the bar (modem.sh and state.sh) are based on sxmo_hook_statusbar.sh script, which is a part of sxmo-utils, which is licensed under the GNU Affero General Public License.