this post was submitted on 15 Jun 2023
2 points (100.0% liked)

Unixporn

15359 readers
3 users here now

Unixporn

Submit screenshots of all your *NIX desktops, themes, and nifty configurations, or submit anything else that will make themers happy. Maybe a server running on an Amiga, or a Thinkpad signed by Bjarne Stroustrup? Show the world how pretty your computer can be!

Rules

  1. Post On-Topic
  2. No Defaults
  3. Busy Screenshots
  4. Use High-Quality Images
  5. Include a Details Comment
  6. No NSFW
  7. No Racism or use of racist terms

founded 5 years ago
MODERATORS
2
EWW notifications (lemmy.world)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

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.

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

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

[–] [email protected] 0 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

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 updating the date every hour and the variable EWW_TIME alongside the function format_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.

  • Variables that you update manually like volume and brightness don't 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)