Commit graph

24 commits

Author SHA1 Message Date
Devin Lin
b3c7f418d7 envmanager: Ensure KWin is reloaded
We need to also call a workspace reconfigure to ensure settings are
properly applied live.
2024-11-15 03:45:48 +00:00
Devin Lin
6e7376990b envmanager: Toggle interactive window moving
Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/340

This toggles whether interactive window moving is enabled based on
whether docked mode is enabled.

Requires https://invent.kde.org/plasma/kwin/-/merge_requests/6745
2024-11-08 03:03:41 +00:00
Luis Büchi
2d47217829 disable electric border highlighting by default in envmanager 2024-11-05 09:03:45 +01:00
Devin Lin
051e8b7903 envmanager: Fix KWin effect and script reloading
Previously, we had a silent failure of the dbus call to "reloadConfig"
which turned out to be a signal and not a method that we can call. To
reload effects, we need to manually call dbus to load and unload each
individual one. A similar situation exists for scripts, except that we
only unload scripts through individual calls, and call `start` to load
all of the enabled scripts at once.
2024-10-31 20:33:13 +00:00
Nicolas Fella
d69839f202 Remove unused includes 2024-07-14 01:19:42 +02:00
Devin Lin
a58144fb18 taskswitcher: Only enable KWin effect in mobile, have it be managed by envmanager 2024-07-03 11:54:19 -04:00
Devin Lin
2fae8b3381 envmanager: Ensure KConfigGroup being written to is not derived from const
This otherwise causes an assertion failure if assertions are enabled.
2024-06-26 13:15:57 -04:00
Plata Hill
680143fed4 envmanager: Update default applications-blacklistrc
Sort list alphabetically and add applications that might typically exist in a Plasma Mobile environment (e.g. Waydroid).
2024-06-23 22:38:10 +00:00
Devin Lin
68bd204e36 envmanager: Set Placement mode for KWin to skip window maximize animation when not in docked mode
We can use the placement mode setting in KWin to bypass the need to "maximize" after the window opens, KWin does this for us.

We keep the kwin maximize script to enforce docked mode changing window maximization (since the policy only affects new windows).
2024-03-09 04:20:12 +00:00
Carl Schwan
d63e5e04f5
envmanager: Fix some for-loop
Avoid detaching
2024-01-22 16:33:41 +01:00
Carl Schwan
d9330ad10d Fix crash in envmanager
To delete an entry, we need to ensure the KConfigGroup and none of its
parent config group is not const otherwise we it an assert in KConfig.
2024-01-21 22:11:08 +00:00
Carl Schwan
d161292426
Use new Qt6 QStringLiteral operator
Shorter than typing QStringLiteral all the time
2024-01-17 01:07:31 +01:00
Carl Schwan
b070f6e3f7
Use a reference for the singleton
This is a bit nicer to work with than a pointer and doesn't require a
heap allocation.
2024-01-17 01:02:51 +01:00
Devin Lin
0b45b5ed69 envmanager: Explicitly enable kdecoration plugin
Upgrading on pmOS from Plasma 5, where we used to ship custom configs seems to have kwin get stuck having the kdecoration plugin disabled. Manually enable it.
2023-12-29 15:44:26 -05:00
Devin Lin
7056649bf4 envmanager: Ensure that lnf is not constantly reapplied, overwriting user settings 2023-12-08 19:09:26 -08:00
Devin Lin
630a85cbcb bin: Ensure that plasma-mobile-envmanager is run prior to shell start 2023-11-23 10:28:19 -08:00
Devin Lin
1542764d2c envmanager: Turn off tablet mode when in docked mode 2023-11-22 23:17:18 -08:00
Devin Lin
df80fb65fc Revert "envmanager: Manually specify window placement and decoration settings when not in docked mode"
This reverts commit ff4d501a7b.
2023-10-21 21:44:18 -07:00
Devin Lin
ff4d501a7b envmanager: Manually specify window placement and decoration settings when not in docked mode 2023-10-18 08:13:58 -07:00
Devin Lin
5c0fd57600 initialstart: Add first login experience
Adds an experience for users on first login, allowing some basic configuration.

This is separate from a first start wizard, which would run as a separate user with elevated permissions, and include options that an installer would have.
2023-04-01 07:09:57 +00:00
Devin Lin
372626b786 taskswitcher: Restore status bar and navigation panel 2023-03-31 22:10:02 -07:00
Devin Lin
f46986a9ed envmanager: Ensure keys are deleted 2023-03-30 08:42:28 -07:00
Devin Lin
30c951473e envmanager: Ensure that it is not a graphical application 2023-03-29 22:43:44 -07:00
Devin Lin
3e1e1e7d22 envmanager: Extract kded settings management to separate app, add window decoration customization 2023-03-29 19:41:10 -07:00