当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 通过fvwmdocker调节音量
帖子发表于 : 2010-12-06 12:43 
头像

注册: 2009-01-11 16:05
帖子: 301
送出感谢: 2
接收感谢: 11
代码:
*FvwmDocker: (1x1, Icon audacious.png, ActionOnPress, Action(Mouse 1) `FuncDockLaunch audacious2 Audacious $left $top`, Action(Mouse 4) Exec amixer -q sset Master 1+ unmute, Action(Mouse 5) Exec amixer -q sset Master 1- unmute)

以上能实现在AUDACIOUS图标上滚轮调节音量.
:em06 这个好象应该是:
引用:
FvwmButtons: (options) [title icon command]
Specifies the contents of a button in the buttonbox. The following options, separated by commas or whitespace, can be given a button:

geometry
Specifies the size and position of the button within the FvwmButtons window or container. The geometry is a standard X11 window geometry specification. The button is width times the normal button width and height times the normal button height. If values for x and y are given, the button is placed x (y) button units from the left (top) of the container if x (y) is positive and x (y) units from the right (bottom) if x (y) is negative. Buttons with position arguments (x and y) are placed before those without them. If two or more buttons are forced to overlap by this, FvwmButtons exits with an error message.

Action [(options)] command
Specifies an fvwm command to be executed when the button is activated by pressing return or a mouse button. The command needs to be quoted if it contains a comma or a closing parenthesis.

The current options of the Action are: Mouse n - this action is only executed for mouse button n. One action can be defined for each mouse button, in addition to the general action.

In the command part, you can use a number of predefined variables: $left, $right, $top and $bottom are substituted by the left, right, top and bottom coordinates of the button pressed. $-left, $-right, $-top and $-bottom are substituted likewise, but the coordinates are calculated from the bottom or the right edge of the screen instead (for a button that is 5 pixels away from the right screen border, $-right will be 5). $width and $height are replaced by the width or height of the button. The variables $fg and $bg are replaced with the name of the foreground or background color set with the Back or Fore option (see below). All this is done regardless of any quoting characters. To get a literal '$' use the string '$$'.

Example:

*FvwmButtons: (Title xload, Action (Mouse 1) \
`Exec exec xload -fg $fg -bg $bg -geometry -3000-3000`)



最后由 bigsun 编辑于 2010-12-06 14:21,总共编辑了 1 次

页首
 用户资料  
 
2 楼 
 文章标题 : Re: 通过fvwmdocker调节音量
帖子发表于 : 2010-12-06 13:10 
头像

注册: 2005-08-14 21:55
帖子: 58428
地址: 长沙
送出感谢: 4
接收感谢: 274
以前是在窗口按钮上,使用滚轮。
现在是Fn/Super调节。
主要是用得不多。没必要加载模块。


_________________
● 鸣学


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译