Comments (4)
Systray icons are probably better to be in their own repo. Windows notifications currently use good library that can be used for that github.com/tadvi/systray.
For Linux, I don't think it is possible without CGO, usually, GTK+ or Qt is used there. I know there is pure/native lib for X11 https://github.com/BurntSushi/xgb, but not sure if that alone is enough to implement that, probably is, but for older standard.
And again, for macOS probably not possible without CGO.
from beeep.
Here is a solution in C https://stackoverflow.com/a/45406723 which could be translated to xgb with Xembed(?) without the need for cgo.
Specs:
https://specifications.freedesktop.org/systemtray-spec/systemtray-spec-0.3.html (old)
https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/ (new) - this probably only needs dbus
from beeep.
Xembed is here https://standards.freedesktop.org/xembed-spec/xembed-spec-latest.html, but not sure how is used in relation to systemtray-spec-0.3. It looks like that can work, in theory at least, together with StatusNotifier support and dbus.
Usually, you want to add some menu to tray icon, and then you will need some toolkit, or at least to draw controls with plain X, something like that. But just handling mouse events can also be useful I think.
from beeep.
Ok sounds good, I was going to research it to see how possible it was, but this makes sense.
Thanks for the great repo!
from beeep.
Related Issues (20)
- Support for supplying image-data as a blob HOT 3
- Blink icon app notification HOT 4
- Allow for notifications from any user on Linux HOT 6
- Clicking the notification opens AppleScript editor HOT 3
- Go module support? HOT 1
- `title` and `message` not escaped when using AppleScript on macOS HOT 3
- Icon not displayed HOT 3
- Macos icon HOT 2
- Use terminal-notifier or alerter when available HOT 4
- How to use icon on macOS ? HOT 1
- Support for *BSD (e.g: FreeBSD) HOT 22
- go install support HOT 3
- Alert() `title` and `message` not escaped when using AppleScript on macOS HOT 2
- Windows 11 support? HOT 7
- allow for passing in applicationID
- Support for notification urgency HOT 2
- Support for closing notifications HOT 3
- The terminal is cleared on Windows 11 when sending a notification HOT 4
- Window 7 does not automatically close the system tray icon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beeep.