6
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ubuntuのキーボード設定(全角半角キー有効)

Last updated at Posted at 2022-07-16

Ubuntuで全角半角キーが機能しない件の解決方法

ubuntuのキーボードで半角/全角キーが利用できなかった際の解決方法のメモ

日本語のキーボードに変更

キーボードレイアウトを表示した際に全角半角ではなく「'」になってしまっている場合

$ setxkbmap jp

#上記だけでは、一時的な設定になってしまうため、.bash_profileファイルに記載しておく
$ touch ~/.bash_profile
$ echo "setxkbmap jp" >> ~/.bash_profile    ← ログイン時にコマンド実行(.bash_profile)
※ $ echo "setxkbmap jp" >> ~/.bashrc    ← ターミナル読み出し時にコマンド実行(.bashrc)

上記ではじめのうちは有効になっていたが、なぜか次第に有効にならず、ログインのたびに
$ sh .bash_profile を実行する羽目に…
→アプリケーションから検索で「自動」を入力して「自動起動するアプリケーションの設定」を開く
 →追加ボタンで作成したスタートアップ設定用のシェル(ファイル中身:setxkbmap jp)を登録して完了

キーボードショートカットの設定

  1. Mozcのプロパティ画面を表示
     ツール→プロパティ→一般タブ→キー設定
  2. キー設定の選択で編集
     キー設定→編集
  3. 左から文字入力なしとなっている項目のHankaku/ZenkakuキーをIMEを有効化にする。
     これで半角/全角キーを押すと日本語がオンになる。何度押してもオンになるだけ。オフにはならない。
  4. 次に文字入力なしとなっている項目のMuhenkanキーをIMEを無効化にする。
     これで無変換を押せば英数字直接入力になる。何度押しても英数字になるだけ。

お好みの設定があるのであれば別のキーでも全然問題ない。


参考URL

Ubuntu(Linux)のキーボード設定を日本語に変えて「半角/全角」でひらがなに「無変換」で英数字に変える方法


6
1
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
6
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?