francma / wob

A lightweight overlay volume/backlight/progress/anything bar for Wayland.
ISC License
907 stars 50 forks source link

Cannot set border background or bar color with wob 0.10 #58

Closed gotchai closed 3 years ago

gotchai commented 3 years ago

Hi I am using wob under arch linux. Wob is version 0.10.

When typing for instance : $ tail -f ~/.config/wob/testwob | wob --border-color FF1793D1

Output is : 1605374475.959878 ERROR main.c:571: Border color must be a value between #00000000 and #FFFFFFFF.

with an hash on the aarrggbb color :

$ tail -f ~/.config/wob/testwob | wob --border-color #FF1793D1

Output is : wob: option '--border-color' requires an argument Usage: wob [options]

-h, --help Show help message and quit. --version Show the version number and quit. -v Increase verbosity of messages, defaults to errors and warnings only -t, --timeout Hide wob after milliseconds, defaults to WOB_DEFAULT_TIMEOUT. -m, --max <%> Define the maximum percentage, defaults to WOB_DEFAULT_MAXIMUM. -W, --width Define bar width in pixels, defaults to WOB_DEFAULT_WIDTH. -H, --height Define bar height in pixels, defaults to WOB_DEFAULT_HEIGHT. -o, --offset Define border offset in pixels, defaults to WOB_DEFAULT_BORDER_OFFSET. -b, --border Define border size in pixels, defaults to WOB_DEFAULT_BORDER_SIZE. -p, --padding Define bar padding in pixels, defaults to WOB_DEFAULT_BAR_PADDING. -a, --anchor Define anchor point; one of 'top', 'left', 'right', 'bottom', 'center' (default). May be specified multiple times. -M, --margin Define anchor margin in pixels, defaults to WOB_DEFAULT_MARGIN. -O, --output Define output to show bar on or '*' for all. If ommited, focused output is chosen. May be specified multiple times. --border-color <#argb> Define border color --background-color <#argb> Define background color --bar-color <#argb> Define bar color

I have also tested with FFFFFFFF and #FFFFFFFF same problem

Could you please check ?

francma commented 3 years ago

You need to escape # since it's also starting char of a comment in most shells. Like this:

$ tail -f ~/.config/wob/testwob | wob --border-color '#FF1793D1'
gotchai commented 3 years ago

You need to escape # since it's also starting char of a comment in most shells. Like this:

$ tail -f ~/.config/wob/testwob | wob --border-color '#FF1793D1'

Hi @francma thank you ;)