Hooks and userscripts: POST 'EM! - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Sxmo on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=161) +---- Thread: Hooks and userscripts: POST 'EM! (/showthread.php?tid=12914) |
Hooks and userscripts: POST 'EM! - MungFuSensei - 01-27-2021 Hook-seller! I need your STRONGEST hooks and userscripts! I'll start. Surf gesture so that back and enter go back and forward in history. Code: #!/bin/sh Ring hook that checks if the number is a contact. If so, it will ring, if not, it won't! This cuts down on being annoyed by robo-callers. It also checks if the file $HOME/.config/sxmo/silent exists. If so, it won't ring. I stole the main bits of the ring/pickup scripts from someone here (if it's you, sound off and thanks!) but added the contact/silent checking. Code: #!/usr/bin/env sh Code: #!/bin/sh Code: #!/usr/bin/env sh I'm not the greatest shell scripter, but with just a little bit here and there, sxmo gets comfier and comfier. It is now "legs go numb on the toilet while looking at memes on the pinephone" worthy. I'm also looking for some apps hook examples if you got 'em! I can't seem to make mine work without breaking something. |