prasanthrangan / hyprdots

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

[Feature Request]: Use SwayOSD for volume and brightness #1738

Open TurtleMeds opened 1 month ago

TurtleMeds commented 1 month ago

Feature Request

Description

Use the swayosd-git package from the aur to make changing volume and brightness much more intuitive and feel less hacky.

Use Case

It would look much better and more polished.

Alternatives

it is also possible to make your own with something like eww or ags.

Additional Information

image image

kRHYME7 commented 1 month ago

Will this work out of the box? (I meant the colors)

rubiin commented 1 week ago

@kRHYME7 yes they do . I just tested looks nice

kRHYME7 commented 1 week ago

Unfortunately, compiling and installing swayOSD on low-end devices takes a significant amount of time. And I'm afraid would cause issues. We can add this in the optional package though

rubiin commented 1 week ago

That would be great. I personally like the design compared to what we have now. I think we can add it as optional. Once they package it for ubuntu, then we can use it from aur

kRHYME7 commented 1 week ago

I converted the binds BTW while testing


# Exec daemon
exec-once = swayosd-server

# Volume controls
#bind=,XF86AudioRaiseVolume,exec,swayosd-client --output-volume raise
#bind=,XF86AudioLowerVolume,exec,swayosd-client --output-volume lower
#bind=,XF86AudioMute,exec,swayosd-client --output-volume mute-toggle

# Source volume toggle mute
#bind=,XF86AudioMicMute,exec,swayosd-client --input-volume mute-toggle

# Custom volume values
#bind=,XF86AudioRaiseVolume,exec,swayosd-client --output-volume 15
#bind=,XF86AudioLowerVolume,exec,swayosd-client --output-volume -15

# Max volume
#bind=,XF86AudioRaiseVolume,exec,swayosd-client --output-volume raise --max-volume 120
#bind=,XF86AudioLowerVolume,exec,swayosd-client --output-volume lower --max-volume 120

# Custom volume values with device
#bind=,XF86AudioRaiseVolume,exec,swayosd-client --output-volume +10
#bind=,XF86AudioLowerVolume,exec,swayosd-client --output-volume -10

# Caps Lock
#bindr=,Lock,exec,swayosd-client --caps-lock
#bindr=,Caps_Lock,exec,swayosd-client --caps-lock

# Brightness controls
#bind=,XF86MonBrightnessUp,exec,swayosd-client --brightness raise
#bind=,XF86MonBrightnessDown,exec,swayosd-client --brightness lower

# Custom brightness values
#bind=,XF86MonBrightnessUp,exec,swayosd-client --brightness +10
#bind=,XF86MonBrightnessDown,exec,swayosd-client --brightness -10
rubiin commented 1 week ago

I did too. Few buttons like mute and volumes just to see the UI

kRHYME7 commented 1 week ago

Did you happen to make caps_lock work?

rubiin commented 1 week ago

image

@kRHYME7 works fine

TurtleMeds commented 1 week ago

Did you happen to make caps_lock work?

Works out of the box for me

rubiin commented 1 week ago

same

rubiin commented 1 week ago

@kRHYME7 I think for now we can package a build and ship with hyprdots . Generating a binary looks fairly easy, just have to copy to /usr/bin

kRHYME7 commented 1 week ago

Does their repo have the bin files? I guess we ask for feat req there and someone can make an aur pkg.

rubiin commented 6 days ago

Nah. They dont. We will have to build one ourself . Then we can host pkgbuild on aur to copy that to user bins or we can put the binary here itself for now

kRHYME7 commented 6 days ago

What's the reason for not shipping bin? Should it be compiled specifically for the system?

rubiin commented 6 days ago

yeah. They dont have done any release as far I can see. You build with cargo lol

kRHYME7 commented 6 days ago

Maybe we should try to request then. Maybe they can provide any reasons why they're not shipping a bin.

I'm using chaotic aur, still no one packages it to bin.

rubiin commented 6 days ago

https://github.com/chaotic-aur/packages/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen lets create one here for swayosd-git. We will need users upvoting for quick i guess

rubiin commented 6 days ago

@kRHYME7 @TurtleMeds created a request here, be sure to comment there so the devs can release a bin sooner https://github.com/chaotic-aur/packages/issues/3303

Then we can get going with this feature

Technetium1 commented 5 days ago

The package has been added. For as long as we provide it build logs will be available at https://builds.garudalinux.org/repos/chaotic-aur/logs/swayosd-git.log Eventually after transition to v4, logs will be available here https://aur.chaotic.cx/status