LoginSignup
6
5

More than 5 years have passed since last update.

xbindkeys + xdotoolを使い無変換キーを押すとAlt+Tabを実行

Last updated at Posted at 2015-07-20

参考

インストール

インストール
sudo apt-get install -y xdotool xbindkeys

xdotoolで実行させたいことを記述

~/bin/alttab.sh
xdotool keydown alt
sleep .1
xdotool key Tab key alt
chmod +x ~/bin/alttab.sh
~/bin/alttab.sh

期待通りの動きをすることを確認。

xbindkeysでxdotoolを割り当て

キーマップ確認

割り当てたいキーのキーマップ確認
$ xbindkeys -k
Press combination of keys or/and click under the window.
You can use one of the two lines after "NoCommand"
in $HOME/.xbindkeysrc to bind a key.
"(Scheme function)"
    m:0x0 + c:102
    Muhenkan

割り当て

~/.xbindkeysrc
"~/bin/alttab.sh"
    m:0x0 + c:102
    Muhenkan

起動

xbindkeysを再起動
killall xbindkeys
xbindkeys
6
5
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
5