Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Make new layout for svkbd

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Make new layout for svkbd

#1 Post by Scorpion »

https://tools.suckless.org/x/svkbd/
You can create svkbd for additional layouts by doing:

$ make LAYOUT=$layout

This will take the file layout.$layout.h and create svkbd-$layout. make install will then pick up the new file and install it accordingly.
I am trying to make a new layout but:

Code: Select all

make LAYOUT=layout.custom
cp config.def.h config.h
c99 -O1 -I. -I./layouts -I/usr/X11R6/include  `pkg-config --cflags fontconfig`  `pkg-config --cflags freetype2`  -D_DEFAULT_SOURCE -DVERSION=\"0.4.1\" -DXINERAMA -DLAYOUT=\"layout.layout.custom.h\" -c drw.c
make: *** No rule to make target 'layout.layout.custom.h', needed by 'svkbd-layout.custom.o'.  Stop.
Do I need to make svkbd-layout.custom.o?
Other layout doesn't have it.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Make new layout for svkbd

#2 Post by Head_on_a_Stick »

Try

Code: Select all

make LAYOUT=custom
And make sure layout.custom.h is present in the current working directory.
deadbang

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Make new layout for svkbd

#3 Post by Scorpion »

Correct.

Can you make a key act like you are pressing 2 keys?
e.g. merging { "↑", 0, XK_Up, 1 } and { "←", 0, XK_Left, 1 }.
{ "⬉", 0, XK_Up | XK_Left, 1 } ?

Post Reply