/PrettyWaybarWorkspaces

Yet another waybar script for controlling HYPRLAND work-spaces but this time nice with icons

Primary LanguagePython

PrettyWaybarWorkspaces

Yet another waybar script for controlling HYPRLAND work-spaces but this time nice with icons

Looks:

(The first bar is the defual the second bar is the one you will have if you use my config)

image

Setup:

git clone https://github.com/IHtDzenda/PrettyWaybarWorkspaces.git
cd PrettyWaybarWorkspaces
python setup.py

Installing fonts:

Arch:
  yay -S ttf-jetbrains-mono-git	
Other:
  https://github.com/JetBrains/JetBrainsMono

Add this to the waybar config file(this creates the bar object)

"custom/betterbar":{
    "format": "{}",
    "interval": 1,        
    "on-scroll-up": "hyprctl dispatch workspace e+1",     
    "on-scroll-down": "hyprctl dispatch workspace e-1",
    "exec": "python3 ~/.config/waybar/scripts/workspaces.py -m 0", //with a number of a your monitors for me it staarts at 0 hyprctl -j clients and looking for the "monitors" string
},

Add dont forget to add it to the bar to!!!

"modules-left": ["custom/betterbar"],

⚠️ For multiple monitors

I recommend making two waybar config files and adding "output": "HDMI-A-1" to each file and replacing the monitor name in the scrtipt argument

hyprctl -j monitors | jq '.[0].name'

Features :

  • ✅ Work
  • ✅ Easy setup
  • ✅ Support for multi monitors
  • ✅ Importing config / configfile
  • ✅ Adding a config script