Skip to content

Instantly share code, notes, and snippets.

@lduboeuf
Last active September 4, 2025 14:29
Show Gist options
  • Select an option

  • Save lduboeuf/6c4b1177d0984297ed6818c2521f78b8 to your computer and use it in GitHub Desktop.

Select an option

Save lduboeuf/6c4b1177d0984297ed6818c2521f78b8 to your computer and use it in GitHub Desktop.

Revisions

  1. lduboeuf revised this gist Sep 4, 2025. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -2,11 +2,10 @@ monitor Notifs:
    dbus-monitor interface=org.freedesktop.Notifications


    gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
    '"{\"message\": \"foobar\", \"notification\":{\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'
    gdbus call --session --dest com.lomiri.Postal --object-path /com/lomiri/Postal/dekko2_2edekkoproject --method com.lomiri.Postal.Post dekko2.dekkoproject_dekko '"{\"message\": \"foobar\", \"notification\":{\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'

    Avec son:
    gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
    gdbus call --session --dest com.lomiri.Postal --object-path /com/lomiri/Postal/dekko2_2edekkoproject --method com.lomiri.Postal.Post dekko2.dekkoproject_dekko \
    '"{\"message\": \"foobar\", \"notification\":{\"sound\": \"test.ogg\",\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'

    DEBUG push client:
  2. lduboeuf revised this gist Jan 23, 2024. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    monitor Notifs:
    dbus-monitor interface=org.freedesktop.Notifications


    gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
    '"{\"message\": \"foobar\", \"notification\":{\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'
  3. lduboeuf revised this gist Jan 23, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ Notif simple:
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 1 "back" "hi mom3" "blah blah blah" "[]" '{}' 5000

    persistent notif:
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 3 "security-alert" "hi mom3" "blah blah blah" "[]" '{"urgency": <1>}' 5000
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 3 "security-alert" "hi mom3" "blah blah blah" "[]" '{"urgency": <2>}' 5000

    notif avec secondary icon
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 1 "message" "hi mom3" "blah blah blah" "[]" '{"x-lomiri-secondary-icon": <string "incoming-call">}' 5000
  4. lduboeuf revised this gist Oct 30, 2023. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -14,4 +14,7 @@ Notif simple:
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 1 "back" "hi mom3" "blah blah blah" "[]" '{}' 5000

    persistent notif:
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 3 "security-alert" "hi mom3" "blah blah blah" "[]" '{"urgency": <1>}' 5000
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 3 "security-alert" "hi mom3" "blah blah blah" "[]" '{"urgency": <1>}' 5000

    notif avec secondary icon
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 1 "message" "hi mom3" "blah blah blah" "[]" '{"x-lomiri-secondary-icon": <string "incoming-call">}' 5000
  5. lduboeuf revised this gist Aug 11, 2023. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,7 @@
    kill the process, it is auto relaunched

    Notif simple:
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 1 "back" "hi mom3" "blah blah blah" "[]" '{}' 5000
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 1 "back" "hi mom3" "blah blah blah" "[]" '{}' 5000

    persistent notif:
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 3 "security-alert" "hi mom3" "blah blah blah" "[]" '{"urgency": <1>}' 5000
  6. lduboeuf revised this gist May 18, 2022. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,7 @@

    DEBUG push client:
    /etc/xdg/ubuntu-push-client/config.json -> log level = debug
    kill the process, it is auto relaunched
    kill the process, it is auto relaunched

    Notif simple:
    gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify "notify-send" 1 "back" "hi mom3" "blah blah blah" "[]" '{}' 5000
  7. lduboeuf revised this gist Sep 24, 2021. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,11 @@

    gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
    '"{\"message\": \"foobar\", \"notification\":{\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'
    '"{\"message\": \"foobar\", \"notification\":{\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'

    Avec son:
    gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
    '"{\"message\": \"foobar\", \"notification\":{\"sound\": \"test.ogg\",\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'

    DEBUG push client:
    /etc/xdg/ubuntu-push-client/config.json -> log level = debug
    kill the process, it is auto relaunched
  8. lduboeuf revised this gist Sep 24, 2021. No changes.
  9. lduboeuf created this gist Sep 24, 2021.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    gdbus call --session --dest com.ubuntu.Postal --object-path /com/ubuntu/Postal/dekko2_2edekkoproject --method com.ubuntu.Postal.Post dekko2.dekkoproject_dekko \
    '"{\"message\": \"foobar\", \"notification\":{\"card\": {\"summary\": \"yes\", \"body\": \"hello\", \"popup\": true, \"persist\": true}}}"'