Image 01
profile-image

jakubleska

Sticky Window Snapping

Kwin Scripts 49 comments

by Flupp
Score 76%
76 Likes
24 Dislikes
May 27 2018
Hi, I don't know how to make knotify from KWin script but this is working in nodejs(maybe there is some better way how to do it, I just rewrite it from python)

var dbus = require('dbus-native');
var sessionBus = dbus.sessionBus();
sessionBus.getService('org.kde.knotify').getObject('/Notify', (err, obj)=>{

var knotify = obj.proxy['org.kde.KNotify'];
knotify.event("warning", "kde", [], "title", "text", [], ["action"], 0, 0);
});

I hope this can help you. - Dec 09 2016