Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [%define foreground]
- sound.profile = im_fg.alert.tone => sound.filename
- sound.profile.fallback = im_fg.alert.tone@fallback => sound.filename
- sound.enabled.profile = im_fg.alert.enabled => sound.enabled
- sound.stream.event.id = message-new-email
- sound.stream.module-stream-restore.id = x-ringtone-volume
- [%define foreground_haptic]
- haptic.type = event
- haptic.effect = strong
- [telegrame_im_fg => context@call_state.mode == none]
- %include.1 = foreground
- %include.2 = foreground_haptic
- [telegrame_im_fg]
- sink.null = empty
- [telegrame_im => context@call_state.mode != none]
- %include.1 = foreground
- sound.enabled.profile = im.alert.enabled => sound.enabled
- sound.stream.event.id = event-in-call
- sound.stream.module-stream-restore.id = sink-input-by-media-role:indicator-tone
- [telegrame_im => context@call_state.mode == none, play.mode == foreground, context@route.output.class == external]
- %include.1 = foreground
- %include.2 = foreground_haptic
- sound.stream.module-stream-restore.id = x-media-playback-volume
- [telegrame_im => context@call_state.mode == none, play.mode == foreground]
- %include.1 = foreground
- %include.2 = foreground_haptic
- [%define default]
- sound.profile = im.alert.tone => sound.filename
- sound.profile.fallback = im.alert.tone@fallback => sound.filename
- sound.enabled.profile = im.alert.enabled => sound.enabled
- sound.stream.event.id = message-new-email
- sound.stream.module-stream-restore.id = x-ringtone-volume
- sound.stream.media.role = notification
- sound.delay-startup = 200
- sound.fade-stop = 600
- mce.led_pattern = PatternCommunicationIM
- [%define haptic]
- haptic.type = event
- haptic.effect = message
- [telegrame_im => context@call_state.mode != none]
- %include.1 = foreground
- sound.enabled.profile = im.alert.enabled => sound.enabled
- sound.stream.event.id = event-in-call
- sound.stream.module-stream-restore.id = sink-input-by-media-role:indicator-tone
- [telegrame_im]
- %include.1 = haptic
- [telegrame_im_exists => context@call_state.mode == none, context@route.output.class == external, context@media.state == inactive]
- %include.1 = default
- sound.stream.droid.device.additional-route = AUDIO_DEVICE_OUT_SPEAKER
- [telegrame_im_exists => context@call_state.mode == none, context@route.output.class == external, context@media.state != inactive]
- %include.1 = default
- sound.stream.module-stream-restore.id = x-media-playback-volume
- [telegrame_im_exists => context@call_state.mode != none]
- mce.led_pattern = PatternCommunicationIM
- [telegrame_im_exists]
- %include.1 = default
- [telegrame_im @priority 100 => context@device_lock.state == manager_lockout]
- sink.null = empty
- [telegrame_im_exists @priority 100 => context@device_lock.state == manager_lockout]
- sink.null = empty
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement