This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Custom shortcuts scheme as default

Tags: shortcuts scheme, default, customization shortcuts scheme, default, customization shortcuts scheme, default, customization
(comma "," separated)
Tommy Vercetti
Registered Member
Posts
27
Karma
0
OS

Custom shortcuts scheme as default

Mon Nov 18, 2013 1:32 pm
I've created my own shortcuts scheme for kwin and I would like to set it as default for all users. There are few predefined keyboard schemes (*.kksrc) in /usr/share/kde4/apps/kcmkeys: kde-, win-, unix-, mac- and WindowsMaker-like (first and second ones have versions for keyboards with 4\3 prefix keys (with\without Win key)). If I add my own scheme (e. g. my.kksrc), how can I make KDE to use it as default one instead of kde4.kksrc for all users?
luebking
Karma
0
you can override `kde4-config --path config`/kglobalshortcutsrc and its possible to extend the paths of KDEDIRS, see http://techbase.kde.org/KDE_System_Admi ... _Hierarchy but a specific *.kksrc needed to be inported into the users (or layered) kglobalshortcutsrc

If you only want to provide a custom prefabbed kglobalshortcutsrc for new users, /etc/skel is the usual way
Tommy Vercetti
Registered Member
Posts
27
Karma
0
OS

Wed Nov 27, 2013 9:36 pm
luebking, there's NO global `kde4-config --path config`/kglobalshortcutsrc file, at least in openSUSE, and it's ignored when I add one. There are only *.kksrc's mentioned above. The system chooses one of them in some way to be default (kde4.kksrc, 4 means 4 prefix keys (Shift, Ctrl, Alt, Win), not KDE version). So my question is how does it chooses and how can I change it's choice.

/etc/skel/ is really the simplest way, but it's felt like a "dirty hack". Isn't there a nicer decision?
luebking
Karma
0
globalshortcutsregistry.cpp: ,_config("kglobalshortcutsrc", KConfig::SimpleConfig)

Ie. you're right, neither any system nor even kdeglobals is invoked for the settings.

-> You won't get around /etc/skel, preparing a default kglobalshortcutsrc for each user, or modify kglobalaccel to KConfig::CascadeConfig to have it also read /usr/share/config/kglobalshortcutsrc. Sorry.
Tommy Vercetti
Registered Member
Posts
27
Karma
0
OS

Sun Dec 08, 2013 5:07 pm
That's what I wanted to know (though it's really pity).
Thanks a lot, luebking!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar