Created
March 9, 2016 19:58
-
-
Save Gabriel-p/05cab54dbe52b82b07dd to your computer and use it in GitHub Desktop.
Revisions
-
Gabriel-p created this gist
Mar 9, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,84 @@ #!/bin/bash # Origin: # https://github.com/karlapsite/eos/blob/master/Scripts/changeColor.sh # Theme generator (use 'Terminal' to output) # http://ciembor.github.io/4bit/# # Assign value if variable is unset or null. var_run="do" case $1 in def* ) echo "Changing to Default Scheme (Pantheon)" gsettings reset-recursively org.pantheon.terminal.settings var_run="not" ;; light|Light ) # light echo "Changing to Light Scheme (Solarized)" back_col='#fdfdf6f6e3e3' curs_col='#65657b7b8383' fore_col='#65657b7b8383' pall_col='#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3' ;; dark|Dark ) # dark echo "Changing to Dark Scheme (Solarized)" back_col='#00002B2B3636' curs_col='#838394949696' fore_col='#838394949696' pall_col='#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3' ;; cus*l*|l*cus* ) # customized light echo "Changing to Customized Light Scheme (Solarized)" back_col='#fdfdf6f6e3e3' curs_col='#65657b7b8383' fore_col='#65657b7b8383' pall_col='#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26264B4BB2B2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3' ;; cus*d*|d*cus* ) # customized dark echo "Changing to Customized Dark Scheme (Solarized)" back_col='#00001B1B2626' curs_col='#838394949696' fore_col='#838394949696' pall_col='#070736364242:#DCDC32322F2F:#858599990000:#B5B589890000:#26264B4BB2B2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3' ;; new ) # Solarized echo "Changing to New Scheme" back_col='#165361' curs_col='#da991f' fore_col='#da991f' pall_col='#292929:#312521:#213125:#2d3121:#252131:#31212d:#212d31:#bcbcbc:#5a5a5a:#614942:#426149:#5a6142:#494261:#61425a:#425a61:#e9e9e9' ;; * ) # default NC='\e[0m' WHITE='\e[1;37m' clear echo -e $WHITE"Usage: ./changeColor.sh [scheme]"$NC echo echo -e $WHITE"Available Schemes"$NC echo " default" echo " light" echo " dark" echo " customized_light" echo " customized_dark" echo echo -e $WHITE"Examples:"$NC echo " ./changeColor.sh default" echo " ./changeColor.sh customized_light" echo -e $WHITE"You can abrievate a little:"$NC echo " ./changeColor.sh cust_dark" echo echo -e $WHITE"Use the ./showColor.sh script to view your artwork!:"$NC echo var_run="not" ;; esac # Apply changes. if [ $var_run = "do" ]; then gsettings set org.pantheon.terminal.settings background $back_col &\ gsettings set org.pantheon.terminal.settings foreground $fore_col &\ gsettings set org.pantheon.terminal.settings cursor-color $curs_col &\ gsettings set org.pantheon.terminal.settings palette $pall_col fi