shift-shell/kwin/effects/CMakeLists.txt
Marco Allegretti 9364cb29db Add SHIFT snap-assist KWin effect
Declarative SceneEffect that shows a floating panel of layout
presets (halves, thirds, quadrants).  Activated via Meta+Shift+S or
by the shift-tiling script when the cursor hovers the title-bar
controls of the active window for 500 ms.

Clicking a preset assigns the active window to the chosen zone with
the same outer gap used by the BSP engine; remaining zones are shown
as snap-assist drop targets for recently-used windows.
2026-05-04 20:25:17 +02:00

10 lines
368 B
CMake

# SPDX-FileCopyrightText: 2026 Marco Allegretti
# SPDX-License-Identifier: EUPL-1.2
function(add_kwin_effect name source)
kpackage_install_package(${source} ${name} effects kwin)
file(COPY ${source}/contents ${source}/metadata.json DESTINATION ${CMAKE_BINARY_DIR}/bin/kwin/effects/${name})
endfunction()
add_kwin_effect(shift-snap-assist shift-snap-assist)