hyprnav

A modern and customizable workspace navigation effect for Hyprland.
Description 📝
hyprnav provides smooth visual transitions when navigating between workspaces in Hyprland. It enhances the user experience by adding polished animations and optional sound effects.
Features ✨
- Beautiful and smooth visual transition effect between Hyprland workspaces
- Enable or disable optional sound for workspace transitions
- Easy configuration through YAML files
Installation 📦
1. Hyprland Configuration (Important)
Edit your hyprland.conf and add the following line:
windowrulev2 = float,class:hyprnav
2. Install
From PyPI
pip install hyprnav
uv pip install hyprnav
Arch Linux (AUR)
yay -S hyprnav
paru -S hyprnav
Usage ▶️
Start with default settings.
hyprnav
Configuration ⚙️
hyprnav automatically creates configuration files in ~/.config/hyprnav
when first run. These files include:
config.yaml
: Main configuration file
style.css
: Customizable stylesheet for the application appearance
Configuration Parameters
The config.yaml
file contains the following configurable parameters:
Main Window
main_window:
width: 450
height: 70
duration: 400
width
: Controls the horizontal size of the animation window (default: 450px)
height
: Controls the vertical size of the animation window (default: 70px)
duration
: Sets how long the transition animation plays (default: 400ms)
Sound Settings
sound:
enabled: false
file: "/path/to/your/sound/file.wav"
enabled
: Toggle sound effects on/off (default: false)
file
: Absolute path to the sound file that will play during transitions (WAV format recommended)
Customizing Appearance 🎨
You can customize the appearance of Hyprnav by editing the ~/.config/hyprnav/style.css
file. This file allows you to change colors, fonts, sizes, and other visual aspects of the application.
Default Stylesheet Elements
#MainWindow,
#centralWidget {
background-color: rgba(0, 0, 0, 0.849);
}
#fixedLabel {
color: #00ffd0;
font-size: 36px;
font-weight: bold;
font-family: "Hack Nerd Font Propo", monospace;
}
#workspaceLabel {
color: #00ffd0;
font-size: 26px;
font-family: "Hack Nerd Font Propo", monospace;
}
You can customize these elements to match your desktop theme:
- Change the background transparency by adjusting the alpha value in
rgba(0, 0, 0, 0.849)
- Modify text colors by changing the color values (e.g.,
#00ffd0
)
- Adjust font sizes and families to your preference
- Add additional CSS rules to further customize the appearance
After making changes to the stylesheet, restart Hyprnav for the changes to take effect.
License 📄
This project is licensed under the MIT License - see the LICENSE file for details.