From f126572738152490dd324cd54b29144549d69918 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Thu, 1 Feb 2024 16:29:13 +0100 Subject: [PATCH] Add realtime priorities in desktop --- .config/jack/conf.xml.desk | 6 +++--- .config/realtime/99-realtime-privileges.conf.desk | 3 +++ .config/realtime/dest | 1 + .init_config.sh | 4 ++++ 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 .config/realtime/99-realtime-privileges.conf.desk create mode 100644 .config/realtime/dest diff --git a/.config/jack/conf.xml.desk b/.config/jack/conf.xml.desk index 0a88152..3592faf 100644 --- a/.config/jack/conf.xml.desk +++ b/.config/jack/conf.xml.desk @@ -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. --> - + @@ -12,11 +12,11 @@ it will be overwritten next time jackdbus saves. - + - + diff --git a/.config/realtime/99-realtime-privileges.conf.desk b/.config/realtime/99-realtime-privileges.conf.desk new file mode 100644 index 0000000..20aaf34 --- /dev/null +++ b/.config/realtime/99-realtime-privileges.conf.desk @@ -0,0 +1,3 @@ +@realtime - rtprio 99 +@realtime - memlock unlimited +@realtime - nice unlimited diff --git a/.config/realtime/dest b/.config/realtime/dest new file mode 100644 index 0000000..04b06b8 --- /dev/null +++ b/.config/realtime/dest @@ -0,0 +1 @@ +/etc/security/limits.d diff --git a/.init_config.sh b/.init_config.sh index b6677ca..38f2636 100755 --- a/.init_config.sh +++ b/.init_config.sh @@ -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