Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
add_subdirectory(icons)
|
||||
|
||||
########### next target ###############
|
||||
add_executable(kwin5_update_default_rules update_default_rules.cpp)
|
||||
target_link_libraries(kwin5_update_default_rules
|
||||
KF6::ConfigCore
|
||||
Qt::Core
|
||||
Qt::DBus
|
||||
)
|
||||
install(TARGETS kwin5_update_default_rules DESTINATION ${KDE_INSTALL_LIBDIR}/kconf_update_bin/)
|
||||
|
||||
########### install files ###############
|
||||
|
||||
install(FILES org_kde_kwin.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 379 B |
Binary file not shown.
|
After Width: | Height: | Size: 609 B |
Binary file not shown.
|
After Width: | Height: | Size: 874 B |
@@ -0,0 +1,11 @@
|
||||
ecm_install_icons(
|
||||
ICONS
|
||||
16-apps-kwin.png
|
||||
32-apps-kwin.png
|
||||
48-apps-kwin.png
|
||||
sc-apps-kwin.svgz
|
||||
DESTINATION
|
||||
${KDE_INSTALL_ICONDIR}
|
||||
THEME
|
||||
hicolor
|
||||
)
|
||||
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
kwin_core KWin Core DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_CORE]
|
||||
kwin_utils KWin utils DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_UTILS]
|
||||
kwin_virtualkeyboard KWin Virtual Keyboard Integration DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_VIRTUALKEYBOARD]
|
||||
kwineffects KWin Effects DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWINEFFECTS]
|
||||
libkwineffects KWin Effects Library DEFAULT_SEVERITY [WARNING] IDENTIFIER [LIBKWINEFFECTS]
|
||||
libkwinglutils KWin OpenGL utility Library DEFAULT_SEVERITY [WARNING] IDENTIFIER [LIBKWINGLUTILS]
|
||||
libkwinxrenderutils KWin XRender utility Library DEFAULT_SEVERITY [WARNING] IDENTIFIER [LIBKWINXRENDERUTILS]
|
||||
kwin_wayland_drm KWin Wayland (DRM backend) DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_DRM]
|
||||
kwin_wayland_framebuffer KWin Wayland (Framebuffer backend) DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_FB]
|
||||
kwin_wayland_backend KWin Wayland (Wayland backend) DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_WAYLAND_BACKEND]
|
||||
kwin_wayland_x11windowed KWin Wayland (X11 backend) DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_X11WINDOWED]
|
||||
kwin_platform_x11_standalone KWin X11 Standalone Platform DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_X11STANDALONE]
|
||||
kwin_libinput KWin Libinput Integration DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_LIBINPUT]
|
||||
kwin_tabbox KWin Window Switcher DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_TABBOX]
|
||||
kwin_decorations KWin Decorations DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_DECORATIONS]
|
||||
kwin_scripting KWin Scripting DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_SCRIPTING]
|
||||
aurorae KWin Aurorae Window Decoration Engine DEFAULT_SEVERITY [WARNING] IDENTIFIER [AURORAE]
|
||||
kwin_xkbcommon KWin xkbcommon integration DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_XKB]
|
||||
kwin_qpa_plugin KWin QtPlatformAbstraction plugin DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_QPA]
|
||||
kwin_scene_qpainter KWin QPainter based compositor scene plugin DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_QPAINTER]
|
||||
kwin_scene_opengl KWin OpenGL based compositor scene plugins DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_OPENGL]
|
||||
kwin_screencast KWin Screen Cast Service DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_SCREENCAST]
|
||||
kwin_xwl KWin Xwayland Server DEFAULT_SEVERITY [WARNING] IDENTIFIER [KWIN_XWL]
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
KWin - the KDE window manager
|
||||
This file is part of the KDE project.
|
||||
|
||||
SPDX-FileCopyrightText: 2005 Lubos Lunak <l.lunak@kde.org>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
// read additional window rules and add them to kwinrulesrc
|
||||
|
||||
#include <KConfig>
|
||||
#include <KConfigGroup>
|
||||
#include <QCoreApplication>
|
||||
#include <QDBusConnection>
|
||||
#include <QDBusMessage>
|
||||
#include <QDebug>
|
||||
#include <QStandardPaths>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc != 2) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
QCoreApplication::setApplicationName("kwin_update_default_rules");
|
||||
|
||||
QString file = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QString("kwin/default_rules/%1").arg(argv[1]));
|
||||
if (file.isEmpty()) {
|
||||
qWarning() << "File " << argv[1] << " not found!";
|
||||
return 1;
|
||||
}
|
||||
KConfig src_cfg(file);
|
||||
KConfig dest_cfg(QStringLiteral("kwinrulesrc"), KConfig::NoGlobals);
|
||||
KConfigGroup scg(&src_cfg, QStringLiteral("General"));
|
||||
KConfigGroup dcg(&dest_cfg, QStringLiteral("General"));
|
||||
int count = scg.readEntry("count", 0);
|
||||
int pos = dcg.readEntry("count", 0);
|
||||
for (int group = 1;
|
||||
group <= count;
|
||||
++group) {
|
||||
QMap<QString, QString> entries = src_cfg.entryMap(QString::number(group));
|
||||
++pos;
|
||||
dest_cfg.deleteGroup(QString::number(pos));
|
||||
KConfigGroup dcg2(&dest_cfg, QString::number(pos));
|
||||
for (QMap<QString, QString>::ConstIterator it = entries.constBegin();
|
||||
it != entries.constEnd();
|
||||
++it) {
|
||||
dcg2.writeEntry(it.key(), *it);
|
||||
}
|
||||
}
|
||||
dcg.writeEntry("count", pos);
|
||||
scg.sync();
|
||||
dcg.sync();
|
||||
// Send signal to all kwin instances
|
||||
QDBusMessage message =
|
||||
QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig");
|
||||
QDBusConnection::sessionBus().send(message);
|
||||
}
|
||||
Reference in New Issue
Block a user