~yerinalexey/dotfiles

20b0116338390bea184186cee4d7b32a279155bd — Alexey Yerin 8 months ago 9ba6eb0
Updates for pipewire
2 files changed, 6 insertions(+), 1 deletions(-)

M river/init
M scripts/update-volume
M river/init => river/init +5 -0
@@ 136,3 136,8 @@ start_wob
pgrep rivertile >/dev/null \
	|| riverctl spawn 'rivertile -main-location left -view-padding 0 -outer-padding 0'
riverctl default-layout rivertile

dbus-update-activation-environment WAYLAND_DISPLAY \
	XDG_CURRENT_DESKTOP=sway XDG_SESSION_DESKTOP=sway
/usr/libexec/pipewire-launcher
/usr/libexec/xdg-desktop-portal-wlr -r

M scripts/update-volume => scripts/update-volume +1 -1
@@ 13,5 13,5 @@ case "$1" in
	;;
esac

newvol="$(amixer sget Master | grep "Mono:" | sed -E 's/^.*\[(\d+)%\].*$/\1/')"
newvol="$(amixer sget Master | grep "Front Left:" | sed -E 's/^.*\[(\d+)%\].*$/\1/')"
printf "%s\n" "$newvol" >> /tmp/wob-in