雑記 日記帳 Kona4 bj 64bitで起動時の音楽を384kHzで聞く方法

Kona4 bj 64bitで起動時の音楽を384kHzで聞く方法

/etc/kona/login-sound.shのlogin-sound.shのcopyを採ってから下記の赤色部分にする

--------------------------------------------------------------ここから

#!/bin/bash
[ "$(lsmod|grep squashfs)" != "" ] && exit
jackmode=`systemctl list-unit-files|grep lightdm.service|grep enabled`
#if [ "$jackmode" = "" ] && [ ! -f /etc/kona/hybrid ]; then
if [ "$jackmode" = "" ]; then
exit
fi

if [ "$(grep NotShowIn ~/.config/autostart/qjackctl.desktop|grep LXDE)" != "" ]; then
ps="jackd"
else
ps=`ps xa`
fi
if [ "$(echo $ps|grep jackd)" = "" ]; then
sleep 10
ps=`ps xa`
[ "$(echo $ps|grep jackd)" = "" ] && sleep 10
ps=`ps xa`
[ "$(echo $ps|grep jackd)" = "" ] && sleep 10
ps=`ps xa`
[ "$(echo $ps|grep jackd)" = "" ] && sleep 10
ps=`ps xa`
fi
if [ "$(echo $ps|grep jackd)" != "" ]; then
if [ "$(ls -l /usr/share/sounds/kona/desktop-login|grep 'Do It Again')" != "" ]; then
rm /usr/share/sounds/kona/desktop-login
ln -s /usr/share/sounds/kona/"The Look Of Love.mp3" /usr/share/sounds/kona/desktop-login
else
if [ "$(ls -l /usr/share/sounds/kona/desktop-login|grep 'The Look Of Love')" != "" ]; then
rm /usr/share/sounds/kona/desktop-login
ln -s /usr/share/sounds/kona/"Sweet_Love.mp3" /usr/share/sounds/kona/desktop-login
else
rm /usr/share/sounds/kona/desktop-login
ln -s /usr/share/sounds/kona/"Do It Again.mp3" /usr/share/sounds/kona/desktop-login
fi
fi
sleep 2
mpv --player-operation-mode=pseudo-gui -- -H /usr/share/sounds/kona/desktop-login &
sleep 100
if [ "$(ps xa|grep desktop-login|grep -v grep)" != "" ]; then
killall mpv --player-operation-mode=pseudo-gui --
fi
fi

----------------------------------------------------------------------ここまで