Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tips [2010/05/23 14:30] – XWindows Root Window 212.255.34.211 | tips [2019/03/27 22:47] – [How to add or remove applications in the system menu] blueberrybrownie | ||
---|---|---|---|
Line 3: | Line 3: | ||
- | ===== Use of different fonts in clock panel applet ===== | ||
- | You may use Pango Markup [[http:// | ||
- | ''< | ||
- | gives nice big digits almost as high as a panel itself. | ||
===== Performance Tips ===== | ===== Performance Tips ===== | ||
- | Lets face it: one of the reasons for using Xfce is performance. It is lighter and more responsive than Gnome on almost all hardware, especially on machines with less memory and processor | + | One of the benefits of Xfce is performance. It is lighter and more responsive than other desktop environments such as GNOME on almost all hardware, especially on machines with less memory and processing |
==== Fonts ==== | ==== Fonts ==== | ||
Line 27: | Line 23: | ||
Another option, that may work for some, is to check the options of the program that you are using to connect remotely, and if it has a " | Another option, that may work for some, is to check the options of the program that you are using to connect remotely, and if it has a " | ||
- | ===== How to use the alternative GNOME-menu ===== | ||
- | |||
- | If you want to use the new menu from GNOME, with quick starters for favorites applications and such, you can use the [[http:// | ||
- | |||
- | Add a new xfapplet item inside your panel, and open its properties dialog to add the GNOME menu applet. | ||
- | |||
- | If you don't like GNOME main menu, try Ubuntu System Panel, available in several distributions. | ||
- | |||
- | See also: [[/ | ||
===== Gtkrc files ===== | ===== Gtkrc files ===== | ||
- | * A tutorial about the Gtkrc format can be found [[http:// | + | * A tutorial about the Gtkrc format can be found [[http:// |
* Xfce has also a couple of custom gtkrc settings for some of the applications: | * Xfce has also a couple of custom gtkrc settings for some of the applications: | ||
Line 70: | Line 57: | ||
class " | class " | ||
+ | * See also those threads in the forum : http:// | ||
===== How to add or remove applications in the system menu ===== | ===== How to add or remove applications in the system menu ===== | ||
Line 91: | Line 79: | ||
You can read more about .desktop files [[http:// | You can read more about .desktop files [[http:// | ||
- | The libexo provides several utils amongst one to handle desktop entry files in a GUI fashion: **exo-desktop-item-edit**. | + | The libexo provides several utils amongst one to handle desktop entry files in a GUI fashion: **exo-desktop-item-edit**. |
=== Remove an application from the menu === | === Remove an application from the menu === | ||
Line 107: | Line 95: | ||
* Copy the file / | * Copy the file / | ||
- | * Add your own code to the file. For example, you could start the unicode server: | + | * Add your own code to the file. For example, you could start the rxvt-unicode server: |
* source $HOME/ | * source $HOME/ | ||
* # start rxvt-unicode server | * # start rxvt-unicode server | ||
Line 115: | Line 103: | ||
==== Starting with showing the Root Window ==== | ==== Starting with showing the Root Window ==== | ||
- | - xfdesktop --quit | + | |
- | - save your session | + | - save your session |
===== Use the desktop margin ===== | ===== Use the desktop margin ===== | ||
Line 125: | Line 114: | ||
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 130: | Line 121: | ||
If you would like the xfce logout menu to show up when you press your power button, and your machine has acpi support, then do the following: | If you would like the xfce logout menu to show up when you press your power button, and your machine has acpi support, then do the following: | ||
- | * ''/ | + | ==== Solution 1 ==== |
+ | * ''/ | ||
< | < | ||
# / | # / | ||
Line 181: | Line 173: | ||
</ | </ | ||
- | ===== Use mnemonics | + | * Make those scripts executable : |
+ | < | ||
+ | chmod +x / | ||
+ | </ | ||
+ | ==== Solution 2 ==== | ||
+ | * Open Settings Manager (or by command : xfce4-settings-manager ) | ||
+ | * Open Power Manager settings | ||
+ | * In General : set //When power button is pressed// to //Ask// | ||
+ | * Close Power Manager settings | ||
+ | * If you have ACPI scripts installed, deactivate or update the **power-button** script from **/ | ||
+ | < | ||
+ | # EXAMPLE | ||
+ | event=button/ | ||
+ | # | ||
+ | action=/ | ||
+ | </ | ||
+ | |||
+ | ===== Accessing man pages through xfrun4 ===== | ||
+ | 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 | ||
+ | |||
+ | |||
+ | ====== 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 | ||
+ | </ | ||
+ | |||
+ | ===== Control per-window transparency | ||
- | When you create a [[http:// | + | Xfce lets you control the transparency of any window by horizontal scrolling on the titlebar. Starting with 4.12 though, |