Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tips [2011/08/17 04:44] – [Gtkrc files] mhtrinh | tips [2013/08/05 22:40] – [Other Unique Xfce Features] -- woops, restore deleted content mike | ||
---|---|---|---|
Line 130: | Line 130: | ||
The margins are also useful if you have only one Xfce panel: the margin area leaves a clear space to pull up application or workspace menus. By default, right click on the desktop (the margin) to show the Xfce menu, or middle (left+right) click to show the workspace menu. | The margins are also useful if you have only one Xfce panel: the margin area leaves a clear space to pull up application or workspace menus. By default, right click on the desktop (the margin) to show the Xfce menu, or middle (left+right) click to show the workspace menu. | ||
+ | |||
+ | The size of the margins is in pixels, so, with a reasonably modern monitor, at a resolution of, say 1680 x 1050, a setting of ' | ||
===== Handle acpi event for power button, show Xfce logout options ===== | ===== Handle acpi event for power button, show Xfce logout options ===== | ||
Line 196: | Line 198: | ||
* In General : set //When power button is pressed// to //Ask// | * In General : set //When power button is pressed// to //Ask// | ||
* Close Power Manager settings | * Close Power Manager settings | ||
- | | + | |
< | < | ||
+ | # EXAMPLE | ||
event=button/ | event=button/ | ||
# | # | ||
Line 208: | Line 211: | ||
===== Accessing man pages through xfrun4 ===== | ===== Accessing man pages through xfrun4 ===== | ||
Use '#' | Use '#' | ||
+ | |||
+ | ===== 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 | ||
+ | |||
+ | ====== Other Unique Xfce Features ===== | ||
+ | |||
+ | ===== Add newlines to a panel ====== | ||
+ | |||
+ | Xfce allows full control over multi-line panel configuratinos, | ||
+ | ====== 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 true | ||
+ | fi | ||
+ | </ |