Skip to content

sailfishos-oneplus5/gesture-daemon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gesture-daemon

A userland daemon for handling sleep mode gestures in Sailfish OS.

Configuration

Enabled gestures are controlled via dconf @ /apps/onyxgestures/enabled-gestures:

[apps/onyxgestures]
enabled-gestures=['double_tap', 'flashlight', 'music', 'camera', 'voicecall']

There is also a Sailfish OS settings plugin available for simple control of these values through the settings app.

Adaptation

If your device supports this feature, getting sleep mode gestures working in SFOS may need the following changes:

  1. Make touchscreen driver emit EV_MSC and MSC_GESTURE events instead of EV_KEY and KEY_* ones
  2. Create an MCE config to match the touchscreen driver emitted codes
  3. Fork and edit the sources as needed to match your device's /proc/touchpanel/* entries
    1. If you have a different ${gesture}_enable entry for different gestures => change the existing sources as you wish
    2. If you have a single gesture_enable entry => revert the following commit

About

A userland daemon for handling sleep mode gestures in Sailfish OS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 95.4%
  • QMake 4.6%