Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tips [2013/07/14 15:00] mhtrinhtips [2013/08/05 22:41] – [Add newlines to a panel] mike
Line 233: Line 233:
 ====== Other Unique Xfce Features ===== ====== Other Unique Xfce Features =====
  
-===== Add newlines to a panel ====== 
  
-Xfce allows full control over multi-line panel configuratinos, via the Separator component.  Simply add a separator to your panel, move it to where you'd like a new line to begin, edit its properties, and change its "style" drop-down to "New Line."+====== 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 "$1" && echo missing panel id  && exit 1
 +test ! -z "`echo $1 | sed s/[0-9]*//g`" && echo bad panel id  && exit 1
 +
 +CHANNEL=xfce4-panel
 +PANELID=$1
 +PROP=/panels/panel-$PANELID/autohide
 +
 +if `xfconf-query -c $CHANNEL -p $PROP >/dev/null 2>&1`; then
 +    xfconf-query -c $CHANNEL -T -p $PROP
 +else
 +    xfconf-query -c $CHANNEL -n -p $PROP -t bool -s true
 +fi
 +</code>