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

Pre-defined custom global shortcut always overwritten

Tags: None
(comma "," separated)
User avatar
Schoelje
Registered Member
Posts
32
Karma
0
OS
I'm the maintainer of SolydK, a Debian based distribution with the KDE DE.

I'm trying to map the Windows Key to the Kickoff menu.

I've created /etc/xdg/autostart/wkxmodmap.desktop
Code: Select all
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Super key launcher shortcut for KDE
Exec=xmodmap -e 'keycode 133 = F13'
Terminal=false
Type=Application
StartupNotify=false
OnlyShowIn=KDE;

and /etc/skel/.kde/share/config/kglobalshortcutsrc
Code: Select all
[plasma-desktop]
activate widget 4=F13,F13,Activate Application Launcher Widget

After creating a new user, and login as that user, all settings in the pre-defined kglobalshortcutsrc are overwritten with the default values. However, I can manually map the Windows Key to launch kickoff which then writes the above "activate widget" line to the user's kglobalshortcutsrc.

How can I pre-define global shortcuts for our users without losing them?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Plasma Widgets should be setup using Plasma layouts - which are written in Javascript.
Documentation on this can be found on KDE Techbase.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Schoelje
Registered Member
Posts
32
Karma
0
OS
You are right, of course.
How could I have forgotten about those scripts?

For future reference: I now have these lines in my script, and now the Windows Key opens kickoff:
Code: Select all
  launcher = panel.addWidget("launcher")
  launcher.globalShortcut = "F13"


Thanks for your help.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]