Skip to content

hipek8/Linux-HeadphoneButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

NAME

Linux::HeadphoneButton - fires commands when headphone microphone button is pressed

SYNOPSIS

#config.json
{ 
"CLICK-INTERVAL" : "1",
"ACTIONS" : {
    "S" : "command to run when short clicked", 
    "SS" : "double short click",
    "L" : "run when long click"
    "LSL" : "long-short-long sequence"
    //...
    }
}

Run with

./headphone_button& disown

DESCRIPTION

Linux::HeadphoneButton listens with acpi_listen for mic unplug - plug events Creates sequence and runs command defined in config.json file

AUTHOR

Paweł Szulc [email protected]

COPYRIGHT AND LICENSE

Copyright 2016 Paweł Szulc

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages