Last active
April 26, 2016 04:29
-
-
Save LordAmit/6134441 to your computer and use it in GitHub Desktop.
install.sh of Brightness Controller
This file contains 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 | |
# Install Brightness Controller script | |
# Download / Save this script. Make it executable. Run it. | |
# It requires having wget installed, if you use another command line interface downloader, change wget to it. | |
wget https://github.com/lordamit/Brightness/archive/master.zip | |
unzip -o master.zip -d ~/.Brightness | |
rm master.zip | |
echo "[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Brightness Controller | |
Exec=$HOME/.Brightness/Brightness-master/src/brightness.py | |
Terminal=false | |
Type=Application | |
Icon=$HOME/.Brightness/Brightness-master/img/brightness.svg | |
Categories=Application;" > ~/Desktop/Brightness.desktop | |
chmod +x ~/Desktop/Brightness.desktop |
Execute it without using terminal - and it will do nothing. It won't even replace/overwrite the existing files.
Execute it using terminal, and it will continuously ask whether it will overwrite something bla bla bla (y/n/A/c).
$ rm -rf ~/.Brightness
Is necessary.
Now it is this:
#!/bin/sh
# Install Brightness Controller script
# Download / Save this script. Make it executable. Run it.
# It requires having wget installed, if you use another command line interface downloader, change wget to it.
wget https://github.com/lordamit/Brightness/archive/master.zip
unzip -o master.zip -d ~/.Brightness
rm master.zip
echo "[Desktop Entry]
Encoding=UTF-8
Name=Brightness Controller
Exec=$HOME/.Brightness/Brightness-master/src/brightness.py
Terminal=false
Type=Application
Icon=$HOME/.Brightness/Brightness-master/img/brightness.svg
Categories=Application;" > ~/Desktop/Brightness.desktop
chmod +x ~/Desktop/Brightness.desktop
@zdroid 🎱
no
$ rm
now.
That's it.
👍 or 👎 ?
👍. You also found the path bug (Brightness-master/
) and I think that all works now.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It must be
💣