Skip to content

Commit

Permalink
feat: Make wireplumber write-able for later use with steamdeck-dsp
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jan 15, 2024
1 parent 65decda commit b0bdb90
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ RUN /tmp/image-info.sh && \
systemctl disable gdm.service && \
systemctl enable sddm.service \
; fi && \
systemctl enable wireplumber-workaround.service && \
systemctl enable bazzite-autologin.service && \
systemctl enable wireplumber-sysconf.service && \
systemctl enable btrfs-dedup@run-media-mmcblk0p1.timer && \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Unit]
Description=Workaround wireplumber needing to be written into by steamdeck-dsp
ConditionPathExists=/usr/share/wireplumber
After=local-fs.target

[Service]
Type=oneshot
# Copy if it doesn't exist
ExecStartPre=/usr/bin/bash -c "[ -d /usr/local/share/.wireplumber ] || /usr/bin/cp -r /usr/share/wireplumber /usr/local/share/.wireplumber"
ExecStart=/usr/bin/mount --bind /usr/local/share/.wireplumber /usr/share/wireplumber
# Clean-up after ourselves
ExecStop=/usr/bin/umount /usr/share/wireplumber
ExecStop=/usr/bin/rm -r /usr/local/share/.wireplumber
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
C /usr/local/share/.wireplumber - - - - /usr/share/wireplumber

0 comments on commit b0bdb90

Please sign in to comment.