- Настраиваем Xfce с помощью Window Manager Tweaks
- Прежде всего — что такое оконный менеджер
- Обход окон
- Фокус
- Характеристики доступа
- Рабочие места
- Размещение окон
- Средства композиции
- Заключение
- Xfce Wiki
- Frequently Asked Questions
- Getting Started
- About Xfce
- What is «Xfce» and why should I use it?
- How do you pronounce Xfce and what does it mean?
- What does the logo mean?
- On which platforms does Xfce currently run?
- Under which license is Xfce distributed?
- How long a wait is it between each official release?
- Installation
- Starting Xfce
- Is it possible to start Xfce when I login on the console?
- Is it possible to use Xfce with DMs?
- Setting up LXDM
- Setting up SLiM
- Setting up GDM
- Setting up KDM
- Login problems
- When I start Xfce a dialog pops up saying «Could not look up internet address for. «
- Logout problems
- When I try to log out by pressing the logout button in the panel, I get a dialog asking me whether I want to quit the panel and/or xfce4-session-logout reports that no session manager is running, but it is!
- Usage
- Keyboard
- Is there some way to call the menu with the keyboard in the Xfce?
- Is it possible to focus the Verve plugin with a key?
- How do I get numlock to start on login?
- Is it possible to use media keys in Application Shortcuts?
- How to determine keycodes with xev
- How can I change the keyboard layout?
- How can I change the default shortcut keys?
- How can I see a list of all the shortcut keys?
- Can I make a shortcut that doesn’t steal focus?
- How do I enable editable menu accelerators?
- Kiosk
- I want to use Xfce in a corporate environment, how can I stop users from modifying parts of the system?
- The left-click to get the menu on the title bar menu button seems a little slow. How do I change that?
- How do I display a list of all windows?
- How to edit the auto generated menu with the menu editor?
- What are the exact commands used when launching the ‘Settings’ applications?
- File Manager
- Can I disable the trash?
- How can I assign a keyboard shortcut in Thunar to an action in one of it’s menus?
- Where are the deleted files in the trash located?
- How can I get Thunar to display video thumbnails?
- Desktop Manager
- How can I remove the Trash, Home and Filesystem icons on my desktop?
- Why can’t I add items to my desktop?
- Window Manager
- Why does Firefox jump between workspaces?
- Some of the windows are always centered, why?
- Is it possible to have windows remember their position?
- How can I programmatically switch workspaces, move windows, etc?
- Why did my window suddenly become transparent?
- Why have my window borders suddenly disappeared?
- Session Manager
- Why are some of my applications automatically started when I login?
- Why am I unable to shutdown or restart my computer?
- Why can’t I see the logout dialog box when I press the quit button?
- Visual Appearance
- Applications
- Why have my panels/workspaces/window borders disappeared?
- How can I take a screenshot in Xfce?
- Why is the file chooser so slow?
- Why is my terminal application so slow?
- Themes
- How can I theme various parts of my Xfce desktop environment?
- Windows
- How do I enable panel transparency and window shadows?
- Panel
- How can I change the icon used by an application?
- How do I change the panel layer in Xfce 4.2+?
- Is there a world clock applet?
- Development
- How can I report bugs?
- How often are new releases made?
Настраиваем Xfce с помощью Window Manager Tweaks
В последнее время я сосредоточился на среде рабочего стола Xfce. (Примечание: Список всех статей, посвященных Xfce и опубликованных на сайте Ghacks, можно найти здесь ). Почему я сосредоточился на Xfce? Это весьма легковесный рабочий стол, который, как вы обнаружите, работает гораздо быстрее, чем другие рабочие столы Linux, и, при этом, имеет весь комплект компонентов рабочего стола, от которых зависит удобство его использования. Причем настолько полный, что конфигурирование и использование Xfce становится исключительно простым делом. Если вам понятно, как пользоваться «панелью управления», панелями, меню и т.д. — вы справитесь с Xfce.
Но есть некоторые дополнительные возможности конфигурирования, о которых я хочу рассказать и которые могут быть не столь очевидными для новичка в Xfce. На этот раз мы поговорим об инструменте, называемом Window Manager Tweaks.
Прежде всего — что такое оконный менеджер
Этот вопрос простой, но на него следует ответить с тем, чтобы вы знали, как именно работает описываемый нами инструмент. Оконный менеджер – это та часть рабочего стола, которая ответственна за изображение, оформление и манипуляцию с теми окнами, которые вы видите. Так что красивая рамочка вокруг Firefox, которую вы видите, — это то, чем занимается оконный менеджер. В случае Xfce оконным менеджером является xfwm.
Инструмент Window Manager Tweaks (Настройка оконного менеджера) делает как раз то, что вы ожидаете — настраивает оконный менеджер Xfce. Каким образом он настраивает? Общая картина выглядит следующим образом:
- Cycling (Обход окон): Определяется, как вы хотите осуществлять обход открытых окон.
- Focus (Фокус): Определяется, как вы хотите обрабатывать фокус окон.
- Accessibility (Характеристики доступа): Определяется, как вы получаете доступ к окну.
- Workspaces (Рабочие места): Определяется, как вы получаете доступ к рабочему месту.
- Placement (Размещение окон): Задается красивое размещение окон.
- Compositor (Средства композиции): Задается, хотите ли вы использовать композицию окон и как вы хотите ее использовать.
Теперь давайте взглянем на каждую эту составляющую отдельно.
Обход окон
С помощью этой настройки вы можете сконфигурировать четыре параметра. Из них только одна не устанавливается по умолчанию: циклический обход окон во всех рабочих местах. Эта настройка может быть полезна в случае, если вы используете большое количество рабочих мест. Если вы включите эту настройку, все открытые окна будут добавлены в цикл обхода окон. Если эта настройка не включена, то в цикл обхода окон будут включены только окна текущего рабочего места. Я предпочитаю включать эту настройку.
Фокус
Это не та же самая настройка, которая есть в стандартных настройках оконного менеджера, где вы можете включать такие функции, как «focus follows mouse» («фокус следует за мышью»). На самом деле функции, перечисленные на этой вкладке, либо вообще не работают, либо не имеют практической ценности. Хотя идея не перехватывать фокуса является хорошей, она будет работать только в приложениях, где используется стандартная переменная _NET_WM_USER_TIME.
Характеристики доступа
Лучшая функция, имеющаяся на этой вкладке, это – задание клавиши, используемой для захвата и перемещение окон. Когда выбранная клавиша нажата, вы можете щелкнуть мышкой в любом месте окна и перетащить окно туда, куда надо. Еще одной приятной настройкой, указанной на этой вкладке, является возможность убирать обрамление окна в случае, когда окно открыто по максимуму. Хотя выигрыш по площади не такой большой, отсутствие обрамления окна приблизит его к полноэкранному режиму, не жертвуя при этом заголовком.
Рабочие места
На этой вкладке я могу задать режим использования колесика мыши для переключения между рабочими местами. Что означает, что мне для переключения рабочих мест не потребуется каждый раз перетаскивать мышь вниз на пейджер. Есть также две функции, связанные с размещением рабочих мест относительно друг-друга, которые, возможно, вы захотите использовать:
«Wrap works spaces depending on the actual desktop layout» («Соседние рабочие места зависят от фактически выбранного рабочего стола»): Это означает, что для того, чтобы переместить его в соседнее рабочее место, вы можете перетаскивать окно влево или вправо.
«Wrap workspaces when the first or last workspace is reached» («Соседние рабочие места для первого или последнего рабочего места»): Если у вас есть четыре рабочих места и вы перетащили окно на рабочее место 4, то для того, чтобы вернуть его снова на рабочее место 1, все, что вам нужно сделать, это продолжить перетаскивать окно вправо. Так левый край рабочего места 1 находится рядом с правым краем рабочего места 4 (или первого и последнего рабочего места, если у вас рабочих мест больше 4).
Размещение окон
Во вкладке, которая называется Smart Placement (Красивое размещение окон), имеются действительно замечательные возможности. Вы можете выбрать такую настройку, что окна будут всегда открываться либо в центре экрана, либо там, где у вас расположен курсор. Добавьте эту возможность в меню, которое открывается правой кнопкой мыши в любом месте рабочего стола, и вы сможете запускать приложения не переходя к кнопке Пуск и при этом, указывать, где открывать все ваши окна.
Средства композиции
Эта функция, конечно, только для тех, у кого есть аппаратная поддержка графики. Если вы читали достаточное количество моих статей, вы знаете, что я большой поклонник красивой графики. На этой вкладке можно установить прозрачность для:
- оформления окон,
- неактивных окон,
- окон во время их перемещения,
- при изменении размера окон,
- для всплывающих окон.
В этой же вкладке вы можете установить эффект тени для:
- обычных окон,>
- всплывающих окон,
- окон Dock панели.
Заключение
Как вы видите, Xfce 4, что касается настроек, стал реальным конкурентом больших рабочих столов. Добавьте к этому его легковесность и молниеносную скорость и вы получите претендента, который может заменить KDE или GNOME.
Xfce Wiki
Sub domains
Frequently Asked Questions
Getting Started
About Xfce
What is «Xfce» and why should I use it?
Xfce is a desktop environment for Unix and other Unix-like platforms (such as Linux, Solaris or BSD). Xfce is “designed for productivity. It loads and executes applications fast, while conserving system resources.” (Olivier Fourdan, creator of Xfce). This philosophy should appeal to anyone looking for a fast, modern, and efficient working environment for a *NIX box.
How do you pronounce Xfce and what does it mean?
Xfce is pronounced “ecks-eff-see-ee”. The name Xfce originally stood for “XForms Common Environment”, but since then Xfce has been rewritten twice and doesn’t use the XForms toolkit anymore. The name survived, but it is no longer capitalized as “XFCE” and is no longer an abbreviation for anything (although suggestions have been made, such as “X Freakin’ Cool Environment”).
What does the logo mean?
A mouse, obviously, for all kinds of reasons like world domination and monsters and such.
On which platforms does Xfce currently run?
Xfce is developed to be versatile. It is currently supported on Linux, Solaris and BSD, but has been known to run in some shape or form on IRIX, Mac OS X, and Windows.
Under which license is Xfce distributed?
How long a wait is it between each official release?
There is no set schedule, a new version will be released when it is ready. Xfce’s development is split up into key phases, each of which can take months or even years to complete. More information on the release model can be found here. Currently the wait for Xfce 4.14 has been over 4 years, here is it’s current status. Although this may seem like a long time — remember, Xfce is developed by a small group of hard-working volunteers!
Installation
Xfce can be installed either from the package manager of your distro or from the source code. Installing via a package manager is preferred as it allows you to easily go back if the Xfce environment is not for you. Building from the source code allows you to try out the latest features that may be unstable for daily use.
Starting Xfce
Is it possible to start Xfce when I login on the console?
Yes, there are three different ways to do this:
Is it possible to use Xfce with DMs?
Yes. It’s probably the default behavior of most distributions.
Setting up LXDM
LXDM is the display manager of LXDE, but it is universal. It has no GNOME or KDE dependencies, a nice interface and is very complete. Most distributions have a package available that you can install. Regarding the configuration, check the presence of a file (or add) /usr/share/xsessions/06xfce4.desktop (the location may differ depending on the distributions), such as:
Lines TryExec and Exec may also differ between distributions.
Setting up SLiM
If you want to avoid GNOME or KDE dependencies and have a more attractive interface than XDM, you can give SLiM a try. See the SLiM manual for more information.
Setting up GDM
If you installed Xfce system-wide and you want to use the GNOME Display Manager (gdm) to start your Xfce session, you will have to create a .desktop file to teach gdm how to start the Xfce session. This is a sample desktop file, Xfce.desktop:
It is usually enough to simply copy the example file to the session directory used by gdm; this directory is usually located in /etc/dm/Sessions, /etc/X11/gdm/Sessions, /usr/share/xsessions, /usr/X11/share/gnome/xsessions or some other location. Refer to the documentation of your system for details. You need to restart gdm after you created the file.
Setting up KDM
If you installed Xfce system-wide and you want to use the KDE Display Manager (kdm) to start your Xfce session, you will have to create a .desktop file to teach kdm how to start the Xfce session.
First you need to find where kdm searches for its .desktop files:
Common locations are /usr/share/apps/kdm/sessions or /usr/local/share/kdm/sessions. Once you found the kdm session directory, you need to create a new file named Xfce.desktop with the following:
Login problems
When I start Xfce a dialog pops up saying «Could not look up internet address for. «
Xfce simply wants your hostname to be in /etc/hosts . Example input: 127.0.0.1 localhost
Logout problems
When I try to log out by pressing the logout button in the panel, I get a dialog asking me whether I want to quit the panel and/or xfce4-session-logout reports that no session manager is running, but it is!
For some reason, your X applications cannot connect to the session manager. Possible causes for this are: your hostname cannot be resolved (see Login problems section), your home partition or partition containing /tmp is filled up, your hostname contains non-ascii characters (no umlauts allowed, in particular) or either
/.ICEauthority or /tmp/.ICE-unix have wrong permissions. Check .xsession-errors for clues.
Usage
Keyboard
Is there some way to call the menu with the keyboard in the Xfce?
Assign a key via Settings Manager → Keyboard → Application Shortcuts to the command xfdesktop -menu . (This does not work reliably since the Linux kernel is tickless, so xfdesktop -menu needs a fix) The menu will popup where your mouse is located. You can also use xfce4-popup-applicationsmenu to popup the panel menu.
Is it possible to focus the Verve plugin with a key?
Assign a key to the command verve-focus .
How do I get numlock to start on login?
There are two ways to achieve this. You can use a display manager that turns the numlock on automatically (e.g. gdm) or use a little program called numlockx, and add numlockx to your .xinitrc.
Is it possible to use media keys in Application Shortcuts?
Use xmodmap to assign keycodes to your media keys to make them available for the Xfce shortcut editor:
To determine keycodes of the multimedia keys use the program xev . Create a .Xmodmap file in your $HOME directory containing those keycodes and assign keysyms to them. Here is an example:
All possible keysyms can be found in /usr/lib/X11/XKeysymDB or /usr/share/X11/XKeysymDB. To ensure that the .Xmodmap file is loaded when you start Xfce, add /usr/bin/xmodmap $HOME/.Xmodmap to your .xinitrc or .xprofile file. When you start the shortcut editor the assigned keysyms should show up when you press one of the multimedia keys. Now it is possible to assign a command to them. Note: Several problems with auto-loading of .Xmodmap files at xfce startup have been reported (also when issued as autostart command). Search the Xfce Bugzilla site for current problems. As a workaround, run xmodmap
/.Xmodmap manually every time, or try editing the somewhat less straightforward xkb configuration files.
How to determine keycodes with xev
As all keyboards are different, keycodes can differ. You can acquire keycodes from your keyboard with xev by entering the following in a terminal:
— then press the key of which you want the keycode.
How can I change the keyboard layout?
There are several options. One is to use the xfce4-xkb-plugin. You can also use the setxkbmap command with the two letter keyboard code as an argument, oryou can edit your X server configuration file to choose a different keyboard layout (change the value after Option “XkbLayout” , e.g.: Option “XkbLayout” “dvorak” ).
How can I change the default shortcut keys?
Keyboard shortcuts are defined in two locations: The shortcuts to handle the Window Manager are defined in Settings Manager → Window Manager → Keyboard, and more global keyboard shortcuts such as volume adjustments, can be found in Settings Manager → Keyboard > Application Shortcuts.
How can I see a list of all the shortcut keys?
Use the following command, which will produce a nicely formatted text list to standard output:
If you want to put this list into a file, add > filename at the end of command.
Can I make a shortcut that doesn’t steal focus?
Unfortunately, Xfce doesn’t have this ability yet.
How do I enable editable menu accelerators?
Menu accelerators let you set a keyboard shortcut to a menu item or entry. To enable editable menu accelerators, go to Settings Manager → Appearance → Settings tab, and select the ‘Enable editable accelerators’ option.
Kiosk
I want to use Xfce in a corporate environment, how can I stop users from modifying parts of the system?
The left-click to get the menu on the title bar menu button seems a little slow. How do I change that?
The left-button single-click menu button display speed is linked to the double click speed. To make the menu appear quicker, just change the double click speed in Settings Manager → Mouse and Touchpad → Behaviour. Or, right-click on the title bar to display the menu instantly without adjusting the double-click speed. The menu will display both ways.
How do I display a list of all windows?
There are two possibilities. The first is by middle clicking on the desktop (if you have xfdesktop running), or you can add the window list plugin to the panel (which is provided with a xfce4-popup-windowlist command).
How to edit the auto generated menu with the menu editor?
Now, you already have a menu with all the categories in the main tree with some duplicates, but you must first edit menu.xml with your favorite editor and remove the 4 following lines in the middle of the file, otherwise the menu editor will complain about a wrong format:
That’s all. Now you can run the menu editor, remove the few duplicates and edit freely.
Settings → Desktop → Menu → Menu Editor
Notes: by removing the “system” line, you will remove all the duplicate menu entries from the auto generated file. So, if it is changed in this auto generated file, they don’t appear any more, but you will get rid of most of the duplicates.
To restore the original menu, run the following in in a terminal:
What are the exact commands used when launching the ‘Settings’ applications?
File Manager
You can find more information about Xfce’s default file manager, Thunar, in the docs section.
Can I disable the trash?
Unfortunately, Xfce doesn’t have this capability. However, you can:
How can I assign a keyboard shortcut in Thunar to an action in one of it’s menus?
To activate the editable menu accelerators, go to Settings Manager → Appearance → Settings and select the “Editable editable accelerators” option. Then you can hover over the chosen action in Thunar and press the key on your keyboard that you want to assign it to.
Unfortunately, this capability was removed in GTK 3. As a workaround, you can edit them manually in the file
Where are the deleted files in the trash located?
You can find the contents of the trash in
How can I get Thunar to display video thumbnails?
You can install the package ffmpegthumbnailer .
Desktop Manager
How can I remove the Trash, Home and Filesystem icons on my desktop?
Go to Settings Manager → Desktop → Icons and uncheck the icons you want to remove under “Default Icons”
Why can’t I add items to my desktop?
You have the option to display icons turned off. Go to Settings Manager → Desktop → Icons and select File/launcher icons under “Icon type”.
Window Manager
Why does Firefox jump between workspaces?
When a new tab is opened from an external link in Firefox, it asks the Window Manager to display the window containing the new tab. If the window that has requested to be raised is not on the current workspace, the Xfce Window Manager will raise it in the current workspace by default.
To change this behavior, go to Settings Manager → Window Manager Tweaks → Focus, and select “Switch to window’s workspace”.
Some of the windows are always centered, why?
The Xfce Window Manager has a feature called smart placement which automatically centers windows that are below a certain size. Windows above that size will be arranged automatically on the screen. You can adjust the minimum size that this happens under Settings Manager → Window Manager Tweaks → Placement.
Is it possible to have windows remember their position?
If the application supports it, it will appear at the location you last specified. If the application doesn’t support it, you can use tools such as devilspie and wmctrl to control where a window is placed.
How can I programmatically switch workspaces, move windows, etc?
You can use a tool such as wmctrl to switch workspaces, move windows between workspaces, change window positions, maximize windows, and much more. libwnck is a library that also does similar things.
Why did my window suddenly become transparent?
If display compositing is enabled, the Xfce Window Manager allows you to adjust the opacity of a window by hovering your mouse over the title bar, holding down the Alt key, and using the scroll wheel. Hold Alt and scroll up to to restore opacity.
Why have my window borders suddenly disappeared?
If your window borders have disappeared and you can’t move windows around, xfwm4 has probably quit. If this happens, you can restart xfwm4 by entering the following command in a terminal:
Session Manager
Why are some of my applications automatically started when I login?
This occurs when a previous session is restored or the application is set to auto start.
To prevent Xfce from restoring your last session, go to Settings Manager → Session and Startup and uncheck “Automatically save session on logout”.
To stop an application from automatically starting on login, go to Settings Manager → Session and Startup → Application Autostart and remove the application from the list. You can also manually delete it’s .desktop file in
Why am I unable to shutdown or restart my computer?
In order to fix this, you can use sudo or hal and dbus.
Using sudo
You need to allow the user(s) to execute
Then add the user to the users and power group as root:
When you re-login, you should now be able to shutdown and restart the system.
Using hal and dbus
Make sure that the hal and dbus daemons are started on boot, and that you are running a recent version of dbus (at least 1.1). Refer to your distribution for exact steps.
In the steps below the groupname “power” is used. This can vary depending on your distribution.
Your /etc/dbus-1/system.d/hal.conf should contain a section similar to this:
Add the user to the power group as root:
When you re-login, you should now be able to shutdown and restart the system.
Why can’t I see the logout dialog box when I press the quit button?
You need to enable the “Prompt on logout” option in Settings Manager → Session and Startup → Logout Settings
Visual Appearance
Applications
Why have my panels/workspaces/window borders disappeared?
One of the processes responsible for it has quit. You can restart it by entering the following in a terminal, depending on what has disappeared:
How can I take a screenshot in Xfce?
Install a screenshotting application such as xfce4-screenshooter, gnome-screenshot, or the command line only scrot.
Why is the file chooser so slow?
The icon theme you are using renders too many SVGs, making it resource intensive to scroll. To fix this, try switching to a different icon theme.
Why is my terminal application so slow?
For NVidia users, add this to your settings:
Otherwise, your driver may not support argb visuals very well. You can disable it for the terminal by exporting the environment variable XLIB_SKIP_ARGB_VISUALS=1. To disable it for only the terminal, create a file named “Terminal” in
/bin , or /usr/local/bin , and enter the following in it:
Themes
How can I theme various parts of my Xfce desktop environment?
Please refer to the How to install new themes Wiki page.
Windows
How do I enable panel transparency and window shadows?
Enable the Composite extension in the X11 config file and make sure Xfwm4 is compiled with embedded compositor ( xfwm4 -V ).
Pay attention: recent versions of X.org turn composite on by default. If you experience speed problems or any other glitches you have to disable it explicitly:
If you have a reasonably new X.org (7.1, possibly 7.0) and your graphics card is listed as “supported” at X.org’s EXA status page, you should also enable EXA by adding this line to the card’s Device section in your xorg.conf:
Enabling EXA will normally provide a speed increase for compositing and font rendering, but may cause a small reduction in OpenGL rendering speed.
Once the Composite extension is activated, go to Settings Manager → Panel → Appearance and Settings Manager → Window Manager Tweaks → Compositor.
ATI users (X.org Radeon driver)
ATI R3xx/R4xx (9500 to X850, X1050) users may also need this in the device section for the card:
NVidia users
NVidia users may also need this in the device section for the card:
Read /usr/share/doc/nvidia-glx/README.txt.gz (and search for “RenderAccel” and “AllowGLXWithComposite”) to see if they are recommended for your system. At least for recent NVidia GLX drivers, “AllowGLXWithComposite” “true” is only for X servers older than X11R6.9.0, and “RenderAccel” “true” is the default setting, and therefore not required. If you are running a recent NVidia driver and a recent xorg-server, you do not need these settings (and should not use the “AllowGLXWithComposite” “true” setting).
Panel
How can I change the icon used by an application?
For an application launcher, right-click on the launcher and select “Properties”, then under General select “Edit the currently selected item”. Click on the icon to select a new one.
To change the application icon used in the Window Buttons, Workspace Switcher or elsewhere, change the icon theme used by the system in Settings Manager → Appearance → Icons.
How do I change the panel layer in Xfce 4.2+?
In order to improve focus management, this option was removed.
Is there a world clock applet?
Orage Clock provides this functionality. Add it to the panel, then middle-click the clock to open the Global Time window, where you can add any number of clocks.
Development
How can I report bugs?
You can report bugs on the Xfce Bugzilla site, the Xfce-bugs mailing list, or you ask on our IRC channel #xfce on Freenode for help. Please do not use the forums to report bugs. Before submitting a bug, please try your best to check if it has already been reported. When writing your bug report, try to be as descriptive as possible, but avoid verbosity. Mozilla has a nice guide on how to write a bug report.
How often are new releases made?
See previous answer. Xfce’s development is split up into key phases, each of which can take months or even years to complete. Although this may seem like a long time — remember, Xfce is developed by a small group of hard-working volunteers!