LXQt on FreeBSD

LXQt is the Qt port and the upcoming version of LXDE, the Lightweight Desktop Environment. It is the product of the merge between the LXDE-Qt and the Razor-qt projects.

Heavily work in progress, it needs some components of Plasma 5 (the new major KDE’s workspace).

LXQt 0.11.1

Install the LXQt (0.11) desktop

1. Clone the development KDE repository (area51):

% mkdir plasma5 ; cd plasma5
% svn co http://area51.pcbsd.org/branches/plasma5/KDE .

2. Fetch kdemerge script:

% fetch http://area51.pcbsd.org/trunk/area51/Tools/scripts/area51 -o ~/kdemerge

3. Merge the KDE components into the official ports tree:

# sh kdemerge -d plasma5 /usr/ports

Import is very intrusive, use svn status in order to see changes. You must also add 2 new categories in Mk/bsd.port.mk. (not need anymore with revision r424182)

3. Clone the LXQt repository.

Due to missing piece of Plasma5 components in official ports tree, you must clone and merge the LXQt repository.

The best way is to fetch lxqtmerge script. Adjust LOCAL_REPO and PORTSDIR variables before to run it.

% fetch https://subversion.assembla.com/svn/lxqt/trunk/Tools/scripts/lxqtmerge

Below different options:

usage: lxqtmerge options

options:
  -h    display this help
  -c    clone remote repository
  -m    merge into the ports tree
  -u    update local repository
  -r    revert changes

# lxqtmerge -c
# lxqtmerge -m

Now you are able to compile the meta-ports x11-wm/lxqt and x11/lxqt-l10n (translations of each LXQt components).

List of ports

Known issues (and fixes)

It's advised to use UTF-8 as character encoding, especially for Western Europeans users (some translation are not well displayed in settings widgets).

If PCManFM-qt crashes, when you leave your session, create the ~/Templates directory. Or install devel/xdg-user-dirs.

Tips

PCManFM-qt is able to use UDisks2 service (for removable storages), install sysutils/bsdisks.

Starting the desktop

Using .xinitrc

% cp /usr/local/bin/startlxqt ~/.xinitrc

The QT_QPA_PLATFORMTHEME variable is not well defined, replace lxqt by qt5ct.

Make lxqt-leave's power commands work

LXQt depends on ConsoleKit2 (fork, PR 202269). In ports tree only ConsoleKit is available (sysutils/consolekit). However it can be found in the Xfce development repository (see the FAQ).

1. Get the port:

svn co https://subversion.assembla.com/svn/xfce4/trunk/sysutils/consolekit

2. Copy it to your ports tree (Replacing the existing sysutils/consolekit)

3. Rebuild every port (installed on your system), which depends of sysutils/consolekit.

pkg query %ro consolekit

If it's a fresh install, this command is better:

pkg rquery %ro consolekit

For massive rebuild, using ports-mgmt/poudriere or ports-mgmt/synth is recommanded way.

Uniform look for Qt and GTK+ widgets

You must install additional widget styles.

Support of GTK3

Create .config/gtk-3.0/settings.ini file:

[Settings]
gtk-theme-name = Adwaita # or Breeze
gtk-font-name = DejaVu Sans 11

Support of GTK2

Create .gtkrc-2.0 file:

include "/usr/local/share/themes/Adwaita/gtk-2.0/gtkrc"

For Breeze theme:

include "/usr/local/share/themes/Breeze/gtk-2.0/gtkrc"

And add GTK2_RC_FILES variable in .xinitrc:

   1 #!/bin/sh
   2 
   3 [...]
   4 
   5 export GTK2_RC_FILES="$HOME/.gtkrc-2.0"

Support of QT5

Install misc/qt5ct, and select style in Appearance tab, or in .config/lxqt/lxqt.conf replace Fusion by new style (for example adwaita):

[...]

[Qt]
style=adwaita

Support of QT4

Install misc/qt4-qtconfig, then run qtconfig-qt4 (you can check in .config/Trolltech.conf the value of style variable).

Changing the window manager

By default it's Openbox, Kwin is also available:

# pkg install plasma5-kwin

Then go to Preferences -> LXQt settings -> Session settings and select kwin_x11.

TODO

Contact

Contributors

LXQt (last edited 2017-03-04 16:20:40 by OlivierDuchateau)