To set up WOB (Wayland Onboard) on Arch Linux with the Sway window manager, you'll need to follow a series of steps. WOB is a lightweight utility to display system information in a graphical format. Below are the steps to install and configure it, along with how to check if it's working:
Step 1: Install Dependencies
Before you install WOB, you need to make sure you have the necessary dependencies. Open a terminal and run:
sudo pacman -S sway swaybg swaylock wob
Step 2: Configure WOB
- Create a Configuration File: By default, WOB doesn't require a configuration file, but you may want to customize its appearance. Create a file called
~/.config/wob/wob.conf if you want to set custom configurations.
mkdir -p ~/.config/wob
nano ~/.config/wob/wob.conf
- Example Configuration: Here are some example settings you might include in the configuration file:
# wob.conf example
bg_color= #000000
fg_color= #FFFFFF
separator= /
Step 3: Launch WOB
You can launch WOB from your terminal directly to see if it's working. Use the following command:
wob -m volume
This command will display a volume meter. You can replace volume with other metrics based on your setup (like battery, network, etc.), depending on what WOB supports.
Step 4: Add WOB to Sway Startup
To launch WOB automatically when you start Sway, you will need to edit your Sway configuration file:
- Open your Sway configuration file, usually located at
~/.config/sway/config.
nano ~/.config/sway/config
- Add the following line towards the end of the file:
exec --no-startup-id wob -m volume
You can change volume to any other metric you want to track. This will launch WOB each time you log in to your Sway session.
Step 5: Check if WOB is Working
Once you've added WOB to your Sway startup and restarted Sway, you should be able to see the WOB display on your screen.
- If it’s working correctly, it should be visible and display real-time updates of the metric you selected (e.g., volume level).
- If it doesn’t appear, check the Sway logs for any errors by running:
swaymsg -t get_logs
Also, make sure you have all dependencies installed correctly, and confirm that your configuration file wob.conf is properly set up if you're using custom settings.
Troubleshooting
If WOB doesn't seem to be working:
- Ensure you are running Wayland and not X11.
- Check if you have the necessary permissions or if the backend services (like PulseAudio for volume) are running.
- Try running WOB directly from the terminal to see any error messages.
By following these steps, you should be able to successfully set up and check if WOB is working with Sway on Arch Linux. Enjoy your new system monitor!