Skip to content

Instantly share code, notes, and snippets.

@rmuslimov
Last active December 5, 2015 08:24
Show Gist options
  • Save rmuslimov/2d74cacd5e0ae827663e to your computer and use it in GitHub Desktop.
Save rmuslimov/2d74cacd5e0ae827663e to your computer and use it in GitHub Desktop.
Anybar elisp function
(defun update-anybar-color (color &optional port)
(shell-command
(format "echo -n \"%s\" | nc -4u -w0 localhost %s"
color (or port 1738))))
;; (update-anybar-color "red")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment