Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
zh-cn:tips [2015/03/10 04:29] – [解决方案 2] yjwork | zh-cn:tips [2015/03/10 05:06] (current) – [Do maths with xfrun4/appfinder] yjwork | ||
---|---|---|---|
Line 210: | Line 210: | ||
使用 '#' | 使用 '#' | ||
+ | |||
+ | ===== 使用 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 | ||
+ | </ |