summarylogtreecommitdiffstats
path: root/wemeet.sh
diff options
context:
space:
mode:
authorSukanka2022-06-16 18:16:44 +0800
committerSukanka2022-06-16 18:16:44 +0800
commitcefd1213fc96ae3999387e281edfcc4a25a247d4 (patch)
treeb6c941c8085a92cd14e410d08187934f4e23fb12 /wemeet.sh
parent87abf0f5f4137c890881476fa126c3e0f6a6f5fa (diff)
downloadaur-cefd1213fc96ae3999387e281edfcc4a25a247d4.tar.gz
PULSE_LATENCY_MSEC=20 only for pipwire
Diffstat (limited to 'wemeet.sh')
-rwxr-xr-xwemeet.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/wemeet.sh b/wemeet.sh
index d7e3a739309c..bf283b78de8e 100755
--- a/wemeet.sh
+++ b/wemeet.sh
@@ -3,10 +3,14 @@ export XDG_SESSION_TYPE=x11
export QT_QPA_PLATFORM=xcb
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_STYLE_OVERRIDE=fusion # 解决使用自带qt情况下,字体颜色全白看不到的问题
-export PIPEWIRE_LATENCY=256/48000 # 解决 pipewire 杂音
FONTCONFIG_DIR=$HOME/.config/fontconfig
unset WAYLAND_DISPLAY
+# if pipewire-pulse installed
+if [ -f /usr/bin/pipewire-pulse ]; then
+ export PULSE_LATENCY_MSEC=20
+fi;
+
# paste from builtin scripts
if [ $XMODIFIERS ]
then