Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

䷉Craft macOS Menu Bar Applications with Rscript & BitBar

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

hrbrmstr/bitbar

Repository files navigation

Project Status: Active – The project has reached a stable, usable state and is being actively developed.Signed bySigned commit %Linux build Status
Minimal R VersionLicense

bitbar

Craft macOS Menu Bar Applications with Rscript

Description

Mat Ryer’s macOS utilityhttps://getbitbar.com/ enables any script tobecome a menu bar application. Tools are provided to make it easier tocraft these scripts.

Installing BitBar

If you havehomebrew installed, you can do:

brew cask install bitbar

Otherwisegrab the latestrelease and installit the hard way.

Open the application and choose the directory you want to be yourplugins directory. This is where your menubar scripts will go. (I use~/Library/BitBar/Plugins but you can pick any directory; just makesure it isn’t one with a gazillion files as that impacts BitBar’sperformance).

What’s Inside The Tin

The following functions are implemented:

  • add_entry: Add an entry to the menu
  • applescript: Execute AppleScript and Return Results
  • b64_image: Return a base64 encoded string of an image (localfilesystem or URL)
  • bitbar_plugins_dir: BitBar plugins directory
  • new_bitbar_script: Helper to get started with a new BitBar bitbarscript
  • open_bitbar_dir: Open BitBar Plugins Directory in the Finder
  • r_logo_small: Images that come with the package
  • reachable: Is the internet accessible?

There are also two RStudio Addins, one with a GUI for entering in thescript metadata & starting a new BitBar {bitbar} script and one foropening up the BitBar plugins directory in the Finder.

Installation

remotes::install_git("https://git.rud.is/hrbrmstr/bitbar.git")# orremotes::install_git("https://git.sr.ht/~hrbrmstr/bitbar")# orremotes::install_gitlab("hrbrmstr/bitbar")# orremotes::install_bitbucket("hrbrmstr/bitbar")# orremotes::install_github("hrbrmstr/bitbar")

NOTE: To use the ‘remotes’ install options you will need to have the{remotes} package installed.

Usage

library(bitbar)# current versionpackageVersion("bitbar")## [1] '0.1.0'

This will open up amy-awesome-bitbar-script.R in RStudio (ifavailable) or whatever editorfile.edit() is configured to use.

new_bitbar_script(save_as= file.path(bitbar_plugins_dir(),"my-awesome-bitbar-script.R"),title=":blue_heart:",description="Example BitBar Script")

bitbar Metrics

Lang# Files(%)LoC(%)Blank lines(%)# Lines(%)
R120.922210.94630.731220.75
Rmd10.08130.06230.27410.25

Code of Conduct

Please note that this project is released with a Contributor Code ofConduct. By participating in this project you agree to abide by itsterms.

About

䷉Craft macOS Menu Bar Applications with Rscript & BitBar

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp