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 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:
View kbuild.sh
#!/bin/bash
function echoCommand () {
echo -e "$(tput setab 12) $(tput sgr0)$(tput setaf 12)\uE0B0$(tput sgr0)$(tput setaf 9) $@$(tput sgr0) "
$@
}
echoCommand kdesrc-build --build-only --resume-from=$1 $1
View just-plasmoidviewer.diff
diff --git a/plasmoidviewer/CMakeLists.txt b/plasmoidviewer/CMakeLists.txt
index fe88cff..ba2c2e1 100644
--- a/plasmoidviewer/CMakeLists.txt
+++ b/plasmoidviewer/CMakeLists.txt
@@ -1,3 +1,89 @@
+project(plasma-sdk)
+set(PROJECT_VERSION "5.11.90")
+set(PROJECT_VERSION_MAJOR 5)
+cmake_minimum_required(VERSION 2.8.12)
+
You can’t perform that action at this time.