-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: fmrl-client
action: blob
revision:
path_from: fmrl-status-gdbus-notify
revision_from: refs/heads/trunk:
path_to:
revision_to:

git.thebackupbox.net

fmrl-client

git://git.thebackupbox.net/fmrl-client

blob of:

fmrl-client

/ fmrl-status-gdbus-notify

refs/heads/trunk:/fmrl-status-gdbus-notify
 #!/usr/bin/env bash

 if [ "$1" = "--force" -o "$1" = "-f" ];then
   force=1
   shift
 fi

 while [ "$1" ];do
 #  . "$(which fmrl-get-status)"
   . fmrl-parse-status
   if [ "$u_code" != 200 -a ! "$force" ];then
     echo "code: $code user: $1" >&2
     shift
     continue
   fi

   # not used atm: actions='["label", "command"]'
   actions='[]'

   gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify -- \
   "fmrl-client" \
   "0" \
   "${avatar_cache}" \
   "fmrl status for: \"$u_name\" <@${user}@${host}>" \
   "${u_emoji} ${u_status}"$'\n'"${u_media_verb} ${u_media}"$'\n'"${u_uri}" \
   "${actions}" \
   "[]" \
   "int32 0"

   shift
 done

-- Response ended

-- Page fetched on Sun Jun 2 17:00:59 2024