Last active
April 24, 2018 18:42
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quick one-liner installation (just requires wget on CLI):