Skip to content

Instantly share code, notes, and snippets.

@benaryorg
Created May 2, 2018 22:21
Show Gist options
  • Save benaryorg/60f1f7ed188c3ea8020c8f1276d6a3bd to your computer and use it in GitHub Desktop.
Save benaryorg/60f1f7ed188c3ea8020c8f1276d6a3bd to your computer and use it in GitHub Desktop.
#!/usr/bin/env zsh
artist="${1?}"
title="${2?}"
album="${3?}"
awesome-client <<END
naughty = require("naughty")
naughty.notify({title="MoC",text=$(jq -R . <<<"#np ${artist} – ${title} (${album})")})
END
@benaryorg
Copy link
Author

Use in moc using something like:

OnSongChange = "/usr/bin/env np %a %t %r"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment