Global Methods and properties added to the global JavaScript object. KWin::Options options Global property to all configuration values of KWin core. KWin::Workspace workspace Global property to the core wrapper of KWin. Q_SCRIPTABLE void void KWin::Scripting::print (QVariant ... values) print Prints all provided values to kDebug and as a D-Bus signal Q_SCRIPTABLE QVariant QVariant KWin::Scripting::readConfig (QString key, QVariant defaultValue = QVariant()) readConfig Reads the config value for key in the Script's configuration with the optional default value. If not providing a default value and no value stored in the configuration an undefined value is returned. Q_SCRIPTABLE bool bool KWin::Scripting::registerShortcut (QString title, QString text, QString keySequence, QScriptValue callback) registerShortcut Registers keySequence as a global shortcut. When the shortcut is invoked the callback will be called. Title and text are used to name the shortcut and make it available to the global shortcut configuration module.