aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/pulse/system.pa
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-08-06 23:19:13 +0300
committerYaroslav <contact@yaroslavps.com>2020-08-06 23:19:13 +0300
commitb275593ce8e1ea60947cc08ef6a5c70f969cb3cd (patch)
tree5110bfb5aaa2dfbf5e681df3a9f8c75866cfb942 /dotfiles/.config/pulse/system.pa
parent9ab70dcd4d4ad4bfa62ead5abb024f6de5646fe4 (diff)
downloadswayrice-b275593ce8e1ea60947cc08ef6a5c70f969cb3cd.tar.gz
swayrice-b275593ce8e1ea60947cc08ef6a5c70f969cb3cd.zip
pulseaudio user configuration files
Added configuration files for pulseaudio to disable the annoying default behaviour of pulseaudio of remembering the previous sink for programs even after changing the outputs, which results in me having to change my output everytime I launch a program that was open in the previous output but that wasn't open when I changed the default sink. The line that changes the default behaviour is: load-module module-stream-restore restore_device=false in file ~/.config/pulse/default.pa
Diffstat (limited to 'dotfiles/.config/pulse/system.pa')
-rw-r--r--dotfiles/.config/pulse/system.pa57
1 files changed, 57 insertions, 0 deletions
diff --git a/dotfiles/.config/pulse/system.pa b/dotfiles/.config/pulse/system.pa
new file mode 100644
index 0000000..68f108e
--- /dev/null
+++ b/dotfiles/.config/pulse/system.pa
@@ -0,0 +1,57 @@
+#!/usr/bin/pulseaudio -nF
+#
+# This file is part of PulseAudio.
+#
+# PulseAudio is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# PulseAudio is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
+
+# This startup script is used only if PulseAudio is started in system
+# mode.
+
+### Automatically restore the volume of streams and devices
+load-module module-device-restore
+load-module module-stream-restore
+load-module module-card-restore
+
+### Automatically load driver modules depending on the hardware available
+.ifexists module-udev-detect.so
+load-module module-udev-detect
+.else
+### Use the static hardware detection module (for systems that lack udev/hal support)
+load-module module-detect
+.endif
+
+### Load several protocols
+.ifexists module-esound-protocol-unix.so
+load-module module-esound-protocol-unix
+.endif
+load-module module-native-protocol-unix
+
+### Automatically restore the default sink/source when changed by the user
+### during runtime
+### NOTE: This should be loaded as early as possible so that subsequent modules
+### that look up the default sink/source get the right value
+load-module module-default-device-restore
+
+### Automatically move streams to the default sink if the sink they are
+### connected to dies, similar for sources
+load-module module-rescue-streams
+
+### Make sure we always have a sink around, even if it is a null sink.
+load-module module-always-sink
+
+### Automatically suspend sinks/sources that become idle for too long
+load-module module-suspend-on-idle
+
+### Enable positioned event sounds
+load-module module-position-event-sounds