Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
zh-cn:tips [2012/04/28 17:16] – [Solution 1] haobug | zh-cn:tips [2015/03/10 04:30] – [通过 xfrun4 打开用户手册页] yjwork | ||
---|---|---|---|
Line 138: | Line 138: | ||
如果你想在你按下电源按钮时显示注销菜单,并且你的机器支持 ACPI,那就按下面的步骤做吧: | 如果你想在你按下电源按钮时显示注销菜单,并且你的机器支持 ACPI,那就按下面的步骤做吧: | ||
- | ======================================================================== | + | |
==== 解决方案 1 ==== | ==== 解决方案 1 ==== | ||
* ''/ | * ''/ | ||
Line 148: | Line 148: | ||
# 你也可以用 %e 这个占位符来把整个内核事件消息传给你指定的程序。 | # 你也可以用 %e 这个占位符来把整个内核事件消息传给你指定的程序。 | ||
- | # 我们需要 " | + | # 我们需要对 " |
# 因为内核做了改动。 | # 因为内核做了改动。 | ||
Line 193: | Line 193: | ||
chmod +x / | chmod +x / | ||
</ | </ | ||
- | ==== Solution | + | ==== 解决方案 |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
< | < | ||
event=button/ | event=button/ | ||
Line 210: | Line 210: | ||
使用 '#' | 使用 '#' | ||
+ | |||
+ | ===== Do maths with xfrun4/ | ||
+ | * What you get: input simple mathematical expression, like 5+5 or (5+5)/3 or .5*10, in xfrun4/ | ||
+ | * Requirement: | ||
+ | * Save this script as bcme.sh, in your home directory: | ||
+ | |||
+ | #!/bin/sh | ||
+ | | ||
+ | precision=2 | ||
+ | notify_time=20000 | ||
+ | | ||
+ | res=`echo " | ||
+ | notify-send -t $notify_time " | ||
+ | |||
+ | *Add custom action to Application finder : | ||
+ | * Type : Regular Expression | ||
+ | * Pattern : ^([0-9]|\(|\.).* | ||
+ | * Command : /bin/sh ~/bcme.sh \0 | ||
+ | * (check) Save match in command history | ||
+ | |||
+ | |||
+ | ====== Xfconf ===== | ||
+ | |||
+ | ===== Toggle panel autohide ===== | ||
+ | |||
+ | Short Bash script to toggle the autohide property of a panel, so you can bind for example a keyboard shortcut to quickly show and hide a panel. | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | |||
+ | test -z " | ||
+ | test ! -z "`echo $1 | sed s/ | ||
+ | |||
+ | CHANNEL=xfce4-panel | ||
+ | PANELID=$1 | ||
+ | PROP=/ | ||
+ | |||
+ | if `xfconf-query -c $CHANNEL -p $PROP >/ | ||
+ | xfconf-query -c $CHANNEL -T -p $PROP | ||
+ | else | ||
+ | xfconf-query -c $CHANNEL -n -p $PROP -t bool -s false | ||
+ | fi | ||
+ | </ |