sway: port volume controls: pulse -> pipewire
This commit is contained in:
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
Reference in New Issue
Block a user