Skip to content

Commit

Permalink
Setup audio for Sway
Browse files Browse the repository at this point in the history
  • Loading branch information
joaothallis committed Apr 14, 2024
1 parent c7e4010 commit d161d0b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .config/sway/config
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ mode "resize" {
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
#
# Audio:
#
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle

#
# Status Bar:
Expand Down
18 changes: 18 additions & 0 deletions .config/waybar/config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,30 @@
"sway/window"
],
"modules-right": [
"pulseaudio",
"battery",
"clock"
],
"sway/window": {
"max-length": 50
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"scroll-step": 1,
"on-click": "pavucontrol",
"ignored-sinks": ["Easy Effects Sink"]
},
"battery": {
"format": "{capacity}% {icon}",
"format-icons": [
Expand Down

0 comments on commit d161d0b

Please sign in to comment.