Command line equivalents of GUI commands
asked 2014-12-11 17:00:40 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
Are there command-line tools that would allow for remote execution and doing actions ie. like modifying a contact parameters, creating new and others?
- Call number
- Send SMS
- Search for SMS
- Screen rotation
- Lock device
- Read from microphone
- Take screenshot
- Enable mobile data
- Enable WiFi
- Enable flight mode
- Enable Bluetooth
- Enable/disable accounts
- Check battery status
- Sync CalDav account
- Change ambience
- Manipulate timers and alarms
- Put text to clipboard
- Get GSM cell coordinates
- Get geolocation with GPS
- Control USB mode
- Play video
- Change default ringtone
- Change profile (Silent / Normal)
- Control notifications
- Set off an alarm
- Saving SMS / text conversations
Android
Assorted
- SFOS Cheat Sheet: not strictly GUI-equivalent things, but covers package management, restarting certain services, and other bits and bobs. Generally a handy reference.
D-bus commands for things like GUI actions; This one turns on Bluetooth
dbus-send --type=method_call --dest=com.jolla.Bluetooth /com/jolla/Bluetooth com.jolla.Bluetooth.startSession
This command allows you to create a new file with contents;
cat > makenew.file
enter 'add contents' - ctrl+c to finish.The net is littered with info on this type of thing, as Jolla basically runs on GNU/Linux and I'm certainly a novice when it comes to CLI environments.
This site is a good guide, but remember that not all commands there apply to Sailfish;
http://linuxcommand.org/learning_the_shell.php
Regards,
Spam Hunter ( 2014-12-11 17:52:43 +0200 )editWell, I feel quite comfortable in command line, I was actually looking for some remotely triggered automation - over ssh ie. - hence the question.
piero ( 2014-12-15 00:30:43 +0200 )edit@piero, there are many valuable threads started by @schturman. We might want to add them here. I am happy to have found your wiki, as I was tempted to start a duplicate already.
lakutalo ( 2015-12-22 13:30:24 +0200 )edit@lakutalo, thanks, indeed. Feel free to extend the list. It's a wiki after all.
piero ( 2015-12-23 02:40:36 +0200 )editUsb mode setting can also be done from the command line, there is the usb_moded_util
Get the supported modes: usb_moded_util -m Get the currently set mode: usb_moded_util -q Set a new mode: usb_moded_util -s <mode_name> Set a new mode by default: usb_moded_util -c <mode_name></mode_name></mode_name>
usb_moded_util -h will give you a complete list of options
Philippe De Swert ( 2016-01-14 00:33:52 +0200 )edit