coffebar / waybar-module-pacman-updates

waybar module for Arch to show system updates available
GNU General Public License v3.0
51 stars 4 forks source link

Cannot make icon appear on the left hand side #14

Open GoGoGadgetGitHub opened 1 day ago

GoGoGadgetGitHub commented 1 day ago

Describe the bug When I try to swap {} and {icon} I get an error

custom/updates: cannot switch from manual to automatic argument indexing

To Reproduce Steps to reproduce the behavior:

  1. Add module to waybar config
  2. Try to swap {} and {icon} to make the update icon appear on the left hand side

Additional context I am using a span element on the text as-well but I tested this with the icon right text left order and it worked fine.

"custom/updates": {
  "format": "{icon} <span color=\"#c2c2c2\">{}</span>",
  "return-type": "json",
  "format-icons": {
      "has-updates": "󱍷",
      "updated": "󰂪"
  },
  "exec-if": "which waybar-module-pacman-updates",
  "exec": "waybar-module-pacman-updates --interval-seconds 5 --network-interval-seconds 300"
}
coffebar commented 14 hours ago

Please try this https://github.com/Alexays/Waybar/issues/3623#issuecomment-2357239438

GoGoGadgetGitHub commented 6 hours ago

That does stop the error, but the icon doesn't show

image

image