通过fvwmdocker调节音量

讨论openbox,awesome,FVWM等WM
回复
头像
bigsun
帖子: 301
注册时间: 2009-01-11 16:05
送出感谢: 2 次
接收感谢: 11 次

通过fvwmdocker调节音量

#1

帖子 bigsun » 2010-12-06 12:43

代码: 全选

*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 次。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

Re: 通过fvwmdocker调节音量

#2

帖子 eexpress » 2010-12-06 13:10

以前是在窗口按钮上,使用滚轮。
现在是Fn/Super调节。
主要是用得不多。没必要加载模块。
● 鸣学
回复

回到 “窗口管理器”