This website works better with JavaScript.
Home
Explore
Help
Sign In
rinri
/
dmenu-rinri
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
added vi-like key-bindings for keyboards without cursor keys (they are undocumented features)
master
arg@mig29
18 years ago
parent
5336608a86
commit
3dcdbe2a57
2 changed files
with
24 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
config.mk
+23
-0
main.c
+ 1
- 1
config.mk
View File
@@ -1,5 +1,5 @@
# dmenu version
VERSION = 1.
7.1
VERSION = 1.
8
# Customize below to fit your system
+ 23
- 0
main.c
View File
@@ -178,6 +178,29 @@ kpress(XKeyEvent * e) {
break;
}
}
if(e->state & Mod1Mask) {
switch(ksym) {
default: return;
case XK_h:
ksym = XK_Left;
break;
case XK_l:
ksym = XK_Right;
break;
case XK_j:
ksym = XK_Next;
break;
case XK_l:
ksym = XK_Prior;
break;
case XK_g:
ksym = XK_Home;
break;
case XK_G:
ksym = XK_End;
break;
}
}
switch(ksym) {
default:
if(num && !iscntrl((int) buf[0])) {
Write
Preview
Loading…
Cancel
Save