LoginSignup
9
8

More than 5 years have passed since last update.

Windows10でTotalTerminal風のターミナルを使う

Last updated at Posted at 2016-04-23

最近Surfacebookを手に入れてMacから移行しようかなと思っているのですが、
ターミナルがWindowsでは悩むところですよね。
私はMacではTotalTerminalというQuake風のターミナルを使っていました。
ctrlキーを2回押すとターミナルがにゅいっと出てきて、この感覚がお気に入りだったので
Windowsでも是非やりたい!ということで設定してみました。
以下の二つを使いました。

Cmder

現在windowsのターミナルとしてcmderがおすすめらしいです。UIも結構イケてます!
私は開発者がSurfacePro3を買ったらまずやることを参考にさせてもらいながらインストールしました。シェルにはMSYS2を入れました。
cmderを起動してsettings->Main->Appearanceに移動します。
cmder-setting.png
ここでQuakes style slide downにチェックを入れます。またAnimation timeを短くすると素早くスライドしてきます。
Cmder-shotcut.png
Key&Macroからターミナルの表示/非表示のトリガーキーを設定できます。
ここでctrl2回押しを設定したかったのですが、やり方がわかりませんでした...
=> ctrl2回押下に対応しているアプリからctrl+@を呼び出そう!

AutoHotkey

ということで、autohotkeyならキー連続入力に対応してるだろうということで調べてみるとちゃんと対応してました!!
アプリをインストールした後、
デスクトップを右クリック->新規作成->AutoHotkey Script
でAutoHotkeyの新規スクリプトを作成します。ファイルをテキストエディタで開き、以下のように設定します。
AutoHotkeyのスクリプトはhttp://eternalbeta.cs.land.to/wiki.cgi?page=AutoHotkey#p24 にサンプルが豊富にあります。

script.ahk
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Ctrl::
    If (A_PriorHotkey = A_ThisHotKey && A_TimeSincePriorHotkey < 300)
        Send,^@
    KeyWait,Ctrl
return

保存後、スクリプトをダブルクリックするとAutoHotkeyが起動します。
その状態でctrlを2回押してみると...
Animation-compressor.gif

にゅいっとターミナルが出てきたり消えたりします!!

これでQuake風のターミナルをwindowsでも使うことができました。
後は細かい設定をしていけば使いやすくなりそうです!
Bashがくるまでこれで頑張る

9
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
8