make capslock+hjkl as arrows
2024-10-19 03:35:16
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.
最新文章
- [NHibernate]存储过程的使用(二)
- 转载:centos7下使用yum安装mysql
- T4模版基础例子
- SQL 获取查询IO信息
- 自定义控件TextView
- [GIF] GIF Loop Coder - Interpolation
- doj常用包
- 【转】带checkbox的ListView实现(二)——自定义Checkable控件的实现方法
- ubuntu Python2.7 安装PIL问题
- 织梦sitemap模板获取文章列表
- 【java设计模式】【行为模式Behavioral Pattern】迭代器模式Iterator Pattern
- 整数中x出现的次数
- scroll滚动条样式修改
- 转载:ThreadPoolExecutor 源码阅读
- PHP数组合并和去重的函数有哪些
- Mono For Android 之 配置环境
- [翻译] USING GIT IN XCODE [5] 在XCODE中使用GIT[5]
- 疯狂Android讲义
- iOS高级教程:处理1000张图片的内存优化
- 关于android闹钟,设置定时提醒的一点心得
热门文章
- Spring Boot web简介及原理 day04
- 常见查找算法(Java代码实现)
- Delphi窗体显示Echarts图表
- scikit-learn学习笔记
- file_get_contents(";php://input";)的用法
- lnmp 切换PHP版本,并且安装swoole
- 60道Python面试题&;答案精选!找工作前必看
- linux云计算面试知识汇总,文件共享--vsftpd秘籍
- IDEA开发工具的学习
- Xamarin.Forms 未能找到路径“x:\platforms”的一部分