Skip to content

A simple application to turn on the flashlight when the phone is shaken

Notifications You must be signed in to change notification settings

BugInACode/pine_gestures

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

A simple application for the pinephone to launch applications using gestures. Note that the autostart only works on mobian.

Compiling

on phone or computer:
	make
	
on phone:
	sudo make install

Usage

pine_gestures [--shake_cmd <cmd>] [--twist_cmd <cmd>];
	--shake_cmd		path to cmd to be triggered by shake gesture or 'none' to disable. default: /usr/bin/toggleflash
    --twist_cmd		path to cmd to be triggered by twist gesture or 'none' to disable. default: /usr/bin/pinhole

Autostart

Copy the service file to the systemd folder, ensure that you are in the pine_gestures directory

sudo cp gestures.service /etc/systemd/system/gestures.service

Then simple start the service with

sudo systemctl start gestures.service

And make sure it is active with

sudo systemctl status gestures.service

About

A simple application to turn on the flashlight when the phone is shaken

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 94.9%
  • Makefile 4.2%
  • Shell 0.9%