Add volume stuff

This commit is contained in:
2023-02-25 22:39:04 +00:00
parent a34e8f1f2c
commit 46070caadc
3 changed files with 21 additions and 0 deletions

View File

@@ -35,6 +35,7 @@
pipewire = {
enable = true;
pulse.enable = true;
wireplumber.enable = true;
};
udev = {

View File

@@ -135,6 +135,10 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10
bind = $mainMod, U, movetoworkspace, -1
bind = $mainMod, I, movetoworkspace, +1
binde=, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-
bind=, XF86AudioMute, exec, wpctl set-mute -l 1.0 @DEFAULT_AUDIO_SINK@ toggle
binde=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

View File

@@ -3,6 +3,7 @@
"modules-left": ["wlr/workspaces", "hyprland/window"],
"modules-center": ["clock"],
"modules-right": [
"pulseaudio",
"network",
"battery",
"tray"
@@ -22,5 +23,20 @@
},
"clock": {
"format-alt": "{:%a, %d. %b %H:%M}"
},
"pulseaudio": {
"format": "󰕾{icon} {volume}%",
"format-muted": "",
"format-icons": {
"default": [
"󰣾",
"󰣴",
"󰣶",
"󰣸",
"󰣺"
]
},
"max-volume": 100,
"on-click": "pavucontrol"
}
}