Wob not working on sway : potential fix

Hello everyone, this is my first post on this forum.
I've been using Garuda for quite a while now, started from KDE Dr4gonized and now switched to the Sway edition.
I've been ricing for a bit and I noticed there was wob francma/wob already preconfigured for us, which is very nice but it never worked for me, even with multiple install on several other machines I own.
It's not a big of a deal since it's not breaking the system, but I was wondering why it wouldn't display any bar when changing my brightness or sound.

I noticed those lines in the ~/.config/sway/config.d/default/autostart_applications

exec mkfifo $SWAYSOCK.wob
exec tail -f $SWAYSOCK.wob | wob --border-color '#ffdcbb8c' --background-color '#cc3a3a3a' --bar-color '#ffdcbb8c'

After some little test, I got this error :

$ wob --border-color '#ffdcbb8c' --background-color '#cc3a3a3a' --bar-color '#ffdcbb8c'

wob: unrecognized option '--border-color'
Usage: wob [options]
  -c, --config <config>  Specify a config file.
  -v, --verbose          Increase verbosity of messages, defaults to errors and warnings only.
  -h, --help             Show help message and quit.
  -V, --version          Show the version number and quit.

It seems like those parameters are non valid. Probably because there was an update to the wob app after the last Garuda Linux Sway ISO and configurations.

What I did is quite simple :

  1. First, i installed wob again, just to be sure.
yay -S wob 
  1. I changed the lines under #Wob section in the ~/.config/sway/config.d/default/autostart_applications file :
# Wob
exec mkfifo $SWAYSOCK.wob
# THIS DOESN'T WORK. --border-color etc. not valid
# exec tail -f $SWAYSOCK.wob | wob --border-color '#ffdcbb8c' --background-color '#cc3a3a3a' --bar-color '#ffdcbb8c'
exec tail -f $SWAYSOCK.wob | wob

  1. Create a wob.ini file in the ~/.config/wob folder. Writting nothing in it will just make wob use its default config values, however since the person put efforts designing the default look, here is the config file using the provided colors from the commented wob command :
background_color = cc3a3a3a
bar_color = ffdcbb8c
border_color = ffdcbb8c
  1. The bar is now working as intended.

I'm not considering myself as a professional, this may maybe not be the best solution or the solution that the maintainers would do, but I wanted to share that to try to help people which may find this issue one day.

Anyway, I'm loving the Garuda Linux Sway experience, not planning to change anytime soon.

My inxi just in case :

System:
  Kernel: 6.2.11-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=9d2adb09-d115-423c-af70-010b1b205baa rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3 ibt=off
  Desktop: sway v: 1.8.1 info: waybar vt: 1 dm: greetd Distro: Garuda Linux
    base: Arch Linux
Machine:
  Type: Laptop System: HONOR product: GLO-FX6P v: M1050
    serial: <superuser required>
  Mobo: HONOR model: GLO-FX6P-PCB v: M1050 serial: <superuser required>
    UEFI: HONOR v: 1.05 date: 08/02/2022
Battery:
  ID-1: BAT1 charge: 60.3 Wh (85.2%) condition: 70.8/74.4 Wh (95.1%)
    volts: 16.3 min: 15.4 model: SUNWODA HB6683Q2EEW-41T type: Li-ion
    serial: <filter> status: discharging cycles: 34
CPU:
  Info: model: 12th Gen Intel Core i5-12500H bits: 64 type: MST AMCP
    arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
    microcode: 0x429
  Topology: cpus: 1x cores: 12 mt: 4 tpc: 2 st: 8 threads: 16 smt: enabled
    cache: L1: 1.1 MiB desc: d-8x32 KiB, 4x48 KiB; i-4x32 KiB, 8x64 KiB
    L2: 9 MiB desc: 4x1.2 MiB, 2x2 MiB L3: 18 MiB desc: 1x18 MiB
  Speed (MHz): avg: 2773 high: 3100 min/max: 400/4500:3300 scaling:
    driver: intel_pstate governor: powersave cores: 1: 500 2: 3100 3: 3100
    4: 3100 5: 3100 6: 3100 7: 3100 8: 469 9: 3100 10: 3100 11: 3100 12: 3100
    13: 3100 14: 3100 15: 3100 16: 3100 bogomips: 99532
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics driver: i915 v: kernel
    arch: Gen-12.2 process: Intel 10nm built: 2021-22+ ports: active: eDP-1
    empty: DP-1,DP-2,HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:46a6
    class-ID: 0300
  Device-2: NVIDIA GA107M [GeForce RTX 2050] driver: nouveau v: kernel
    non-free: 530.xx+ status: current (as of 2023-03) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-22 pcie: gen: 4 speed: 16 GT/s lanes: 4
    link-max: lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:25a9 class-ID: 0302
  Device-3: Quanta HD Camera type: USB driver: uvcvideo bus-ID: 3-6:2
    chip-ID: 0408:1052 class-ID: 0e02
  Display: wayland server: Xwayland v: 23.1.1 compositor: sway v: 1.8.1
    driver: gpu: i915 display-ID: 1
  Monitor-1: eDP-1 model: ChiMei InnoLux HD140ZB-01A built: 2021
    res: 2160x1440 hz: 60 dpi: 185 gamma: 1.2 scale: 1
    size: 296x197mm (11.65x7.76") diag: 356mm (14") ratio: 3:2
    modes: 2160x1440
  API: OpenGL v: 4.6 Mesa 23.0.2 renderer: Mesa Intel Graphics (ADL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio driver: snd_hda_intel
    v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8 class-ID: 0403
  API: ALSA v: k6.2.11-zen1-1-zen status: kernel-api tools: N/A
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 0.3.69 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 3-10:4 chip-ID: 8087:0026 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 476.94 GiB used: 20.08 GiB (4.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital model: WD PC
    SN810 SDCPNRY-512G-1036 size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 61503000 temp: 36.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 122.96 GiB size: 122.96 GiB (100.00%)
    used: 19.98 GiB (16.2%) fs: btrfs dev: /dev/nvme0n1p7 maj-min: 259:7
  ID-2: /boot/efi raw-size: 200 MiB size: 196 MiB (98.00%)
    used: 97.1 MiB (49.5%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 122.96 GiB size: 122.96 GiB (100.00%)
    used: 19.98 GiB (16.2%) fs: btrfs dev: /dev/nvme0n1p7 maj-min: 259:7
  ID-4: /var/log raw-size: 122.96 GiB size: 122.96 GiB (100.00%)
    used: 19.98 GiB (16.2%) fs: btrfs dev: /dev/nvme0n1p7 maj-min: 259:7
  ID-5: /var/tmp raw-size: 122.96 GiB size: 122.96 GiB (100.00%)
    used: 19.98 GiB (16.2%) fs: btrfs dev: /dev/nvme0n1p7 maj-min: 259:7
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 15.35 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 42.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 379 Uptime: 4m wakeups: 21400 Memory: 15.35 GiB
  used: 2.26 GiB (14.7%) Init: systemd v: 253 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 Packages: pm: pacman pkgs: 1330
  libs: 341 tools: pamac,paru Shell: fish v: 3.6.1 default: Bash v: 5.1.16
  running-in: alacritty inxi: 3.3.26
Garuda (2.6.16-1):
  System install date:     2023-04-16
  Last full system update: 2023-04-18
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:            cava.service
5 Likes