From 8ebe9c7981818c8ac1afbb403222fccaf7c66dc3 Mon Sep 17 00:00:00 2001 From: Natalie Clarius Date: Thu, 1 Dec 2022 22:43:34 +0100 Subject: [PATCH] kconf_update: replace cascaded by zero-cornered placement --- kconf_update/CMakeLists.txt | 2 ++ .../kwin-5.27-replace-cascaded-zerocornered.sh | 16 ++++++++++++++++ kconf_update/kwin.upd | 6 ++++++ 3 files changed, 24 insertions(+) create mode 100644 kconf_update/kwin-5.27-replace-cascaded-zerocornered.sh diff --git a/kconf_update/CMakeLists.txt b/kconf_update/CMakeLists.txt index f8c9b74735..a00b78745e 100644 --- a/kconf_update/CMakeLists.txt +++ b/kconf_update/CMakeLists.txt @@ -18,6 +18,8 @@ install(PROGRAMS kwin-5.23-remove-cubeslide.py DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}) install(PROGRAMS kwin-5.23-remove-xrender-backend.py DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}) +install(PROGRAMS kwin-5.27-replace-cascaded-zerocornered.sh + DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}) install(FILES kwinrules.upd DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR}) diff --git a/kconf_update/kwin-5.27-replace-cascaded-zerocornered.sh b/kconf_update/kwin-5.27-replace-cascaded-zerocornered.sh new file mode 100644 index 0000000000..d5efcde54b --- /dev/null +++ b/kconf_update/kwin-5.27-replace-cascaded-zerocornered.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# KWin - the KDE window manager +# This file is part of the KDE project. + +# SPDX-FileCopyrightText: 2022 Natalie Clarius + +# SPDX-License-Identifier: GPL-2.0-or-later + +while read -r line; do + if [ "$line" = "Placement=Cascaded" ]; then + echo "Placement=ZeroCornered" + else + echo "$line" + fi +done diff --git a/kconf_update/kwin.upd b/kconf_update/kwin.upd index bca9647051..28c3d0410c 100644 --- a/kconf_update/kwin.upd +++ b/kconf_update/kwin.upd @@ -97,3 +97,9 @@ Id=animation-speed-cleanup File=kwinrc Group=KDE RemoveKey=AnimationDurationFactor + +# Replace the cascaded placement policy by zero-cornered +Id=replace-cascaded-zerocornered +File=kwinrc +Group=Windows +Script=kwin-5.27-replace-cascaded-zerocornered.sh,sh