fix: rewrite JSON notification access script
The `makoctl` program dropped support for JSON output, so we have to use something a little more low-level to get it.
This commit is contained in:
parent
c98b527a01
commit
56a0a8c79a
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
notify-send "$1" "$2" -c multimedia -a "$3" \
|
notify-send "$1" "$2" -c multimedia -a "$3" \
|
||||||
$(makoctl list | jq -r 'first(.data[][]|select(.category.data=="multimedia")|.id.data|["-r",.])[]') \
|
$(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"
|
-h "INT:value:$4"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue