Advertisement
Guest User

/usr/share/ngfd/events.d/telegrame_im.ini

a guest
Feb 18th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [%define foreground]
  2. sound.profile = im_fg.alert.tone => sound.filename
  3. sound.profile.fallback = im_fg.alert.tone@fallback => sound.filename
  4. sound.enabled.profile = im_fg.alert.enabled => sound.enabled
  5. sound.stream.event.id = message-new-email
  6. sound.stream.module-stream-restore.id = x-ringtone-volume
  7.  
  8. [%define foreground_haptic]
  9. haptic.type = event
  10. haptic.effect = strong
  11.  
  12. [telegrame_im_fg => context@call_state.mode == none]
  13. %include.1 = foreground
  14. %include.2 = foreground_haptic
  15.  
  16. [telegrame_im_fg]
  17. sink.null = empty
  18.  
  19. [telegrame_im => context@call_state.mode != none]
  20. %include.1 = foreground
  21. sound.enabled.profile = im.alert.enabled => sound.enabled
  22. sound.stream.event.id = event-in-call
  23. sound.stream.module-stream-restore.id = sink-input-by-media-role:indicator-tone
  24.  
  25. [telegrame_im => context@call_state.mode == none, play.mode == foreground, context@route.output.class == external]
  26. %include.1 = foreground
  27. %include.2 = foreground_haptic
  28. sound.stream.module-stream-restore.id = x-media-playback-volume
  29.  
  30. [telegrame_im => context@call_state.mode == none, play.mode == foreground]
  31. %include.1 = foreground
  32. %include.2 = foreground_haptic
  33.  
  34.  
  35. [%define default]
  36. sound.profile = im.alert.tone => sound.filename
  37. sound.profile.fallback = im.alert.tone@fallback => sound.filename
  38. sound.enabled.profile = im.alert.enabled => sound.enabled
  39. sound.stream.event.id = message-new-email
  40. sound.stream.module-stream-restore.id = x-ringtone-volume
  41. sound.stream.media.role = notification
  42. sound.delay-startup = 200
  43. sound.fade-stop = 600
  44. mce.led_pattern = PatternCommunicationIM
  45.  
  46. [%define haptic]
  47. haptic.type = event
  48. haptic.effect = message
  49.  
  50. [telegrame_im => context@call_state.mode != none]
  51. %include.1 = foreground
  52. sound.enabled.profile = im.alert.enabled => sound.enabled
  53. sound.stream.event.id = event-in-call
  54. sound.stream.module-stream-restore.id = sink-input-by-media-role:indicator-tone
  55.  
  56. [telegrame_im]
  57. %include.1 = haptic
  58.  
  59. [telegrame_im_exists => context@call_state.mode == none, context@route.output.class == external, context@media.state == inactive]
  60. %include.1 = default
  61. sound.stream.droid.device.additional-route = AUDIO_DEVICE_OUT_SPEAKER
  62.  
  63. [telegrame_im_exists => context@call_state.mode == none, context@route.output.class == external, context@media.state != inactive]
  64. %include.1 = default
  65. sound.stream.module-stream-restore.id = x-media-playback-volume
  66.  
  67. [telegrame_im_exists => context@call_state.mode != none]
  68. mce.led_pattern = PatternCommunicationIM
  69.  
  70. [telegrame_im_exists]
  71. %include.1 = default
  72.  
  73.  
  74. [telegrame_im @priority 100 => context@device_lock.state == manager_lockout]
  75. sink.null = empty
  76.  
  77. [telegrame_im_exists @priority 100 => context@device_lock.state == manager_lockout]
  78. sink.null = empty
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement