Open D3vil0p3r opened 1 year ago
Hi there @D3vil0p3r, thank you for discovering our repository and for reaching out with your question.
Regarding the volume control issue, I understand that the current key bindings in the ~/.config/hypr/hyprland.conf
file don't seem to work with the volume keys on your laptop keyboard, which are Fn + LeftArrow
for decreasing volume and Fn + RightArrow
for increasing it.
To address this, you can try the following steps:
playerctl
and wireplumber
(please note that I'm unsure of the exact package name for wireplumber).~/.config/hypr/hyprland.conf
file and make sure the following changes has been made:
binde=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
binde=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
binde=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bind=, XF86AudioPlay, exec, playerctl play-pause
bind=, XF86AudioPause, exec, playerctl play-pause
bind=, XF86AudioNext, exec, playerctl next
bind=, XF86AudioPrev, exec, playerctl previous
bind
keyword to create key bindings that will execute specific commands.XF86
keys are global keys on your keyboard that we can utilize for key bindings.exec
keyword indicates that a command should be executed.wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
sets the volume of the default audio sink to decrease by 5%.playerctl play-pause
is a command that controls the playback of your audio player.As for the Fn
key, it might not work as a key identifier in Linux. To determine the keycode for your Fn
key, you can use tools like wev
or xev
. Once you have the keycode, you can refer to the Hyprland wiki for configuring binds with a keycode. Here's the link to the wiki page that might assist you: Hyprland Wiki - Configuring Binds.
I hope these suggestions help you resolve the volume control issue on your laptop. Please let me know if you have any further questions or if there's anything else I can assist you with.
Best regards, @raminsamadi123
@raminsamadi123 you are so kind. Thank you for your answer.
I think the issue is related to the disabled systemctl wirepumbler or pipewire services. Indeed when I enabled them, it starts to work. I must detect which one of these two is the one to keep enabled and running. I guess wirepumbler. I will do more tests.
Hello! I'm just landed on Hyprland and I landed on this wonderful repository.
There is one aspect I don't understand about the volume up and down. The
hyperland.conf
file has the following bindkeys:and on my laptop keyboard, for increasing or decreasing the volume I must press![image](https://github.com/raminsamadi123/hyprinstall/assets/83867734/01cb6c37-3642-4f29-b1af-be84996b2e25)
Fn + LeftArrow
for decreasing the volume andFn + RightArrow
for increasing it. With the configuration above these keys don't work. This is the keyboard layout of my laptop: