Как сделать так, чтобы заработали звуки на системныя события XFCE, такие как: очистка Корзины, переход по папкам в Тунаре, всплывающия уведомления...
Что я уже настроил:
1. Меню - Все настройки - Внешний вид - Настройки -
Включить звуки событий;
2. Громкость системных звуков в трее -
100%;
3. Меню - Все настройки - Редактор настроек - xsettings - Добавил SoundThemeName (указал имя нужной звуковой темы);
4. Установил canberra-gtk-play;
5. Создал файл .profile с нужным текстом внутри, дал ему права:
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# canberra-gtk-play -f /usr/share/sounds/Borealis/stereo/desktop-login.ogg
canberra-gtk-play -i desktop-login
6. Создал файл /etc/X11/Xsession.d/52libcanberra-gtk3-module_add-to-gtk-modules с текстом:
# This file is sourced by Xsession(5), not executed.
if [ -z "$GTK_MODULES" ] ; then
GTK_MODULES="canberra-gtk-module"
else
GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
fi
export GTK_MODULES
7. Создал файл /etc/X11/Xsession.d/52libcanberra-gtk-module_add-to-gtk-modules с текстом:
# This file is sourced by Xsession(5), not executed.
if [ -z "$GTK_MODULES" ] ; then
GTK_MODULES="canberra-gtk-module"
else
GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
fi
export GTK_MODULES
Вывод:
1. xfconf-query -c xsettings -p /Net/SoundThemeName
freedesktop
;
2.env | grep GTK_MODULE
GTK_MODULES=canberra-gtk-module:canberra-gtk-module
;
3. ls /usr/share/sounds/$(xfconf-query -c xsettings -p /Net/SoundThemeName)/stereo
alarm-clock-elapsed.oga dialog-warning.oga
audio-channel-front-center.oga message-new-instant.oga
audio-channel-front-left.oga message.oga
audio-channel-front-right.oga network-connectivity-established.oga
audio-channel-rear-center.oga network-connectivity-lost.oga
audio-channel-rear-left.oga phone-incoming-call.oga
audio-channel-rear-right.oga phone-outgoing-busy.oga
audio-channel-side-left.oga phone-outgoing-calling.oga
audio-channel-side-right.oga power-plug.oga
audio-test-signal.oga power-unplug.oga
audio-volume-change.oga screen-capture.oga
bell.oga service-login.oga
camera-shutter.oga service-logout.oga
complete.oga suspend-error.oga
device-added.oga trash-empty.oga
device-removed.oga window-attention.oga
dialog-error.oga window-question.oga
dialog-information.oga
;
4. which canberra-gtk-play
/usr/bin/canberra-gtk-play