kwin/kconf_update/kwin-6.0-overview-activities-shortcuts.py
Niccolò Venerandi 028dd552cf Merge desktop grid and overview together with a new three-state design
Merges the desktop grid and overview effects together in a new three-state one;
you can switch between them with a certain shortcut or gesture, and you can also
still access either the desktop grid or overview directly.

Default shortcuts are also updated to be Meta+G for Grid, Meta+W for Overview,
Meta+Tab to switch between the three states and Meta+Shift+Tab to cycle in the
opposite direction.

BUG: 474044
BUG: 460661
BUG: 460774
BUG: 456572
BUG: 449601
BUG: 450262
BUG: 449801
BUG: 461510
BUG: 463886
BUG: 459754
BUG: 459749
BUG: 459748
BUG: 459467
FIXED-IN: 6.0
2023-09-25 11:14:37 +00:00

20 lines
873 B
Python

#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2023 Niccolò Venerandi <niccolo.venerandi@kde.org>
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
import fileinput
for line in fileinput.input():
if line.startswith('next activity'):
print(line.replace('Meta+Tab', 'Meta+A'))
elif line.startswith('previous activity'):
print(line.replace('Meta+Shift+Tab', 'Meta+Shift+A'))
elif line.startswith('ShowDesktopGrid'):
pass
elif line.startswith('Overview'):
print('Overview=Meta+W,Meta+W,Toggle Overview')
print('Cycle Overview=Meta+Tab,Meta+Tab,Cycle through Overview and Grid View')
print('Cycle Overview Opposite=Meta+Shift+Tab,Meta+Shift+Tab,Cycle through Grid View and Overview')
print('Grid View=Meta+G,Meta+G,Toggle Grid View')
else:
print(line)