Add realtime priorities in desktop

master
Quentin Duchemin 2024-02-01 16:29:13 +01:00
parent 9194648e9a
commit f126572738
Signed by: Chosto
GPG Key ID: 96AB8AE7DFEA3D74
4 changed files with 11 additions and 3 deletions

View File

@ -4,7 +4,7 @@ JACK settings, as persisted by D-Bus object.
You probably don't want to edit this because
it will be overwritten next time jackdbus saves.
-->
<!-- Thu Apr 20 18:56:48 2023 -->
<!-- Thu Feb 1 16:21:48 2024 -->
<jack>
<engine>
<option name="driver">alsa</option>
@ -12,11 +12,11 @@ it will be overwritten next time jackdbus saves.
</engine>
<drivers>
<driver name="alsa">
<option name="capture">hw:PCH,0</option>
<option name="capture">hw:iD14,0</option>
<option name="playback">hw:PCH,0</option>
<option name="rate">44100</option>
<option name="period">2048</option>
<option name="inchannels">0</option>
<option name="inchannels">2</option>
<option name="outchannels">2</option>
<option name="midi-driver">seq</option>
</driver>

View File

@ -0,0 +1,3 @@
@realtime - rtprio 99
@realtime - memlock unlimited
@realtime - nice unlimited

View File

@ -0,0 +1 @@
/etc/security/limits.d

View File

@ -100,6 +100,10 @@ if [ ! -z "$INIT" ]; then
yay -Syu --needed --noconfirm - < ${CONFIG}/${ARCH_PACKAGES}/${FINAL_CONFIG}
echo -e "* Changing shell to ZSH..."
sudo chsh -s $(which zsh)
if [ "$ENV" = "desk" ]; then
echo -e "* Add user to realtime group..."
sudo usermod -aG realtime $(whoami)
fi
# https://man.archlinux.org/man/rofi-dmenu.5
echo -e "* Symlink dmenu → rofi..."
sudo ln -sf /usr/bin/rofi /usr/bin/dmenu