sway: port volume controls: pulse -> pipewire

This commit is contained in:
2024-03-08 09:56:15 +00:00
parent 9eaf4d71b2
commit f3568b3ffc
2 changed files with 6 additions and 6 deletions

View File

@@ -107,7 +107,6 @@ in
# "gnome.gnome-control-center" # XXX(2023/06/28): depends on webkitgtk4_1 # "gnome.gnome-control-center" # XXX(2023/06/28): depends on webkitgtk4_1
"pipewire" "pipewire"
"playerctl" # for waybar & particularly to have playerctld running "playerctl" # for waybar & particularly to have playerctld running
"pulsemixer" # for volume controls
"rofi" # menu/launcher "rofi" # menu/launcher
"rofi-snippets" "rofi-snippets"
"sane-screenshot" "sane-screenshot"
@@ -120,6 +119,7 @@ in
"unl0kr" # greeter "unl0kr" # greeter
"waybar" # used by sway config "waybar" # used by sway config
"wdisplays" # like xrandr "wdisplays" # like xrandr
"wireplumber" # used by sway config
"wl-clipboard" "wl-clipboard"
"wob" # render volume changes on-screen "wob" # render volume changes on-screen
"xdg-desktop-portal" "xdg-desktop-portal"

View File

@@ -10,11 +10,11 @@
xwayland @xwayland@ xwayland @xwayland@
set $mod @mod@ set $mod @mod@
# N.B.: volume_up/volume_down are factored out because they're potentially used by `extra_lines` down below # 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? # `@DEFAULT_AUDIO_SINK@` is interpreted by wireplumber; not nix
set $volume_up pulsemixer --change-volume +5 set $volume_up wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
set $volume_down pulsemixer --change-volume -5 set $volume_down wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
set $mute pulsemixer --toggle-mute set $mute wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
set $default_workspace_layout @workspace_layout@ set $default_workspace_layout @workspace_layout@
set $out_tv "LG Electronics LG TV 0x01010101" set $out_tv "LG Electronics LG TV 0x01010101"