Difference between revisions of "Trigger: System Setting Change"
| Line 15: | Line 15: | ||
* '''Enable Regex''': When enabled, the setting pattern is treated as a regular expression | * '''Enable Regex''': When enabled, the setting pattern is treated as a regular expression | ||
| − | ''' | + | ''' Magic Text ''' |
| − | + | When triggered the following magic text values are available to be used: | |
* '''system_setting_category''': The category of the setting that changed ("System", "Global", or "Secure") | * '''system_setting_category''': The category of the setting that changed ("System", "Global", or "Secure") | ||
Latest revision as of 21:39, 7 January 2026
This trigger will fire when a system setting from the device's system, secure or global settings table is updated. This allows you to react to changes in Android system settings made by the user or other applications.
Options
- Setting Tables: Select which settings tables to monitor:
- System: General system settings (e.g., screen brightness, font size)
- Global: Device-wide settings that apply to all users (e.g., airplane mode, Bluetooth)
- Secure: Security-related settings (e.g., accessibility services, location providers)
- Setting Pattern: Optionally specify a pattern to match specific setting names:
- Leave empty to trigger on any setting change in the selected tables
- Enter a specific setting name to only trigger when that setting changes
- Supports Magic Text for dynamic pattern matching
- Enable Regex: When enabled, the setting pattern is treated as a regular expression
Magic Text
When triggered the following magic text values are available to be used:
- system_setting_category: The category of the setting that changed ("System", "Global", or "Secure")
- system_setting_key: The name/key of the setting that was modified
- system_setting_value: The new value of the setting
Configuration
A searchable dropdown is provided showing all available settings on your device, organized by their current values and categories. Selecting a setting from the list will automatically populate the pattern field and select the appropriate settings table.
Examples
Triggers System Setting Change (accessibility_display_inversion_enabled)
Actions
If [system_setting_value] = 1
Notification: Color Inversion Enabled
Else
Notification: Color Inversion Disabled
End If
Notify when display color inversion is toggled.
Triggers System Setting Change (Any)
Actions
Popup Message: Setting Changed
{system_setting_category}: {system_setting_key} = {system_setting_value}
Debug macro to log all system setting changes.
Notes
- At least one settings table (System, Global, or Secure) must be selected.
- The trigger monitors the Android ContentResolver for changes to the settings database.
- Some settings may require specific permissions to read their values.
- This trigger is useful for responding to user actions in Android Settings or changes made by other apps.
- Common settings to monitor include: screen_brightness, airplane_mode_on, bluetooth_on, wifi_on, location_mode, accessibility_enabled.
- Wild card patterns can be used to match multiple settings with similar names.
See Also