-
Notifications
You must be signed in to change notification settings - Fork 114
Dropbox Client
memeplex edited this page Jun 23, 2018
·
3 revisions
#!/usr/bin/env bash
message() {
echo "| iconName=dropboxstatus-$1"
echo "---"
echo "Open folder | href=file://$HOME/Dropbox iconName=folder"
echo "Visit site | href=https://www.dropbox.com iconName=network"
[[ $1 == "x" ]] && echo "Restart | bash='dropbox-cli start' " \
"iconName=player_start terminal=false"
}
case $(dropbox-cli status) in
"Up to date") message "idle" ;;
"Syncing"*) message "busy"; message "busy2" ;;
*) message "x" ;;
esac
Save as ~/.config/argos/dropbox.6s.sh
.