Say I get a new email, I get a notify osd message indicating subject and sender, and the messaging menu envelope turns blue. To clear the blue indicator, I usually click on the blue envelope, and select 'clear' – the last option in that menu. I would prefer to use a shortcut for doing this. Maybe a command in CCMS – but what would be the command?
Ubuntu – How to assign a keyboard shortcut to the ‘clear’ option in the messaging menu
messaging-menushortcut-keys
Best Answer
Try this (tested only in 12.04):
gdbus call --session --dest com.canonical.indicator.messages --object-path /com/canonical/indicator/messages/service --method com.canonical.indicator.messages.service.ClearAttention