sway: port volume controls: pulse -> pipewire
This commit is contained in:
parent
9eaf4d71b2
commit
f3568b3ffc
|
@ -107,7 +107,6 @@ in
|
|||
# "gnome.gnome-control-center" # XXX(2023/06/28): depends on webkitgtk4_1
|
||||
"pipewire"
|
||||
"playerctl" # for waybar & particularly to have playerctld running
|
||||
"pulsemixer" # for volume controls
|
||||
"rofi" # menu/launcher
|
||||
"rofi-snippets"
|
||||
"sane-screenshot"
|
||||
|
@ -120,6 +119,7 @@ in
|
|||
"unl0kr" # greeter
|
||||
"waybar" # used by sway config
|
||||
"wdisplays" # like xrandr
|
||||
"wireplumber" # used by sway config
|
||||
"wl-clipboard"
|
||||
"wob" # render volume changes on-screen
|
||||
"xdg-desktop-portal"
|
||||
|
|
|
@ -10,11 +10,11 @@
|
|||
xwayland @xwayland@
|
||||
|
||||
set $mod @mod@
|
||||
# N.B.: volume_up/volume_down are factored out because they're potentially used by `extra_lines` down below
|
||||
# TODO: use native pipewire controls instead of pulsemixer?
|
||||
set $volume_up pulsemixer --change-volume +5
|
||||
set $volume_down pulsemixer --change-volume -5
|
||||
set $mute pulsemixer --toggle-mute
|
||||
# N.B.: volume_up/volume_down are factored out because they're potentially used by `extra_lines` down below.
|
||||
# `@DEFAULT_AUDIO_SINK@` is interpreted by wireplumber; not nix
|
||||
set $volume_up wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
||||
set $volume_down wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
set $mute wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
set $default_workspace_layout @workspace_layout@
|
||||
|
||||
set $out_tv "LG Electronics LG TV 0x01010101"
|
||||
|
|
Loading…
Reference in New Issue
Block a user