#!/bin/bash

# Copyright Piero Olmeda - AudioLinux  <audiolinux AT fastmail DOT fm>
# https://www.audio-linux.com

# License: custom - All rights reserved

source /etc/rtpriority/rtapp.conf

echo "
REALTIME PRIORITY
"
echo "IRQS"
ps -eo rtprio,cmd,comm --sort -rtprio | grep -v grep | grep 'irq' | grep -E 'xhci|ehci|snd|en|amdgpu|nvidia' | sed '/dialog/d'

echo "
APPLICATIONS"
for WORD in $APPS_DEFAULT
do
if [[ $(pidof $WORD) ]]
then
ps -eo rtprio,cmd | grep -v grep | grep $WORD | sed '/dialog/d'
fi
done
