Skip to content

Instantly share code, notes, and snippets.

@ivomarino
Last active April 24, 2018 18:42
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivomarino/b2ff5b26018d4f174629 to your computer and use it in GitHub Desktop.
Save ivomarino/b2ff5b26018d4f174629 to your computer and use it in GitHub Desktop.
momentum.sh - A simple script for allowing OSX users to use Momentum backgrounds
#!/bin/sh
#
# A simple script for allowing OSX users to use Momentum backgrounds found
# in this Chrome plugin https://chrome.google.com/webstore/detail/momentum/laookkfknpbbblfpciffpaejjkokdgca
# as Desktop backround.
#
# Quick one-liner installation and execution (requires wget on CLI):
#
# % wget -O ~/Pictures/momentum.sh https://gist.githubusercontent.com/ivomarino/b2ff5b26018d4f174629/raw/a91ee46e62968527f7908db2dea5b29d5708719e/momentum.sh && chmod +x ~/Pictures/momentum.sh && cd ~/Pictures && ./momentum.sh
#
# or manual install the plugin then save this script to ~/Pictures/momentum.sh, then:
#
# % chmod +x ~/Pictures/momentum.sh
# % cd ~/Pictures
# % ./momentum.sh
#
# That's it, now you can add ~/Pictures/momentum-backgrounds to your OSX background settings.
# Enjoy!
#
LINK=`find ~/Library/Application\ Support/Google/Chrome/Default/Extensions -name backgrounds | grep "0." | head -n1`
if [ -d "$LINK" ]
then
echo "Momentum backgrounds found, yeah!"
rm -f momentum-backgrounds
ln -s "$LINK" momentum-backgrounds
fi
@ivomarino
Copy link
Author

Quick one-liner installation (just requires wget on CLI):

% wget -O ~/Pictures/momentum.sh https://gist.githubusercontent.com/ivomarino/b2ff5b26018d4f174629/raw/9a431168ab3bf57d3c42bbb2fe0c21fd1bab55a1/momentum.sh && chmod +x ~/Pictures/momentum.sh && cd ~/Pictures && ./momentum.sh

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