GitPedia

Hyprnotify

DBus Implementation of Freedesktop Notification spec for 'hyprctl notify'

From codelif·Updated June 12, 2026·View on GitHub·

[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] [![MIT License][license-shield]][license-url] [![Go][golang-shield]][golang-url] The project is written primarily in Go, distributed under the Apache License 2.0 license, first published in 2024. Key topics include: dbus, desktop-notifications, freedesktop, freedesktop-notifications, hyprland.

Latest release: v0.8.0
September 30, 2024View Changelog →
<!-- Improved compatibility of back to top link: See: https://github.com/othneildrew/Best-README-Template/pull/73 -->

<a name="readme-top"></a>

<!-- *** Thanks for checking out the Best-README-Template. If you have a suggestion *** that would make this better, please fork the repo and create a pull request *** or simply open an issue with the tag "enhancement". *** Don't forget to give the project a star! *** Thanks again! Now go create something AMAZING! :D --> <!-- PROJECT SHIELDS --> <!-- *** I'm using markdown "reference style" links for readability. *** Reference links are enclosed in brackets [ ] instead of parentheses ( ). *** See the bottom of this document for the declaration of the reference variables *** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use. *** https://www.markdownguide.org/basic-syntax/#reference-style-links -->

Contributors
Forks
Stargazers
Issues
MIT License
Go

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/codelif/hyprnotify"> <img src="assets/logo.png" alt="Logo" width="80" height="80"> </a> <h3 align="center">Hyprnotify</h3> <p align="center"> A DBus Implementation for 'hyprctl notify' <br /> <br /> </p> </div> <!-- TABLE OF CONTENTS --> <details> <summary>Table of Contents</summary> <ol> <li> <a href="#about-the-project">About The Project</a> </li> <li> <a href="#getting-started">Getting Started</a> <ul> <li><a href="#arch-linux">Arch Linux</a></li> <li><a href="#other-linux-distributions">Other Linux Distributions</a></li> <li><a href="#building-from-source">Building from Source</a></li> </ul> </li> <li> <a href="#usage">Usage</a> <ul> <li><a href="#command-line-arguments">Command-line arguments</a></li> <li><a href="#examples">Examples</a></li> <li><a href="#custom-hints">Custom Hints</a></li> <li><a href="#note-about-replace-id">Note about `replace-id`</a></li> </ul> </li> <li><a href="#roadmap">Roadmap</a></li> <li><a href="#contributing">Contributing</a></li> <li><a href="#license">License</a></li> <li><a href="#contact">Contact</a></li> <li><a href="#acknowledgments">Acknowledgments</a></li> </ol> </details> <!-- ABOUT THE PROJECT -->

About The Project

Hyprnotify is a Freedesktop.org compliant notification daemon implementing hyprctl notify as its backend.

<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- GETTING STARTED -->

Getting Started

To get hyprnotify you can either download the binary build by github actions. Or build it locally.

Arch Linux

hyprnotify is available on the AUR. You can install it with a AUR helper like yay.

sh
yay -S hyprnotify

NixOS

hyprnotify is available on NixOS unstable.
It is quite simple to add:

  1. Add the unstable tarball:
nix
let unstableTarball = fetchTarball https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz; in # ...
  1. Add an overlay to use unstable packages
nix
nixpkgs.config = { packageOverrides = pkgs: { unstable = import unstableTarball { config = config.nixpkgs.config; }; }; };
  1. Add unstable.hyprnotify to your environment.systemPackages

Other Linux Distributions

You can download the release binaries directly from the releases page.

Building from Source

Prerequisites

  • go compiler
  • alsa-lib or libasound for sound support
  • libnotify to send notifications with notify-send (optional)

Compiling

  1. Clone the repo and cd into it
    sh
    git clone https://github.com/codelif/hyprnotify.git cd hyprnotify
  2. Build
    sh
    go build ./cmd/hyprnotify
  3. Run the binary
    sh
    ./hyprnotify
<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- USAGE EXAMPLES -->

Usage

Execute the daemon:

sh
hyprnotify

Command-line arguments

ArgumentRemark
--font-size or -fSet custom default font size (default is 13)
--fixed-font-sizeIgnores font size hints
--no-sound or -sEnable silent mode
--helpDisplays help text

[!IMPORTANT]
It is recommended to set the Hyprland default font-family to be monospace on hyprland.conf misc section. Otherwise you may experience unusual spacing and padding. See here: https://wiki.hyprland.org/Configuring/Variables/#misc

Examples

Send a notification:

sh
notify-send "Hello, World!"

Send a notification with body text:

sh
notify-send "Chat?" "Is this real"

Add a font-size hint:

sh
notify-send "This is very big!" -h int:x-hyprnotify-font-size:40

Add an urgency hint and last for 20 seconds:

sh
notify-send "This is serious stuff!" -u critical -t 20000

Custom Hints

HintExampleRemark
x-hyprnotify-font-sizeint:x-hyprnotify-font-size:30font size for notification
x-hyprnotify-colorstring:x-hyprnotify-color:#ff30fahex color code for notif. color
x-hyprnotify-iconint:x-hyprnotify-icon:3icon identifier for notification

x-hyprnotify-icon

IDIconPreview
0WARNINGWARNING
1INFOINFO
2HINTHINT
3ERRORERROR
4CONFUSEDCONFUSED
5OKOK

Note about replace-id:

When using replace-id with notify-send

sh
notify-send --replace-id=10 "Hello"

All the notifications with IDs more than replace-id will also be deleted. (11, 12, 13...)
This is due to the inherent design of hyprctl dismissnotify. So, it is not fixable.

Due to this, it is advisable to use it to replace only the latest notification.

<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ROADMAP -->

Roadmap

  • Implement the DBus Specification
  • Replace shell command invocation with IPC
  • Hints Support:
    • urgency
    • font-size
    • color
    • icon
  • Add support for sound
    • Default sound support
    • sound hints
  • Fix race condition in CloseNotification Signal
  • Scrap the Project
<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTRIBUTING -->

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request
<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- LICENSE -->

License

Distributed under the Apache-2.0 License. See LICENSE for more information.

<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- CONTACT -->

Contact

Harsh Sharma - @codelif_ - harsh@codelif.in

Project Link: https://github.com/codelif/hyprnotify

<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- ACKNOWLEDGMENTS -->

Acknowledgments

<p align="right">(<a href="#readme-top">back to top</a>)</p> <!-- MARKDOWN LINKS & IMAGES --> <!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->

Contributors

Showing top 5 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from codelif/hyprnotify via the GitHub API.Last fetched: 6/14/2026