EWW notifications

Hi lemmings, I trying to do a port of my current rice to eww to reduce dependencies, got my status bar done as well as the powermenu the only thing left was notifications that I din't even implement in my current setup, what's the notification deamon you are using and how do you integrate it with other apps in my case would be just opening a window.

8 points · 6 comments · view on lemmy.world

6 Comments

siph@lemmy.ml · 3 pts · 3y

I use dunst on X but it works on wayland too. It just listens to dbus and should be trivial to get set up.

Kurumatron@lemmy.world · 0 pts · 3y (4 replies)

Do you know of any good guide/tutorial on how to use eww? I tried with the official documentation but I couldn't understand it

ransomwarelettuce@lemmy.world · 2 pts · 3y (3 replies)

Yeah the documentation is quite lacking, some examples would be useful, but if you go to their repo along side the examples they list there a tutorial to make a power menu that does a good introduction.

Some tips I found along the way

  • The way most people calculate time is inefficient AF, they calculate it using the date command updating every 2 s or so. When you could use the date command to update the date itself,every hou, and use and the variable EWW_TIME alongside the function format_time to update the time.

To be fair I don't blame them, idk why there is not such example in the wiki to begin with.

  • The workspaces are a bit hard to do, but you can just copy someone implementation or if you are using hyprland they provide it in the

  • Define colours on a separe scss file to change themes on the fly if you want so.

  • For Variables that you update manually like volume and brightness do a polling function (checking every x sec), just go to the shortcut you defined previously ( assuming you are using a wm ) and along side the command to change the volume/brightness run eww update x=$(command to get current value)

Kurumatron@lemmy.world · 1 pts · 3y (2 replies)

I'm going to browse the webarchive later and try to find some dotfiles and try to use them as reference, last time it didn't go so well and eww kept crashing. I remeber finding some that were beautiful

ransomwarelettuce@lemmy.world · 2 pts · 3y (1 reply)

Yeah I just copied my waybar, but there are guys out there that go nuts with with.

Kurumatron@lemmy.world · 0 pts · 3y

Yeah, I did the same with my waybar but now I don't like it because I put a lot of stuff in it and I want to start again with hyprland