概要
- 萌えぶんちゅ http://moebuntu.web.fc2.com
- デフォルト以外の色テーマ設定に対応(させるスクリプトを書いた)
-
Vagrantfile
から、設定関連を別ファイルに分離(テーマ、壁紙、フォント) - 関連: [メモ] Virtualboxで、萌えぶんちゅ (moebuntu 16.10) <--- (その1)
環境
- その1と同じ
手順
-
git clone
gitクローンgit clone https://github.com/mt08xx/Vagrantfiles.git moebuntu cd moebuntu/moebuntu ls -l
実行例$ git clone https://github.com/mt08xx/Vagrantfiles.git moebuntu Cloning into 'moebuntu'... remote: Counting objects: 28, done. remote: Compressing objects: 100% (23/23), done. remote: Total 28 (delta 4), reused 17 (delta 2), pack-reused 0 Unpacking objects: 100% (28/28), done. $ cd moebuntu/moebuntu $ ls -1 MoeSetupFont.sh MoeSetupTheme.sh MoeSetupWallpaper.sh README.md Vagrantfile
-
以下のファイルをそろえて、
Vagrantfile
と同じとフォルダにいれる。# 必須 AKUBIN1.34.TTF DashIcons3.tar.gz MoePinkIcons_150719.tar.gz moebuntu_logo800new.png # http://moebuntu.web.fc2.com/moehowto.html "その10 moebuntuのロゴを設定する。" あたりから Moe-Pink10.tar.gz # http://moebuntu.blog48.fc2.com/blog-entry-1022.html Moe-Blue10.tar.gz # http://moebuntu.blog48.fc2.com/blog-entry-1027.html theAnimeGallery_12631_1600x1200.jpg # http://www.theanimegallery.com/image/12631 theAnimeGallery_128810_1600x1200.jpg # http://www.theanimegallery.com/image/128810 # # その他テーマ # Moe-BlueGreen9.tar.gz Moe-Green9.tar.gz Moe-Navy9.tar.gz Moe-Orange9.tar.gz Moe-Purple9.tar.gz Moe-Red9.tar.gz Moe-Yellow9.tar.gz # # 壁紙たち # Angel_1600x1200_logo.jpg braid_hair_girl_1600x1200_logo.png clover_girl_1600x1200_logo.png eva_chin_1600x1200_logo.png Hina_1600x1200_logo.jpg hinomoto_oniko_1600-1200_logo.jpg onyanoko1600x1200_logo.png Peace_sign_girl1600x1200_logo.png Yukarin_1600x1200_logo.jpg
-
Vagantfile
の編集Vagrantfile... ## この辺をBlueに使用する色テーマが変わる。とりあえず背景まで対応してるのは、Pink10とBlue10 export MOE_BASE_COLOR=Pink export MOE_THEME_REVISION=10 ## が、インストール後、コマンドラインから、設定できるので、デフォルトのぴんくのままでもいいかも。 ...
time vagrant up ; vagrant reload
色テーマを変えたい
-
vagrant ssh
でログイン -
コマンドをうつ(
Vagrantfile
のフォルダにMoe-{色名}{版数字}.tar.gz
を入れておく)どれか/vagrant/MoeSetupTheme.sh Pink # 桃 /vagrant/MoeSetupTheme.sh Blue # 青 /vagrant/MoeSetupTheme.sh BlueGreen # 青緑 /vagrant/MoeSetupTheme.sh Yellow # 黄 /vagrant/MoeSetupTheme.sh Red # 赤 /vagrant/MoeSetupTheme.sh Orange # 橙 /vagrant/MoeSetupTheme.sh Navy # 青 /vagrant/MoeSetupTheme.sh Green # 緑 /vagrant/MoeSetupTheme.sh Purple # 紫
- 第一引数:色、第二引数:版指定
/vagrant/MoeSetupTheme.sh Green 9
# 版の指定をしなくても、7~15の間で探しにいく。複数ある場合は、大きい数字、、になるはず.. <=$(seq 7 15)
- 第一引数:色、第二引数:版指定
壁紙を変えたい
-
vagrant ssh
でログイン - コマンドをうつ(画像ファイルをを
Vagrantfile
のフォルダに入れておく)
その他
- フォント、画像、リソースファイルは、ライセンスなどいろいろありそうなので、自動取得する予定はない。ので公式ページなどを参考に入手する
=>使用上の注意をよく読み、用法・用量を守って正しくお使い下さい
... です -
MoeSetupWallpaper.sh
のなかに、上記の壁紙のURLを記述。
スクリプトのお話
-
moebuntu wikiのmoebuntu使用カラー一覧から、エクセル使って、↓のようなテーブルをつくり、
${MOE_COLOR_TABLE["${色名}${インデックス}"]}
で使用している。3番目と6番目しか使ってないんだけど.declare -r -A MOE_COLOR_TABLE=( [Pink0]="#fff4ff" [Blue0]="#F4F8F9" [BlueGreen0]="#edf7f5" [Yellow0]="#FFFCF4" [Red0]="#fff9f9" [Orange0]="#fffbf7" [Navy0]="#f9faff" [Green0]="#FBFFF7" [Purple0]="#fbf7ff" [Pink1]="#FEA5FA" [Blue1]="#7bdcf7" [BlueGreen1]="#92dddd" [Yellow1]="#FFD335" [Red1]="#f89494" [Orange1]="#ffb420" [Navy1]="#8a95ec" [Green1]="#b5eb82" [Purple1]="#ba7ef7" [Pink2]="#ff66f7" [Blue2]="#31ccf7" [BlueGreen2]="#5cd7db" [Yellow2]="#ffcd19" [Red2]="#f86a6a" [Orange2]="#ffaa00" [Navy2]="#7b88ea" [Green2]="#a3e663" [Purple2]="#b46ef9" [Pink3]="#ff4cf6" [Blue3]="#18C7F7" [BlueGreen3]="#2aced3" [Yellow3]="#ffbb35" [Red3]="#f75757" [Orange3]="#ff9900" [Navy3]="#6d7be8" [Green3]="#6ee500" [Purple3]="#a95af8" [Pink4]="#ff33f4" [Blue4]="#00c1ff" [BlueGreen4]="#00ccd3" [Yellow4]="#ff8a00" [Red4]="#f74545" [Orange4]="#ff6a00" [Navy4]="#2e44e8" [Green4]="#56b200" [Purple4]="#9431f7" [Pink5]="#ffccff" [Blue5]="#ade7f7" [BlueGreen5]="#c6efed" [Yellow5]="#ffe399" [Red5]="#ffcccc" [Orange5]="#ffdbba" [Navy5]="#ced1e5" [Green5]="#c3e5a0" [Purple5]="#d7b6fa" [Pink6]="#cc84c8" [Blue6]="#66b5cc" [BlueGreen6]="#6fa8a5" [Yellow6]="#cca92a" [Red6]="#cc7a7a" [Orange6]="#e5a21d" [Navy6]="#6971b2" [Green6]="#6bb724" [Purple6]="#9f78c6" )