小hack一下gnome-shell的alt+tab
TualatriX在《GNOME Shell的“Alt+Tab”革新》中介绍了gnome-shell的alt+tab 那时我还没用过gnome-shell 虽说之后偶尔耍耍gnome-shell 但也是浅尝即止 这几天有时间好好玩了玩gnome-sehll
看过TualatriX的那篇文章后 发现自己的alt+tab的快捷键与那时的已经不一样了 可能是代码做了调整了 已经没有alt+了 alt+a、w、s、d也变成了alt+上、下、左、右 感觉还没有
、a、w、s、d方便
所以就hack了一下alt+tab 具体的使用方式可以看TualatriX的文章
1 [yangguang] [~/gnome-shell/install/share/gnome-shell/js/ui]
2 > diff altTab.js ../../../../../source/gnome-shell/js/ui/altTab.js
3 253c253
4 < else if (keysym == Clutter.Left || keysym == Clutter.a)
5 ---
6 > else if (keysym == Clutter.Left)
7 255c255
8 < else if (keysym == Clutter.Right || keysym == Clutter.d || keysym == 96)
9 ---
10 > else if (keysym == Clutter.Right)
11 257c257
12 < else if (keysym == Clutter.Up || keysym == Clutter.w)
13 ---
14 > else if (keysym == Clutter.Up)2
15 62c262
16 < else if (keysym == Clutter.Left || keysym == Clutter.a)
17 ---
18 > else if (keysym == Clutter.Left)
19 264c264
20 < else if (keysym == Clutter.Right || keysym == Clutter.d)
21 ---
22 > else if (keysym == Clutter.Right)
23 266c266
24 < else if (keysym == Clutter.Down || keysym == Clutter.s || keysym == 96)
25 ---
26 > else if (keysym == Clutter.Down)