The `makoctl` program dropped support for JSON output, so we have to use something a little more low-level to get it.
5 lines
296 B
Bash
Executable file
5 lines
296 B
Bash
Executable file
#!/usr/bin/env bash
|
|
notify-send "$1" "$2" -c multimedia -a "$3" \
|
|
$(busctl --user -j call org.freedesktop.Notifications /fr/emersion/Mako fr.emersion.Mako ListNotifications |
|
|
jq -r 'first(.data[][]|select(.category.data=="multimedia")|.id.data|["-r",.])[]') \
|
|
-h "INT:value:$4"
|