Alfred Sun +

启用 Xfce 桌面的事件声音

Posted by Alfred Sun de, wm
  1. Enable “Event Sounds” in Settings Manager -> Appearance -> Settings
  2. Set “xsettings/Net/SoundThemeName” in the Settings Manager (to a sound theme located in /usr/share/sounds).
  3. Export GTK_MODULES=“canberra-gtk-module” (In Arch this was done automatically by install the libcanberra package, in Xubuntu and Fedora I had to manually create the file: see http://ubuntuforums.org/showthread.php?t=1869787&page=2&p=12008205&viewfull=1#post12008205)
  4. Install the following packages: Arch (libcanberra libcanberra-pulse) Xubuntu (sox gnome-session-canberra) Fedora (libcanberra)
  5. Turn up “System Sounds” in pavucontrol (Pulseaudio).
# /etc/X11/xinit/xinitrc.d/50-xinput.sh

if [ -z "$GTK_MODULES" ] ; then
    GTK_MODULES="canberra-gtk-module"
else
    GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
fi
export GTK_MODULES

注销重新登录,声音就出现了。

默认情况下,桌面环境安装的声音主题是 “freedesktop”,如果要更改,需要到 “xsettings/Net/SoundThemeName” 中设定。

另外,可能你会发现并没有听见声音特效,这时你要确认下声音主题里面是否包含你所触发的事件的声音文件。

[Comments]:

Related Blog