编辑2015年5月16日
自从升级到15.04以来,gnome-control-center出现了异常,并且gnome-sound-applet消失了,所以我决定搜索其他替代方法,并找到了volti
。工作原理几乎相同,但仍从我的~/.config/openbox/autostart
文件启动
安装工具
- gnome控制中心
- gnome-alsamixer
- tint2面板
选项1:gnome-alsamixer
Gnome Alsamixer是alsamixer(用于声音控制的基于ncurses的命令行实用程序)的图形前端。通过apt-get安装它,并将gnome-alsamixer.desktop添加到tint2面板。(请参见下面的tint2rc文件)。
选项2:gnome-sound-applet
如果已gnome-control-center
安装,则可以使用声音指示器/小程序。安装,gnome-control-center
然后gnome-sound-applet &
在.config/openbox/autostart
文件中添加一行。
选项3:使用剃须刀面板
Razor面板具有自己的声音指示器,并且是razorqt桌面环境的一部分,但可以独立安装。使用下载sudo apt-get install razor-panel
。要自动启动,请添加razor-panel &
到您的.config/openbox/autostart
文件中。
选项4:脉冲音频音量控制
该名称描述了恰当的含义。只需右键单击桌面,然后转到Debian->应用程序->声音-> pavucontrol。
我的.config / openbox / autostart文件
# set background
feh --bg-fill /home/xieerqi/.local/share/wallpapers/ben.jpg &
# start tint2 panel
tint2 &
# start razor-panel
# razor-panel &
# start gnome-sound-applet
gnome-sound-applet &
我的.config / tint2 / tint2rc文件
# Tint2 config file
# Generated by tintwizard (http://code.google.com/p/tintwizard/)
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure
# Background definitions
# ID 1
rounded = 7
border_width = 2
background_color = #000000 60
border_color = #FFFFFF 16
# ID 2
rounded = 5
border_width = 0
background_color = #FFFFFF 40
border_color = #FFFFFF 48
# ID 3
rounded = 5
border_width = 0
background_color = #FFFFFF 16
border_color = #FFFFFF 68
# Panel
panel_items = LTSBC
panel_monitor = all
panel_position = bottom center horizontal
panel_size = 85% 50
panel_margin = 0 0
panel_padding = 7 0 7
panel_dock = 0
wm_menu = 1
panel_layer = top
panel_background_id = 1
# Panel Autohide
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 2
autohide_height = 2
strut_policy = follow_size
# Taskbar
taskbar_mode = single_desktop
taskbar_padding = 2 3 2
taskbar_background_id = 0
taskbar_active_background_id = 0
# Tasks
urgent_nb_of_blink = 8
task_icon = 1
task_text = 0
task_centered = 1
task_maximum_size = 140 35
task_padding = 6 2
task_background_id = 3
task_active_background_id = 2
task_urgent_background_id = 2
task_iconified_background_id = 3
task_tooltip = 0
# Task Icons
task_icon_asb = 70 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 70 0 0
# Fonts
task_font = sans 7
task_font_color = #FFFFFF 68
task_active_font_color = #FFFFFF 83
task_urgent_font_color = #FFFFFF 83
task_iconified_font_color = #FFFFFF 68
font_shadow = 0
# System Tray
systray = 1
systray_padding = 4 2 3
systray_sort = ascending
systray_background_id = 0
systray_icon_size = 35
systray_icon_asb = 70 0 0
# Clock
time1_format = %H:%M
time1_font = sans 8
time2_format = %A %d %B
time2_font = sans 6
clock_font_color = #FFFFFF 74
clock_padding = 1 0
clock_background_id = 0
clock_rclick_command = orage
# Tooltips
tooltip_padding = 2 2
tooltip_show_timeout = 0.7
tooltip_hide_timeout = 0.3
tooltip_background_id = 1
tooltip_font = sans 10
tooltip_font_color = #000000 80
# Mouse
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify
# Battery
battery = 1
battery_low_status = 10
battery_low_cmd = notify-send "battery low"
battery_hide = 98
bat1_font = sans 8
bat2_font = sans 6
battery_font_color = #FFFFFF 74
battery_padding = 1 0
battery_background_id = 0
# Launchers
#
launcher_padding = 5 0 10
launcher_background_id = 9
launcher_icon_size = 45
launcher_item_app = /home/xieerqi/.config/autostart/firefox.desktop
# launcher_item_app = /some/where/anotherapplication.desktop
launcher_item_app = /home/xieerqi/.config/autostart/gnome-terminal.desktop
launcher_item_app = /home/xieerqi/.config/tint2/backlight.desktop
# launcher_item_app = /home/xieerqi/.local/share/applications/backlight.desktop
launcher_item_app = /usr/share/applications/gnome-alsamixer.desktop
# End of config
关于配置文件的注意事项
您可能需要重新启动或至少sudo service lightdm restart
从TTY1 重新启动,以便启用对配置文件所做的更改
设置看起来如何