Solution 2 (probably better)

I was happy with solution 1, until I realized I couldn't use the key bindings in IntelliJ, which is a big bummer. Eventually I figured out that I could just use xmodmap and xcape to do the job, while still being able to use them in IntelliJ!

  • Step 1 (mapping caps_lock + hjkl): Create a file (say "~/.xmodmap") with the following content:
keycode 66 = Mode_switch
keysym h = h H Left
keysym l = l L Right
keysym k = k K Up
keysym j = j J Down
keysym u = u U Prior
keysym i = i I Home
keysym o = o O End
keysym p = p P Next

Feel free to skip the last 4 lines. I pasted them because they might be useful to you as well. In fact I'm really hoping to get the caps_lock enhancement working in Linux.

Then, run xmodmap ~/.xmodmap.

  • Step 2 (caps_lock as escape): Run xcape -e 'Mode_switch=Escape'.

  • Step 3 (optional): To avoid manually applying the keybindings, put the above 2 commands into your /etc/profile.

最新文章

  1. [NHibernate]存储过程的使用(二)
  2. 转载:centos7下使用yum安装mysql
  3. T4模版基础例子
  4. SQL 获取查询IO信息
  5. 自定义控件TextView
  6. [GIF] GIF Loop Coder - Interpolation
  7. doj常用包
  8. 【转】带checkbox的ListView实现(二)——自定义Checkable控件的实现方法
  9. ubuntu Python2.7 安装PIL问题
  10. 织梦sitemap模板获取文章列表
  11. 【java设计模式】【行为模式Behavioral Pattern】迭代器模式Iterator Pattern
  12. 整数中x出现的次数
  13. scroll滚动条样式修改
  14. 转载:ThreadPoolExecutor 源码阅读
  15. PHP数组合并和去重的函数有哪些
  16. Mono For Android 之 配置环境
  17. [翻译] USING GIT IN XCODE [5] 在XCODE中使用GIT[5]
  18. 疯狂Android讲义
  19. iOS高级教程:处理1000张图片的内存优化
  20. 关于android闹钟,设置定时提醒的一点心得

热门文章

  1. Spring Boot web简介及原理 day04
  2. 常见查找算法(Java代码实现)
  3. Delphi窗体显示Echarts图表
  4. scikit-learn学习笔记
  5. file_get_contents("php://input")的用法
  6. lnmp 切换PHP版本,并且安装swoole
  7. 60道Python面试题&答案精选!找工作前必看
  8. linux云计算面试知识汇总,文件共享--vsftpd秘籍
  9. IDEA开发工具的学习
  10. Xamarin.Forms 未能找到路径“x:\platforms”的一部分