wlrotation: fix nerd font icon

This commit is contained in:
Ludwig Behm 2023-11-10 16:51:07 +01:00
parent 53de1b524a
commit bbc26c263c
Signed by: l.behm
GPG key ID: D344835D63B89384

View file

@ -29,7 +29,7 @@ class Module(core.module.Module):
name = display['name'] name = display['name']
widget = self.widget(name) widget = self.widget(name)
if not widget: if not widget:
widget = self.add_widget(name=name, full_text=" "+name) widget = self.add_widget(name=name, full_text="󰑵 "+name)
widget.set("auto", util.cli.execute("systemctl --user show %s -p ActiveState" % self.service).split("\n")[0].split("=")[1]) widget.set("auto", util.cli.execute("systemctl --user show %s -p ActiveState" % self.service).split("\n")[0].split("=")[1])
core.input.register(widget, button=core.input.LEFT_MOUSE, cmd=self._toggle) core.input.register(widget, button=core.input.LEFT_MOUSE, cmd=self._toggle)
core.input.register(widget, button=core.input.RIGHT_MOUSE, cmd=self._toggle_auto) core.input.register(widget, button=core.input.RIGHT_MOUSE, cmd=self._toggle_auto)