I am trying to create an alarm in Gnome Clocks using the terminal. I am trying to use gsettings, but no alarms are created.
- Create an alarm using the user interface
- Inspect the value using
gsettings
gsettings get org.gnome.clocks alarms
[{'name': <'test for so'>, 'id': <'01da159f5b290d7b8c2e885c65088901'>, 'active': <true>, 'hour': <13>, 'minute': <41>, 'days': <@ai []>, 'snooze_minutes': <10>, 'ring_minutes': <5>}]
- Delete the alarm using the user interface
- Verify the alarm was deleted using
gsettings
gsettings get org.gnome.clocks alarms
@aa{sv} []
- Try to create an alarm using
gsettingswith a newid
gsettings set org.gnome.clocks alarms "[{'name': <'test for so'>, 'id': <'4e52429bb11746d39dcbe566597c3c8a'>, 'active': <true>, 'hour': <13>, 'minute': <41>, 'days': <@ai []>, 'snooze_minutes': <10>, 'ring_minutes': <5>}]"
- Verify value was persisted
gsettings get org.gnome.clocks alarms
[{'name': <'test for so'>, 'id': <'4e52429bb11746d39dcbe566597c3c8a'>, 'active': <true>, 'hour': <13>, 'minute': <41>, 'days': <@ai []>, 'snooze_minutes': <10>, 'ring_minutes': <5>}]
- Expect alarm to exist in Gnome Clocks, but there are no alarms
While not a solution to my problem using
gsettingsI was able to simulate an alarm usingnotify-sendwithat.e.g.
at "now + 1 hour" <<< "notify-send foo bar"