OESF Portables Forum
Model Specific Forums => Gemini PDA => Gemini PDA - Android => Topic started by: Pete G. on June 27, 2018, 06:28:42 pm
-
I thought the termux-widget add-on -- which supposedly adds shortcuts to termux scripts on your home screen -- would be a useful thing to have, so I installed it, but I can't get any action out of it. I gather that any script in $HOME/.shortcuts should appear in a screen shortcut, but I never see anything. The web is totally unhelpful. Has anybody used it?
-
I've got it working. The add-on does exactly what it says on the tin: creates widgets. But it might not be obvious what a ‘widget’ is in the Android world…
Go to the home screen. Find an empty space, and tap and hold on it. The screen will zoom out a bit, leaving room for three new icons at the bottom: WALLPAPERS, WIDGETS, and SETTINGS. Tap on WIDGETS, scroll down to the Termux section, drag the ‘Single shortcut 1 x 1’ onto your home screen somewhere, and then choose from the list of shortcuts (i.e. the files you created in ~/.shortcuts). Hey presto!
(Caused me some head-scratching and web searching, too…)
It looks like any files in ~/.shortcuts are eligible; they don't need to be have the executable bit set, or have a particular filename or extension, or have anything special on the first line.
-
I've got it working.
Yaay!! Thanks! Me, too, now. I have quite a few things to learn about Android!