mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-06-11 08:57:21 +00:00
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.
10 lines
368 B
CMake
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)
|