All Projects → GINK03 → Kawaii Term

GINK03 / Kawaii Term

terminalを可愛くします

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Kawaii Term

Ascii
👾 ASCII Roulette :: ascii art video chat on the cli
Stars: ✭ 202 (+98.04%)
Mutual labels:  terminal, ascii-art
Graphical
Open-Source, Platform independent module that consumes data points as input and plots them on a 2D graph [Scatter / Bar / Line] on the PowerShell Console/Terminal
Stars: ✭ 237 (+132.35%)
Mutual labels:  terminal, ascii-art
Zero
A 3D renderer written in JavaScript and rendered to the terminal.
Stars: ✭ 2,307 (+2161.76%)
Mutual labels:  terminal, ascii-art
Tty Pie
Draw pie charts in your terminal window
Stars: ✭ 125 (+22.55%)
Mutual labels:  terminal, ascii-art
Diagram
CLI app to convert ASCII arts into hand drawn diagrams.
Stars: ✭ 642 (+529.41%)
Mutual labels:  terminal, ascii-art
Cowsay Files
A collection of additional/alternative cowsay files.
Stars: ✭ 216 (+111.76%)
Mutual labels:  terminal, ascii-art
Wttr.in
⛅ The right way to check the weather
Stars: ✭ 16,345 (+15924.51%)
Mutual labels:  terminal, ascii-art
Csconsoleformat
.NET C# library for advanced formatting of console output [Apache]
Stars: ✭ 296 (+190.2%)
Mutual labels:  terminal, ascii-art
Ftxui
💻 C++ Functional Terminal User Interface. ❤️
Stars: ✭ 433 (+324.51%)
Mutual labels:  terminal, ascii-art
Tart
Tart - draw ASCII art in the terminal with your mouse!
Stars: ✭ 296 (+190.2%)
Mutual labels:  terminal, ascii-art
Lehar
Visualize data using relative ordering
Stars: ✭ 81 (-20.59%)
Mutual labels:  terminal, ascii-art
Wego
weather app for the terminal
Stars: ✭ 6,918 (+6682.35%)
Mutual labels:  terminal, ascii-art
Youtube Terminal
📺 Stream YouTube videos as ascii art in the terminal!
Stars: ✭ 84 (-17.65%)
Mutual labels:  terminal, ascii-art
Tooling
Advancing Node.js as a framework for writing great tools
Stars: ✭ 98 (-3.92%)
Mutual labels:  terminal
Picharsso
🎨 A utility for converting images to text art.
Stars: ✭ 100 (-1.96%)
Mutual labels:  ascii-art
Nord Hyper
An arctic, north-bluish clean and elegant Hyper theme plugin.
Stars: ✭ 96 (-5.88%)
Mutual labels:  terminal
Zui
⬢ Zsh User Interface library – CGI+DHTML-like rapid application development with Zsh
Stars: ✭ 95 (-6.86%)
Mutual labels:  terminal
Gql
Very simple CLI for many GraphQL schemas in the cloud. Provides autocompletion for GraphQL queries
Stars: ✭ 101 (-0.98%)
Mutual labels:  terminal
Awesome Hyper
🖥 Delightful Hyper plugins, themes, and resources
Stars: ✭ 9,687 (+9397.06%)
Mutual labels:  terminal
Gay
Colour your text / terminal to be more gay. 🏳️‍🌈
Stars: ✭ 95 (-6.86%)
Mutual labels:  terminal

What About Kawaii-Term

kawaii-termは主にエンジニアに対して適切に精神的な癒しを与えることで、ストレスを低減するものです  

この世界が可愛ければ戦争は無くなるのに

機能一覧

  • 任意の文字列の表示
  • 空きメモリの表示
  • $の書き換え
  • CPU使用率
  • Diskの使用状況
  • 天気の表示
  • 一部のコマンドのオーバーライド[1]
  • ビッグデータ用のコマンド[2]

サポートしているOS

  • Ubuntu Linux (zesty, x86_64, armhf, arm64)
  • Debian Linux (sid, armhf, arm64)
  • Arch Linux (x86_64)

Requrements

python3が以下のパスに通っている必要があります

$ which python3
/usr/bin/python3

Ubuntu Linux, Debian Linuxでは以下のようにインストールしてください

$ sudo apt install python3

curlもインストールされている必要があります

$ which curl
/usr/bin/curl

Ubuntu Linux, Debian Linuxでは以下のようにインストールしてください

$ sudo apt install curl

Install

HOMEディレクトリにこのプロジェクトをgit cloneで配置する必要があります

$ git clone https://github.com/GINK03/kawaii-term

template.bashrcを~/.bashrcに追加します(アップデート時は計算時間が無駄にならないように適切に、重複等を消すなどして、軽くしてください)

$ cd kawaii-term
$ cat templte.bashrc  >> ~/.bashrc

画面イメージ

図1. ログイン時にスプラッシュでアスキーアートが流れます

template.bashrcのPS1というところを編集することで、ターミナルのテキストや詳細は変更できますが、デフォルトではこのような感じです

図2. 項目の入れ替えはPS1を編集することで行えます

標準コマンドのオーバーライド

いくつかのコマンドにて、機能を上書きしたり、追加したりして任意の動作をさせています  

  • ls (l -CFにエイリアスされています)
  • clear
  • explosion

ls

lだけで入力できるようにしています

$ l
はわわ〜〜〜!💦
22/  cuda/  go/  keras-skip-though-vector/  metas/  td2.pem   テンプレート/  ビデオ/  公開/
NVIDIA_CUDA-8.0_Samples/  cudnn-8.0-linux-x64-v5.1.tgz  go1.8.3.linux-amd64.tar.gz  keras-unstructured-data  minimize.zip  v/
aws/  examples.desktop  kawaii-term/  kotlin-headlessbrowser-selenium-jsoup-parser/  sdb/

clear

clearはバッファがおかしくなった時にリセットをしますが、上の方にカーソルが行ってしまい、視線を動かす必要があるので、アスキーアートを前方に投入することで、カーソルの場所の調整を行います

$ clear

図3. clearを押すと、比較的大きなAAが表示され、結果としてカーソルが下の方にくる

explosion(ex)

ビッグデータなどを扱い、大きなデータセットを消そうとすると、rmコマンドでは消せません   そこでexplosionという長めのコマンドで、警告なしで、OSがファイルとして認識できるのであれば、問題なく消せるコマンドを新たに追加します
(無警告なので、注意してください)

$ explosion target/*

めぐみんというキャラクタのAAをみることができます

図4. めぐみん

terminal中の天気に関して

openweathermap.orgの無料プランを用いています
サンプルに私のAPIキーがバンドルされていますが、無料で利用できるので、適切にご自身のAPIキーに書き換えてください(私がバンされてしまいます)
kawaii-term/weather.pyを編集して、中のAPIキーを変えてください
また、お住いの都市にURLを書き換えて、予想する都市部を便利な箇所に変えてご利用ください

これを、

  raw = os.popen('curl -s "http://api.openweathermap.org/data/2.5/weather?q=Tokoy,jp&appid=1e240e732347c23472274dc188cd39d6"').read()

このようにします

  raw = os.popen('curl -s "http://api.openweathermap.org/data/2.5/weather?q=${YOUR_CITY}&appid=${YOUT_API}"').read()

左のプロンプトと右のプロンプトの幅について

自動で幅を計算してたのですが、tmux経由で使用すると微妙にずれるので、ハードコードしました  

お使いのディスプレイによっては適切に表示されないかもしれません  

template.bashrcの$YOUR_WIDTHを任意の値にしてみてください  

RIGHT_PRONPT() {
  # パディング幅を%*s ${COLUMNS}で指定できるが、tmux経由だと、よく破綻しているので、ハードコードでもいいかもしれない
  printf "%*s" {{$YOUR_WIDTH}} "$(tput setaf 199)$(tput bold)$(CPU_USAGE)$(tput sgr0) $(tput setaf 2)$(DISK_USAGE) $(tput setaf 123)[TENKI:$(GET_WEATHER)]$(tput sgr0)"
}

ライセンス

WTFPL (Do What The Fuck You Want To Public License)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].