项目作者: rafspiny

项目描述 :
Enlightenment gadget for convertible laptops
高级语言: C
项目地址: git://github.com/rafspiny/convertible.git
创建时间: 2019-05-02T21:27:08Z
项目社区:https://github.com/rafspiny/convertible

开源协议:

下载


This gadget is meant to improve screen rotation quality by leveraging on iio-sensor-proxy.
iio-sensor-proxy is a D-Bus proxy for accelerometers and ambient light sensors.

This gadget, merely connect to DBUS and read the information put there by iio-sensor-proxy, provided that the gyroscope is supported.

Installation

To install it please run:

  1. meson build --prefix /usr
  2. cd build
  3. ninja
  4. sudo ninja install

This will create a gadget in the //enlightenment/modules
The gadget structure is like the following:

  1. modules
  2. |
  3. |
  4. └───convertible
  5. | |
  6. | └───module.desktop
  7. | └───linux-gnu-x86_64-ver-0.23
  8. | | | # The gadget you compiled
  9. | | └───e_gadget_convertible
  10. | └───e-gadget-covnertible.edj
  11. └───... # Other gadgets

Usage

Once the gadget has been installed, you need to enable the module and add the gadget to your bar.

For completeness, the following picture shows where to enable the module.
Enabling module

Then you should see a new gadget named convertible. Add it the your gadget bar.
Added gadget

The main blue rotating icon is clickable. It is meant to lock/unlock the automatic rotation.
When grey, rotation is locked and no matter how you move your convertible, it won’t rotate the screen.

When blue, rotation is unlocked and the screen(s) will rotate according to the data coming trough D-Bus

You can see it in action in the following video:
E convertible gadget in action