mylinuxforwork / dotfiles

The ML4W Dotfiles for Hyprland - An advanced and full-featured configuration for the dynamic tiling window manager Hyprland including an easy to use installation script for Arch based Linux distributions.
GNU General Public License v3.0
881 stars 67 forks source link

[FEATURE] brightness/volume notification #37

Open JumpIn-Git opened 3 months ago

JumpIn-Git commented 3 months ago

Is your feature request related to a problem? Please describe. When someone with the stock dotfiles uses the audio/brightness buttons, they can not see how much volume/brightness they have right now, where it is even worse with brightness since it isnt on the waybar (not needed)

Describe the solution you'd like I have found a very simple program, swayosd, which already gives amazing audio/brightness notfication. I reccomend swayosd-percentage-display-git in the aur, it is a modified version of swayosd wich shows the brightness/audio count

here is the script, also the script needs to be autorun without arguments so that a service can be started: https://pastebin.com/ADGjBMN1

here are the modiefied bind keys: bind = , XF86MonBrightnessUp, exec, $HYPRSCRIPTS/volume.sh brightness_higher # Increase brightness by 10% bind = , XF86MonBrightnessDown, exec, $HYPRSCRIPTS/volume.sh brightness_lower # Reduce brightness by 10% bind = , XF86AudioRaiseVolume, exec, $HYPRSCRIPTS/volume.sh volume_up # Increase volume by 5% bind = , XF86AudioLowerVolume, exec, $HYPRSCRIPTS/volume.sh volume_down # Reduce volume by 5% bind = , XF86AudioMute, exec, $HYPRSCRIPTS/volume.sh volume_mute # Toggle mute

Additional context image image image

JumpIn-Git commented 3 months ago

if laptop is selected in the script, maybe also install poweralertd, this is another software that sends dunst notifications when the battery is low, just add exec-once = poweralterd

JumpIn-Git commented 2 months ago

@mylinuxforwork what do you think of this? i added some screenshots too

JumpIn-Git commented 2 months ago

also change bind to binde, this way you can hold the button

JumpIn-Git commented 1 month ago

the version of swayosd i used has been removed... use swayosd-git

j5onrf commented 3 weeks ago

This, or ags osd like hyprpanel uses. Ags is already part of ML4W. Screenshot-2024-10-05_09:54:14