feat(hyprland): add unified workbar module#5211
Open
Uts-v-Sinha wants to merge 14 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a new
hyprland/workbarmodule that combines workspace navigation and taskbar functionality into a single module.Instead of displaying workspaces and windows separately, each workspace is represented by a single pill containing the workspace number together with icons for the windows currently opened on that workspace.
The module is implemented using Waybar's native Hyprland IPC backend and does not rely on external helper scripts.
Features
Screenshots
Normal usage
Shows grouped window icons together with workspace numbers.
Multi-monitor
Visible workspaces remain highlighted even when another monitor is focused.
Drag and drop
Performance
The workbar reuses existing widgets and updates incrementally instead of rebuilding the entire interface whenever Hyprland state changes.
Motivation
The existing Hyprland modules separate workspace navigation and task management into different modules.
This module provides a more workspace-centric workflow by grouping both into a single component, reducing bar clutter while making workspace contents immediately visible.
Implementation
The workbar consists of:
The implementation avoids external scripts and shell commands by using Waybar's existing Hyprland IPC interface.
Mouse Interaction
Documentation
man/waybar-hyprland-workbar.5.scdTesting
Tested locally with: