File indexing completed on 2024-12-29 05:05:33
0001 const containments = desktops().concat(panels()); 0002 for (var i in containments) { 0003 forEachWidgetInContainment(containments[i]); 0004 } 0005 0006 function forEachWidgetInContainment(containment) { 0007 const widgets = containment.widgets(); 0008 for (var i in widgets) { 0009 const widget = widgets[i]; 0010 switch(widget.type) { 0011 case "org.kde.plasma.systemtray": 0012 systemtrayId = widget.readConfig("SystrayContainmentId"); 0013 if (systemtrayId) { 0014 forEachWidgetInContainment(desktopById(systemtrayId)) 0015 } 0016 break; 0017 case "org.kde.plasma.keyboardlayout": 0018 if (widget.globalShortcut) { 0019 print("Shortcut to remove: " + widget.globalShortcut); 0020 widget.globalShortcut = ""; 0021 } 0022 break; 0023 } 0024 } 0025 }