Difference between revisions of "LXQt"

From ArchWiki
Jump to: navigation, search
(Installation)
(Set-up environment variables: link to Environment variables, rm example)
 
(151 intermediate revisions by 47 users not shown)
Line 1: Line 1:
 
[[Category:Desktop environments]]
 
[[Category:Desktop environments]]
 +
[[ja:LXQt]]
 
[[ru:Razor-qt]]
 
[[ru:Razor-qt]]
{{stub}}
+
[[zh-CN:LXQt]]
 +
{{Related articles start}}
 +
{{Related|LXDE}}
 +
{{Related|Desktop environment}}
 +
{{Related|Window manager}}
 +
{{Related articles end}}
 +
In early 2013, Hong Jen Yee "PCMan" started porting [[LXDE]] components to [[Qt]]. The first [http://blog.lxde.org/?p=1013 preview of LXDE-Qt] was released on July 3rd, 2013. On July 21st, it was announced that Razor-qt (a desktop similar in design to LXDE) and LXDE were merging.
  
'''[http://razor-qt.org/ Razor-qt]''' is an advanced, easy-to-use, and fast toolbox-like [[Desktop Environment|desktop environment]], which is, like KDE, based on [[Qt]] technologies. It has been tailored for users who value simplicity, speed, an intuitive interface and high customizability, therefore it features only few basic components, while most applications, like a File-Manager, have to be added by the user. Due to this, Razor-QT runs fine on weak machines, too.
+
The result is [http://lxqt.org LXQt], a desktop built on Qt which partly uses Razor-qt and LXDE components. While development is mainly focused on LXQt, the GTK+ 2 version of LXDE will see continued development.
  
==Installation==
+
== Installation ==
  
For now, there only is a package {{aur|razor-qt}} in the [[AUR]] that allows you to install it.
+
[[Install]] the {{Grp|lxqt}} group.
On a fresh ArchLinux, you'd probably want to add a Login-Manager, too, for example [[SLiM]].
+
  
When starting Razor-QT by {{ic|.xinitrc}} (including use of SLiM as login manager), the appropriate command is
+
An icon theme is also needed. The default one is ''Oxygen'', which can be installed with the {{Pkg|oxygen-icons}} package.
exec razor-session
+
  
You may want to copy the default configuration file to your home folder for additional customization.
+
For additional functionality, you may wish to install the following:
mkdir -p ~/.config/razor
+
cp /etc/xdg/razor/session.conf ~/.config/razor
+
  
==Window Manager==
+
* {{App|[[Connman]]|Network manager like [[NetworkManager]].| http://git.kernel.org/cgit/network/connman | {{Pkg|connman}}}}
 +
* {{App|LXQt Connman applet|LXQt system-tray applet for [[Connman]].| https://github.com/surlykke/lxqt-connman-applet | {{AUR|lxqt-connman-applet-git}}}}
 +
* {{App|LXImage-Qt|Image viewer and screenshot tool for LXQt.| https://github.com/lxde/lximage-qt | {{AUR|lximage-qt}}}}
 +
* {{App|ObConf-Qt| The Qt port of ObConf, the [[Openbox]] configuration tool. | https://github.com/lxde/obconf-qt | {{AUR|obconf-qt}}}}
 +
* {{App|LXAppearance | Easy to use GTK+ configuration tool. Part of LXDE. | https://sourceforge.net/projects/lxde/files/LXAppearance/ | {{Pkg|lxappearance}}}}
 +
* {{App|[[SDDM]]|The recommended display manager for LXQt.| https://github.com/sddm/sddm | {{Pkg|sddm}}}}
 +
* A screen locker, if needed. For example, {{Pkg|slock}} or {{Pkg|xscreensaver}}. Both are confirmed to integrate with LXQt, others may too. If you want to disable screen locking upon suspend/sleep it is under "LXQT Session Settings/Lock screen before suspending".
  
Razor-QT has no Window Managers of it's own, but it will run with most [[Window Manager|Window Managers]]. [[Openbox]] is "the Official WM of razor-qt" but you can choose your own either through Razor's Session Management tool, or by editing  {{ic|~/.config/razor/session.conf}}.
+
Some LXQt panel plugins require extra packages to function, check the [[PKGBUILD#optdepends|optional dependencies]] for {{Pkg|lxqt-panel}}.
  
More information about razor-qt and Window Manager integration can be found on the [https://github.com/Razor-qt/razor-qt/wiki/Window-Managers Razor-qt wiki].
+
== Starting the desktop ==
  
===Compiz===
+
=== Using xinit ===
  
In order to use [[Compiz]] as Razor's Window Manager, you have to edit your {{ic|session.conf}} like this:
+
Append the following line to [[Xinitrc]]:
  
  [General]
+
  exec startlxqt
windowmanager=compiz ccp
+
  
Methods like fusion-icon, adding compiz to the .xinitrc or {{ic|compiz --replace ccp &}} will usually result in crashing X.
+
=== Graphical login ===
  
==Suggested Applications==
+
Choose ''LXQt Desktop'' from the menu in a [[display manager]] of choice.
  
A fresh Razor-QT won't provide much of the tools you need, as it leaves to the user, what to add.
+
== Configuration ==
A collection on useful apps (which use QT) are found on the projects homepage at [https://github.com/Razor-qt/razor-qt/wiki/3rd-party-applications 3rd Party applications].
+
  
==Troubleshooting==
+
LXQt in general tries to provide GUI applications to change its settings. Configuration files are in {{ic|~/.config/lxqt}}. This directory is initialized automatically. The default configuration for new users is found in {{ic|/etc/xdg/lxqt}}.
  
When Razor's applications don't stick with your QT-theme (especially when using KDE's system settings to set your theme), then as of KDE 4.6.1 you'll probably need to tell Qt how to find KDE's styles (Oxygen, QtCurve etc.)
+
=== Replace Openbox ===
  
You just need to set the environment variable QT_PLUGIN_PATH. E.g. put
+
While [[Openbox]] is the default [[window manager]] for LXQt, you can specify a different window manager to use with LXQt via ''Session Settings'', {{ic|lxqt-config-session}}; or by editing {{ic|~/.config/lxqt/session.conf}}. Change the following line:
  
  export QT_PLUGIN_PATH=$HOME/.kde4/lib/kde4/plugins/:/usr/lib/kde4/plugins/
+
  window_manager=openbox
  
into your {{ic|/etc/profile}} (or {{ic|~/.profile}} if you do not have root access). qtconfig should then be able to find your kde styles and everything should look nice again!
+
to a [[window manager]] of choice:
  
Alternatively, you can symlink the Qt styles directory to the KDE styles one:
+
window_manager=''your_window_manager''
  # ln -s /usr/lib/kde4/plugins/styles/ /usr/lib/qt/plugins/styles
+
 
 +
=== Autostarting applications ===
 +
 
 +
To have X applications start on login, click the main menu from the LXQt -> Preferences -> LXQt Settings -> Session Settings. Alternatively, this can be launched with:
 +
lxqt-config-session
 +
From this window, click on "AutoStart" on the left side. Here you can add a new application to either the global autostart (launched in all sessions implementing the said specification) or your local autostart (labled LXQt Autostart) (See [https://github.com/lxde/lxqt/issues/746 issue 746] for a bug related to this option).
 +
 
 +
For each item you add, {{ic|lxqt-config-session}} will create a .desktop-file at {{ic|~/.config/autostart}}. Preinstalled applications that will be automatically started at login can be found at {{ic|/etc/xdg/autostart}}. So you can also change your autostart preferences by editing the files in these directories. Besides, the distinction between "Global Autostart" and "LXQt Autostart" does not depend on the directory in which the corresponding .desktop-file is located, but rather on the {{ic|OnlyShowIn}}-setting. If it is {{ic|1=OnlyShowIn=true}}, it is considered an "LXQt Autostart". Furthermore, if {{ic|1=X-LXQt-Module=true}}, the item is not shown in {{ic|lxqt-config-session}}.
 +
 
 +
=== Set-up environment variables ===
 +
 
 +
[[Environment variables]] for LXQt session can be defined in Session Settings.
 +
 
 +
=== Editing the Application Menu ===
 +
 
 +
It is possible to edit menu entries by editing their ''.desktop'' files stored in {{ic|/usr/share/applications/lxqt-*.desktop}} files. See [[Desktop entries]].
 +
 
 +
== Troubleshooting ==
 +
 
 +
=== Desktop icons are grouped together ===
 +
 
 +
When moving icons on the desktop it is possible to place them a bit too close to each other making them connected. If unable to separate them Stop Desktop from Session Settings, remove {{ic|.config/pcmanfm-qt/lxqt/desktop-items-0.conf}} and Start Desktop again.
 +
 
 +
== Tips and tricks ==
 +
 
 +
=== Customizing Leave ===
 +
 
 +
One can customize the options available under "Leave" simply by copying the respective package provide .desktop file to {{ic|~/.local/share/applications}} and modifying it to contain the ''NoDisplay=true'' directive. Reference: [https://github.com/lxde/lxqt/issues/876 #876].
 +
 
 +
Complete list of files to consider masking include:
 +
 
 +
lxqt-hibernate.desktop
 +
lxqt-leave.desktop
 +
lxqt-lockscreen.desktop
 +
lxqt-logout.desktop
 +
lxqt-reboot.desktop
 +
lxqt-shutdown.desktop
 +
lxqt-suspend.desktop
 +
 
 +
Example: remove hibernate option.
 +
 
 +
$ mkdir -p ~/.local/share/applications
 +
$ sed '/OnlyShowIn/aNoDisplay=true' </usr/share/applications/lxqt-hibernate.desktop >~/.local/share/applications/lxqt-hibernate.desktop
 +
 
 +
== See also ==
 +
 
 +
* [http://lxqt.org LXQt homepage]
 +
* [https://github.com/lxde/lxqt LXQt development]
 +
* [http://lxqt-de.deviantart.com/ LXQt on deviantART]
 +
* [https://github.com/lxde/lxqt/wiki LXQt wiki on GitHUb]

Latest revision as of 09:20, 21 November 2016

In early 2013, Hong Jen Yee "PCMan" started porting LXDE components to Qt. The first preview of LXDE-Qt was released on July 3rd, 2013. On July 21st, it was announced that Razor-qt (a desktop similar in design to LXDE) and LXDE were merging.

The result is LXQt, a desktop built on Qt which partly uses Razor-qt and LXDE components. While development is mainly focused on LXQt, the GTK+ 2 version of LXDE will see continued development.

Installation

Install the lxqt group.

An icon theme is also needed. The default one is Oxygen, which can be installed with the oxygen-icons package.

For additional functionality, you may wish to install the following:

http://git.kernel.org/cgit/network/connman || connman
  • LXQt Connman applet — LXQt system-tray applet for Connman.
https://github.com/surlykke/lxqt-connman-applet || lxqt-connman-applet-gitAUR
  • LXImage-Qt — Image viewer and screenshot tool for LXQt.
https://github.com/lxde/lximage-qt || lximage-qtAUR
  • ObConf-Qt — The Qt port of ObConf, the Openbox configuration tool.
https://github.com/lxde/obconf-qt || obconf-qtAUR
  • LXAppearance — Easy to use GTK+ configuration tool. Part of LXDE.
https://sourceforge.net/projects/lxde/files/LXAppearance/ || lxappearance
  • SDDM — The recommended display manager for LXQt.
https://github.com/sddm/sddm || sddm
  • A screen locker, if needed. For example, slock or xscreensaver. Both are confirmed to integrate with LXQt, others may too. If you want to disable screen locking upon suspend/sleep it is under "LXQT Session Settings/Lock screen before suspending".

Some LXQt panel plugins require extra packages to function, check the optional dependencies for lxqt-panel.

Starting the desktop

Using xinit

Append the following line to Xinitrc:

exec startlxqt

Graphical login

Choose LXQt Desktop from the menu in a display manager of choice.

Configuration

LXQt in general tries to provide GUI applications to change its settings. Configuration files are in ~/.config/lxqt. This directory is initialized automatically. The default configuration for new users is found in /etc/xdg/lxqt.

Replace Openbox

While Openbox is the default window manager for LXQt, you can specify a different window manager to use with LXQt via Session Settings, lxqt-config-session; or by editing ~/.config/lxqt/session.conf. Change the following line:

window_manager=openbox

to a window manager of choice:

window_manager=your_window_manager

Autostarting applications

To have X applications start on login, click the main menu from the LXQt -> Preferences -> LXQt Settings -> Session Settings. Alternatively, this can be launched with:

lxqt-config-session

From this window, click on "AutoStart" on the left side. Here you can add a new application to either the global autostart (launched in all sessions implementing the said specification) or your local autostart (labled LXQt Autostart) (See issue 746 for a bug related to this option).

For each item you add, lxqt-config-session will create a .desktop-file at ~/.config/autostart. Preinstalled applications that will be automatically started at login can be found at /etc/xdg/autostart. So you can also change your autostart preferences by editing the files in these directories. Besides, the distinction between "Global Autostart" and "LXQt Autostart" does not depend on the directory in which the corresponding .desktop-file is located, but rather on the OnlyShowIn-setting. If it is OnlyShowIn=true, it is considered an "LXQt Autostart". Furthermore, if X-LXQt-Module=true, the item is not shown in lxqt-config-session.

Set-up environment variables

Environment variables for LXQt session can be defined in Session Settings.

Editing the Application Menu

It is possible to edit menu entries by editing their .desktop files stored in /usr/share/applications/lxqt-*.desktop files. See Desktop entries.

Troubleshooting

Desktop icons are grouped together

When moving icons on the desktop it is possible to place them a bit too close to each other making them connected. If unable to separate them Stop Desktop from Session Settings, remove .config/pcmanfm-qt/lxqt/desktop-items-0.conf and Start Desktop again.

Tips and tricks

Customizing Leave

One can customize the options available under "Leave" simply by copying the respective package provide .desktop file to ~/.local/share/applications and modifying it to contain the NoDisplay=true directive. Reference: #876.

Complete list of files to consider masking include:

lxqt-hibernate.desktop
lxqt-leave.desktop
lxqt-lockscreen.desktop
lxqt-logout.desktop
lxqt-reboot.desktop
lxqt-shutdown.desktop
lxqt-suspend.desktop

Example: remove hibernate option.

$ mkdir -p ~/.local/share/applications
$ sed '/OnlyShowIn/aNoDisplay=true' </usr/share/applications/lxqt-hibernate.desktop >~/.local/share/applications/lxqt-hibernate.desktop

See also