aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc-linux-desktop
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2023-11-29 21:20:34 -0700
committerkatherine <ageha@airen-no-jikken.icu>2023-11-29 21:20:34 -0700
commitf79ef7b8fa4d7cbcdcd2428da49d9f0d31d97e55 (patch)
treed81b291d34a4910f234c40fcd5bc23c956438b3f /.zshrc-linux-desktop
parent2f75bcb11099068c30bf9ce6a22860db86457709 (diff)
downloaddotfiles-f79ef7b8fa4d7cbcdcd2428da49d9f0d31d97e55.tar.gz
create-pulse-sink function
Diffstat (limited to '.zshrc-linux-desktop')
-rw-r--r--.zshrc-linux-desktop7
1 files changed, 7 insertions, 0 deletions
diff --git a/.zshrc-linux-desktop b/.zshrc-linux-desktop
index 58448fe..bf7f6eb 100644
--- a/.zshrc-linux-desktop
+++ b/.zshrc-linux-desktop
@@ -36,3 +36,10 @@ eumount() {
[[ -d $HOME/enc ]] && rmdir $HOME/enc
}
fi
+
+pacsync() {
+ [[ $(pacmd list-sinks) =~ 'name: <book>' ]] && return
+
+ pacmd load-module module-null-sink sink_name=book
+ pacmd update-sink-proplist book device.description=book
+}