prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland
GNU General Public License v3.0
5.6k stars 683 forks source link

[Feature Request]: Equivalent for Windows 11's action center? #1023

Open Haraven opened 4 months ago

Haraven commented 4 months ago

Feature Request

Description

A feature I've been looking for is having one unitary menu which opens up when I press the Waybar icons for: speaker, microphone, brightness, battery, wifi or bluetooth. In my opinion, this helps manage those settings a bit easier, since it's all in one place.

Use Case

For me this would be useful to have since it gives you one single entry point for managing the most common settings for your device. Currently, you rely on keyboard shortcuts and/or separate menus for each setting. This is of course very practical and it offers a clear separation of concerns.

But there's something to be said about having a simple menu where you can enable/disable wifi and bluetooth, or adjust speaker and microphone volumes, or see battery % and adjust brightness accordingly. All of these are individual use cases that for me make sense as a way of grouping settings together.

Proposed Solution

I don't have a tehnical solution in mind, but my proposal is to have something like Windows 11's Action Center: w11-example

or like SwayNC's configs (example taken from here): swaync-example

Alternatives

I've considered switching from Dunst to SwayNC just to get that action center, but many of Hyprdots' scripts seem to rely on sending Dunst notifications.

To address that, I've considered refactoring the scripts and using a generic notification script that picks between Dunst, SwayNC or Mako depending on what's available, but it's clearly a time investment.

I've also considered trying to write an action center like that from scratch, but that's even more of a time investment.

Haraven commented 4 months ago

Update: after seeing this Reddit post, it seems that Waybar and Eww can be used together. You can create a widget that acts as an Action Center using Eww and open it via waybar icon click.

I'll try my luck at implementing this based on the code from the Reddit OP's dotfiles.

DiegoSof2 commented 4 months ago

I believe this is in the project plans using Eww

Skerse commented 3 months ago

Yeah, the simplest thing we can do to get close to that is to use swaync, and waybar doesn't have anything close to that. Obviously eww, or ags which i think is better, can do that style and functionality pretty much exactly, but the config language is definitely not easy to write and implement.

Haraven commented 3 months ago

I hit a roadblock with Eww as it doesn't seem to play well with multiple monitors on Wayland. I can't get the widget to open on the monitor that my mouse is on.

From what I read from their docs, Eww's config language, yuck, doesn't play well with Wayland. On X11 the widget can autodetect the monitor if its monitor setting is ommitted, but on Wayland you have to specify it, and there doesn't seem to be an option like "monitor on which my mouse is currently on".

I've asked on their GitHub's discussion forum about it, but I got no answer.

SwayNC is starting to look like the only option for now, at least for my dual monitor setup.

prasanthrangan commented 3 months ago

I've considered switching from Dunst to SwayNC just to get that action center, but many of Hyprdots' scripts seem to rely on sending Dunst notifications.

To address that, I've considered refactoring the scripts and using a generic notification script that picks between Dunst, SwayNC or Mako depending on what's available, but it's clearly a time investment.

I did want to replace dunst with swayNC, but was a bit lazy to refactor the scripts... I'll do it now :)

Haraven commented 3 months ago

Thank you very much!

prasanthrangan commented 3 months ago

Obviously eww, or ags which i think is better, can do that style and functionality pretty much exactly, but the config language is definitely not easy to write and implement.

I've no clue how eww and ags works... I just want something simple and modular that can be modified or generated on the fly, here is my rough concept UI that I have in mind for action center -

image

I do want multiple styles like this to switch between...

noahfraiture commented 3 months ago

Are ags and eww in plans?

Skerse commented 3 months ago

Are ags and eww in plans?

I mean, this has kind of just been sitting here, but it exists: https://github.com/users/prasanthrangan/projects/1?pane=issue&itemId=37812508

its-19818942118 commented 2 months ago

Obviously eww, or ags which i think is better, can do that style and functionality pretty much exactly, but the config language is definitely not easy to write and implement.

I've no clue how eww and ags works... I just want something simple and modular that can be modified or generated on the fly, here is my rough concept UI that I have in mind for action center -

image

I do want multiple styles like this to switch between...

But I gotta say @prasanthrangan your waybar is very nice and gotta say the action center is fire

its-19818942118 commented 2 months ago

So is the plan for eww of swaync? Well sway NC is customizability is top notch. It's really flexible I didn't mess around with it . And dunst is kinda a har to configure in my opinion. And there is eww which frankly I have never used.soo what is the plan currently? https://github.com/ErikReider/SwayNotificationCenter/discussions/183

Gl00ria commented 2 months ago

Hi @prasanthrangan @Haraven @Skerse I made the theming for Swaync ready for all the themes I could found for HyDE (official & non-offcial). My first time playing with .css hope you like it.

Official themes:

Catppuccin Latte:

catppuccin_latte

Catppuccin Mocha:

catppuccin_mocha

Decay Green:

decay_green

Edge Runner:

edge_runner

Frosted Glass:

forsted_glass

Graphite Mono:

graphite_mono

Gruvbox Retro:

gruvbox_retro

Material Sakura:

material_sakura

Nordic Blue:

nordic_blue

Rose Pine:

rose_pine

Synth Wave:

synth_wave

Tokyo Night:

tokyo_night

Non Official:

Hack The Box:

htb

Windows 11:

win_11

One Dark:

one_dark

MacOS:

mac

If this is acceptable I would love to submit a PR but I need a couple of things to know:

  1. What font you want to be used?
  2. What is the height & width standard you want? I have a big screen, so I couldn't decide :(
  3. What are the functionality you want for each button?
  4. How to edit the scripts to switch the theme correctly?
its-19818942118 commented 2 months ago

Hi @prasanthrangan @Haraven @Skerse I made the theming for Swaync ready for all the themes I could found for HyDE (official & non-offcial). My first time playing with .css hope you like it.

Official themes:

Catppuccin Latte:

catppuccin_latte

Catppuccin Mocha:

catppuccin_mocha

Decay Green:

decay_green

Edge Runner:

edge_runner

Frosted Glass:

forsted_glass

Graphite Mono:

graphite_mono

Gruvbox Retro:

gruvbox_retro

Material Sakura:

material_sakura

Nordic Blue:

nordic_blue

Rose Pine:

rose_pine

Synth Wave:

synth_wave

Tokyo Night:

tokyo_night

Non Official:

Hack The Box:

htb

Windows 11:

win_11

One Dark:

one_dark

MacOS:

mac

If this is acceptable I would love to submit a PR but I need a couple of things to know:

  1. What font you want to be used?
  2. What is the height & width standard you want? I have a big screen, so I couldn't decide :(
  3. What are the functionality you want for each button?
  4. How to edit the scripts to switch the theme correctly?

Holy moly this is fire Looks super clean and nifty at the same time. I think a don't like caskaydia code but with nerd fonts. And I think added functionality like brightness control or sound control or sound mixer would be fire. Also night mode with yellow screen. Cuz I use it all the time soo. Also for height and width I think ability to toggle between long and short would be cool. But hands down this nice. Got the asthetics to it :). Good work 👍

noahfraiture commented 2 months ago

Wow, we need a PR for this. This is great (Please before my full reset in a month?)

kRHYME7 commented 2 months ago

@Gl00ria Long time no see! What a beauty 😍. PR please 🥺

prasanthrangan commented 2 months ago

Hey @Gl00ria , its been a while... and this looks dope! Please do a PR or I'll create a new branch for this if you guys are ok with that??

mahaveergurjar commented 2 months ago

It's awesome but i like the layout that @prasanthrangan send but this feature come in this repo than layout also improve in future 😃

Gl00ria commented 2 months ago

Hey @Gl00ria , its been a while... and this looks dope! Please do a PR or I'll create a new branch for this if you guys are ok with that??

Hello, Yeah I came with surprises lol. The PR's made regrading the SwayNC

Da4ndo commented 2 weeks ago

Are they putting this into practice now? Can I switch utilizing swaync instead of dunst now, or is it still not possible?

kRHYME7 commented 2 weeks ago

not yet