Skip to content

Instantly share code, notes, and snippets.

Chris Holland Zren

Block or report user

Report or block Zren

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View KDecorationButtonTest2.qml
import QtQuick 2.0
import QtQuick.Layouts 1.1
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kwin.private.kdecoration 1.0 as KDecoration
import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons
Item {
id: main
width: 400
height: 400
View Osd.qml
/*
* Copyright 2014 Martin Klapetek <mklapetek@kde.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
View KDecorationButtonTest1.qml
import QtQuick 2.0
import QtQuick.Layouts 1.1
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.kwin.private.kdecoration 1.0 as KDecoration
import org.kde.kquickcontrolsaddons 2.0 as KQuickControlsAddons
Item {
id: main
width: 400
height: 400
View BreezeEnhanced.diff
diff --git a/kdecoration/CMakeLists.txt b/kdecoration/CMakeLists.txt
index e79d728..8d5b080 100644
--- a/kdecoration/CMakeLists.txt
+++ b/kdecoration/CMakeLists.txt
@@ -1,3 +1,27 @@
+
+project(breezeenhanced)
+set(PROJECT_VERSION "0.1")
+set(PROJECT_VERSION_MAJOR 0)
+
View kmake.sh
#!/bin/bash
# To install this script, save to /usr/local/bin/kmake
# Don't forget to make it executable with:
# sudo chmod +x /usr/local/bin/kmake
doClean=false
doInstall=false
buildDir="build"
buildPrefix=/usr
View AlignToHour.qml
import QtQuick 2.0
import QtQuick.Layouts 1.1
import org.kde.plasma.plasmoid 2.0
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
Item {
id: root
@Zren
Zren / kwin.diff
Created Jul 29, 2018
KDE5 Locally Integrated Menu
View kwin.diff
diff --git a/plugins/kdecorations/aurorae/src/aurorae.cpp b/plugins/kdecorations/aurorae/src/aurorae.cpp
index 4c5879b..ff00e22 100644
--- a/plugins/kdecorations/aurorae/src/aurorae.cpp
+++ b/plugins/kdecorations/aurorae/src/aurorae.cpp
@@ -448,6 +448,11 @@ QVariant Decoration::readConfig(const QString &key, const QVariant &defaultValue
return config->group(m_themeName).readEntry(key, defaultValue);
}
+qulonglong Decoration::windowIdAsLong() const
+{
View _ReadMe.md

Run python3 server.py

Then run qmlscene main.qml. It works. Both the plain PATCH which sends the string "test" and json PATCH request show up in the python server.

Then add the code in main.qml to any plasmoid, and run the widget in plasmoidviewer -a widgetnamespace.

View removeSvgTransform.py
#!/usr/bin/python3
import sys, os
from bs4 import BeautifulSoup, NavigableString, Tag
import re
def bringToFront(arr, value):
try:
i = arr.index(value)
arr.insert(0, arr.pop(i))
View kwinscripter.py
#!/usr/bin/python3
import sys, os
def debug(*args):
# if True:
if False:
print(*args)
if len(sys.argv) >= 2:
You can’t perform that action at this time.