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 [2012/03/18 18:44] – [Use the desktop margin] rayandrewstips [2017/05/01 22:05] – fixed dead link yano
Line 41: Line 41:
  
 ===== Gtkrc files ===== ===== Gtkrc files =====
-  * A tutorial about the Gtkrc format can be found [[http://live.gnome.org/GnomeArt/Tutorials/GtkThemes|here]]. +  * A tutorial about the Gtkrc format can be found [[http://live.gnome.org/Attic/GnomeArt/Tutorials/GtkThemes|here]]. 
  
   * Xfce has also a couple of custom gtkrc settings for some of the applications: [[http://svn.xfce.org/svn/xfce/xfdesktop/branches/xfce_4_4/README|xfdesktop]] and [[http://thunar.xfce.org/pwiki/documentation/advanced_settings|Thunar]] (see also [[http://thunar.xfce.org/pwiki/documentation/faq#how_do_i_assign_different_keyboard_shortcuts|editable shortcuts]]).   * Xfce has also a couple of custom gtkrc settings for some of the applications: [[http://svn.xfce.org/svn/xfce/xfdesktop/branches/xfce_4_4/README|xfdesktop]] and [[http://thunar.xfce.org/pwiki/documentation/advanced_settings|Thunar]] (see also [[http://thunar.xfce.org/pwiki/documentation/faq#how_do_i_assign_different_keyboard_shortcuts|editable shortcuts]]).
Line 198: 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
-   In the file **/etc/acpi/events/power_button** , change the //action// field to ///bin/true// :+   If you have ACPI scripts installed, deactivate or update the **power-button** script from **/etc/acpi/events/**, and change the //action// field to ///bin/true//:
 <file> <file>
 +# EXAMPLE
 event=button/power.* event=button/power.*
 #action=/usr/lib/acpid/power_button #action=/usr/lib/acpid/power_button
Line 210: Line 211:
 ===== Accessing man pages through xfrun4 ===== ===== Accessing man pages through xfrun4 =====
 Use '#' as a shortcut to open man pages using xfrun4. e.g. #man Use '#' as a shortcut to open man pages using xfrun4. e.g. #man
 +
 +===== Do maths with xfrun4/appfinder =====
 +  * What you get: input simple mathematical expression, like 5+5 or (5+5)/3 or .5*10, in xfrun4/appfinder, and get the result as notification.
 +  * Requirement: notify-send
 +  * Save this script as bcme.sh, in your home directory:
 +
 +  #!/bin/sh
 +  
 +  precision=2        # number of digit for floating value
 +  notify_time=20000  # number of milisecond the notification show
 +  
 +  res=`echo "scale=$precision;$@" | bc`  
 +  notify-send -t $notify_time "$res" "=$@"
 +
 +  *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 "$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 false
 +fi
 +</code>
 +
 +===== Control per-window transparency =====
 +
 +Xfce lets you control the transparency of any window by horizontal scrolling on the titlebar. Starting with 4.12 though, it has been disabled by default. To enable this, open **Settings Editor > xfwm4** and change ''horiz_scroll_opacity'' to true by clicking the checkbox.