Skip to content

Instantly share code, notes, and snippets.

@magdesign
Created February 12, 2024 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magdesign/085344b504409839e791378dbb5aa792 to your computer and use it in GitHub Desktop.
Save magdesign/085344b504409839e791378dbb5aa792 to your computer and use it in GitHub Desktop.
powerbutton_four
[
{
"type": "event",
"event_name": "power_pressed",
"transitions": [
{
"type": "delay",
"delay_duration": 400000000,
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"powerbutton_three"
]
}
]
},
{
"type": "event",
"event_name": "power_released",
"transitions": [
{
"type": "delay",
"delay_duration": 400000000,
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"powerbutton_one"
]
}
]
},
{
"type": "event",
"event_name": "power_released",
"transitions": [
{
"type": "delay",
"delay_duration": 400000000,
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"powerbutton_two"
]
}
]
},
{
"type": "event",
"event_name": "power_released",
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"powerbutton_three"
]
}
]
},
{
"type": "event",
"event_name": "power_released",
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"powerbutton_four"
]
}
]
}
]
}
]
}
]
},
{
"type": "event",
"event_name": "voldown_pressed",
"transitions": [
{
"type": "delay",
"delay_duration": 400000000,
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"voldown_three"
]
}
]
},
{
"type": "event",
"event_name": "voldown_released",
"transitions": [
{
"type": "delay",
"delay_duration": 400000000,
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"voldown_one"
]
}
]
},
{
"type": "event",
"event_name": "voldown_released",
"transitions": [
{
"type": "delay",
"delay_duration": 400000000,
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"voldown_two"
]
}
]
},
{
"type": "event",
"event_name": "voldown_released",
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"voldown_three"
]
}
]
}
]
}
]
}
]
},
{
"type": "event",
"event_name": "volup_pressed",
"transitions": [
{
"type": "delay",
"delay_duration": 400000000,
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"volup_three"
]
}
]
},
{
"type": "event",
"event_name": "volup_released",
"transitions": [
{
"type": "delay",
"delay_duration": 400000000,
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"volup_one"
]
}
]
},
{
"type": "event",
"event_name": "volup_released",
"transitions": [
{
"type": "delay",
"delay_duration": 400000000,
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"volup_two"
]
}
]
},
{
"type": "event",
"event_name": "volup_released",
"transitions": [
{
"type": "exec",
"command": [
"setsid",
"-f",
"sxmo_hook_inputhandler.sh",
"volup_three"
]
}
]
}
]
}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment