Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| zh-cn:tips [2012/04/28 17:30] – [处理 ACPI 电源按钮事件,显示 Xfce 注销选项] haobug | zh-cn:tips [2026/10/04 18:03] (current) – Add deprecation banner epetriglia | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== 提示与技巧 ====== | ====== 提示与技巧 ====== | ||
| + | |||
| + | <note warning> | ||
| 此页面包含了 Xfce 桌面环境的多种技巧。 | 此页面包含了 Xfce 桌面环境的多种技巧。 | ||
| Line 198: | Line 200: | ||
| * 一般设置:设置// | * 一般设置:设置// | ||
| * 关闭“电源管理器” | * 关闭“电源管理器” | ||
| - | | + | |
| < | < | ||
| event=button/ | event=button/ | ||
| Line 210: | Line 212: | ||
| 使用 '#' | 使用 '#' | ||
| + | |||
| + | ===== 使用 xfrun4/ | ||
| + | * 能干嘛: 在xfrun4/ | ||
| + | * 需要有此命令: | ||
| + | * 在您的家目录, | ||
| + | |||
| + | #!/bin/sh | ||
| + | | ||
| + | precision=2 | ||
| + | notify_time=20000 | ||
| + | | ||
| + | res=`echo " | ||
| + | notify-send -t $notify_time " | ||
| + | |||
| + | *在应用程序查找器添加自定义动作 : | ||
| + | * 类型 : 正则表达式 | ||
| + | * 类型 : ^([0-9]|\(|\.).* | ||
| + | * 命令 : /bin/sh ~/bcme.sh \0 | ||
| + | * (勾选) 在命令历史中保存匹配的 | ||
| + | |||
| + | |||
| + | ====== 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 | ||
| + | </ | ||