Windows設定の個人的な事

環境

  • Windows10 pro
  • nec-versa-pro-j-type-vt

セットアップ

CapsLock を Ctrl に変更

ctrl2cap をインストール

変換を ctrl + space で開始する

IMEを右クリック->設定->キーとタッチのカスタマイズ->Ctrl+Space->IMEのオンとオフ

bash

Git Bashって使ってる?Windowsで動く意外にすごい便利ツール | 侍エンジニアブログ

これで C:\Program Files\Git\bin\bash.exe にbashがインストールされる。

weztermインストール

https://wezfurlong.org/wezterm/install/windows.html

デフォルトだとコピペは中クリックでできる。

設定ファイルはホームディレクトリ(C:\User\ユーザー名)配下に .wezterm.lua に置く

次の形でbashを起動するようにする。

-- Pull in the wezterm API
local wezterm = require 'wezterm'

-- This table will hold the configuration.
local config = {}

-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
  config = wezterm.config_builder()
end

-- This is where you actually apply your config choices

-- For example, changing the color scheme:
config.color_scheme = 'AdventureTime'
config.default_prog = { 'C:\\Program Files\\Git\\bin\\bash.exe' }

-- and finally, return the configuration to wezterm
return config

weztermを起動し、 ssh-keygen ssh-copy-id でログインするマシンにssh鍵を転送し、weztermの設定を下記のように書き換える。 これでweztermを起動すると自動的にリモートに接続する。

config.default_prog = { 'ssh', 'user@hostname' }

透過したいので

config.window_background_opacity = 0.8

の設定も追加した。 この透過は「背景で動画再生しつつ作業できたら良いな」と思ったのだが、しばらくweztermで作業すると背景が止まる。 Firefox, Edgeで試したが同様(タスクマネージャーだと動いているが) Windowsの設定かもしれないが、私の環境だとバックグラウンドの描画を止めてしまうようだ。 ブラウザのGPU機能のOff/Onを試したが変わらなかった。

ブラウザの仕様が変わったようでFirefoxの設定を変える必要があった。

  1. Firefox窓画面上部アドレスバーへabout:config入力エンター。
  2. 警告画面出るがオケ選択→aboutconfig窓画面上部の検索バーへwidget.windows.window_occlusion_tracking.enabledと入力エンター。
  3. これをTrueからfalseへとダブルクリックで変更。
  4. アドレスバーへ about:restartrequired と入れてエンター
  5. 再起動ボタン押す。
  6. Firefox再起動。

sshd

Windows10 で SSHサーバー を起動する - Qiita

参考

動画のバックグラウンド再生ができなかった時に参考になった。

https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q11278648981

weztermを透過する際に参考になった

https://wezfurlong.org/wezterm/config/appearance.html#window-background-opacity