Commit graph

112 commits

Author SHA1 Message Date
Ivailo Monev
4428efe5f0 plasma: adjust to plasma library changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-19 23:34:33 +03:00
Ivailo Monev
e7f9852d5f plasma: implement option to disable session management
I have idea about adding one more option but not sure if I should, the idea
is to restart applications even if not registered for session management
since klauncher tracks applications anyway. which applications are
restarted then becomes limited to what klauncher starts tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 23:09:40 +03:00
Ivailo Monev
59cea6ff49 plasma: setup the session after desktop setup is complete
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 23:32:03 +03:00
Ivailo Monev
8de43cce2d plasma: setup icons for the plasma-desktop actions
now that the actions are visible in the shortcuts settings dialog

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 23:28:02 +03:00
Ivailo Monev
8d7adf633a plasma: add the plasma-desktop actions to corona
that makes the action shortcuts appear in the shortcuts settings dialog

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 23:20:54 +03:00
Ivailo Monev
957da2bb43 generic: adjust to KRun changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-12 03:22:02 +03:00
Ivailo Monev
ae3d5e62cb plasma: remove redundant method
the window manager should probably not be changed if there are active
applications (i.e. until the next login in most cases) to begin with

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 12:22:29 +03:00
Ivailo Monev
62e3336e68 plasma: failsafe for invalid session manager clients
e.g. clients killed by SIGKILL

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 11:05:43 +03:00
Ivailo Monev
499957d8f5 plasma: do not log the time in debug messages
see the following commit in kdelibs repo:
5338c9f8e0ee4135cfb7a6b26fb53a6ab067799b

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 07:42:14 +03:00
Ivailo Monev
ce88a90f18 plasma: do not attempt to autorestart plasma-desktop
things change, tweaks have to be made

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 07:25:29 +03:00
Ivailo Monev
7cbe3c4cf7 plasma: remove old client session configs before saving
also ensures that if session save is canceled there will be no stale
configs

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 05:00:11 +03:00
Ivailo Monev
d13ff93844 plasma: remove client session configs once session is restored
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 04:31:01 +03:00
Ivailo Monev
6f8ca7decb plasma: queue logout if one is requested during initialization
that brings it mostly on par with the old session management implementation

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 04:21:28 +03:00
Ivailo Monev
44129102c6 plasma: delete phase timer once startup is complete
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 04:11:49 +03:00
Ivailo Monev
da21da4e5c plasma: save clients state via queue
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 03:09:01 +03:00
Ivailo Monev
3fb06fbef0 plasma: force startup phase after 10 seconds
should not happen but if it does there is failsafe in place now

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 01:16:53 +03:00
Ivailo Monev
3484726b8a plasma: wait for each startup phase to complete before starting the next phase
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 01:03:06 +03:00
Ivailo Monev
65eb546f63 kcontrol: convert desktoppaths, input and keyboard KCM initialization to autostart
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-10 00:23:01 +03:00
Ivailo Monev
095efa0323 plasma: notify about login, logout and cancel events
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-09 09:27:41 +03:00
Ivailo Monev
fb686dc3c1 plasma: implement session manager
comes along with plenty of other changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-09 08:33:28 +03:00
Ivailo Monev
51a8d78114 plasma: stop phase jumping once phase two is reached
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-07 06:09:56 +03:00
Ivailo Monev
505e6218a4 plasma: log debug messages when startup is suspended, resumed and when next phase starts
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-07 02:57:39 +03:00
Ivailo Monev
3e5dfaa22b ksmserver: drop it and move session initialization to plasma-desktop
everything except the actual session management, second time ksmserver
starts crashing as I work on something for no reason and is time for it
to be done anew as there were quite some unsafe bits in it

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-05-07 02:33:19 +03:00
Ivailo Monev
36bc690df1 generic: adjust to shortcut changes
notice how the use of primary shortcut only disappears

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-24 10:25:20 +03:00
Ivailo Monev
f1eb5815cb plasma: remove unused members
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 19:09:12 +03:00
Ivailo Monev
5ff895daf7 plasma: remove unused method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 04:10:10 +03:00
Ivailo Monev
613b8bf19f plasma: prepare for kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-08 11:29:04 +03:00
Ivailo Monev
81fa9fc71a plasma: fix messages extraction
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-05 20:20:18 +03:00
Ivailo Monev
4f2a08c1c9 generic: adjust to kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-03-24 01:21:45 +02:00
Ivailo Monev
1cad595824 generic: drop scripting support
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-21 08:14:30 +03:00
Ivailo Monev
ebcdc394b2 plasma: implement configuration interface for tasks applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-09 02:11:57 +03:00
Ivailo Monev
bd3f60eb10 plasma: redo pager and tasks applets
nothing is final between releases - it's development cycle. the pager
applet now does verticals tho

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-10-03 09:47:24 +03:00
Ivailo Monev
ebd427394b plasma: merge tasks applet into the the pager applet
why have one taskbar when I can have one for each virtual desktop? here
is how it looks:
https://ibb.co/TbNT2mC

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-29 23:37:54 +03:00
Ivailo Monev
50aab9bc48 plasma: drop the option to hide the pager applet when there is only one virtual desktop
also tweaked it for such case, soon the virtual desktops will be 2 by
default

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-29 15:46:08 +03:00
Ivailo Monev
f4d40c28e9 plasma: semi-working notifications applet reimplementation
the application notifications works and is nearly complete, the jobs
notification is yet to be done. so far it looks like this:
https://ibb.co/GTGMKtQ

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-17 07:50:27 +03:00
Ivailo Monev
8609a4ae20 plasma: remove unused widgetexplorer header inclusion
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-12 02:22:12 +03:00
Ivailo Monev
a7052ff980 plasma: remove unused KListConfirmationDialo and CheckBox classes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-12 00:40:42 +03:00
Ivailo Monev
b54eec7ab5 libs: Plasma::WidgetExplorer reimplementation
am really starting to hate Plasma::ScrollWidget - that widget is
resizing on timer so to not cause resizing to minimum and then expanding
manual widget resizing has to be done (see
Plasma::WidgetExplorerPrivate::filterApplets())

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-11 03:52:52 +03:00
Ivailo Monev
140e8a8113 plasma: adjust defaults to the devicenotifier applet changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-07 10:29:23 +03:00
Ivailo Monev
a5a07d46ca generic: drop bogus multihead support
note that it is independant of X11 multiscreen, as the comment in
KWin::Workspace::isOnCurrentHead() claims

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-01 16:41:30 +03:00
Ivailo Monev
ab85ad15c3 plasma: do not suspend startup for the wallpaper
plasma-desktop wallpaper does not affect other applications, not during
startup and not after startup is done

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-09-01 02:04:58 +03:00
Ivailo Monev
5949b572bc khotkeys: drop it
the only use case is to launch ksnapshot which can be done by
plasma-desktop, some of the actions code is borked (notably window
matching, global and menu actions were working) and I have no
intention to fix it. even if fixed when a window (and thus possibly
application) key is grabbed there is a chance the window (application)
may want to grab the grabbed key and fail (i.e. grab conflict) so it
shall be left to the application to set what keys shall be global
(grabbed) hence the bits to start ksnapshot are moved to plasma-desktop

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-29 23:04:14 +03:00
Ivailo Monev
0121acd1ab klipper: set global shortctut for the "Open Klipper at Mouse Position" action
if it is not full Katana session neither plasma-desktop nor its systemtray
applet will setup the shortcut so its better done by klipper itself

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-29 03:53:02 +03:00
Ivailo Monev
0104dd678a plasma: default to manual sorting in tasks applet
see:
bd84219d6a

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-22 23:51:30 +03:00
Ivailo Monev
f00420a34a generic: preperations for kdelibs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-19 19:47:34 +03:00
Ivailo Monev
f1f6ae7a3e generic: replace X-KDE-StartupNotify with StartupNotify
X-KDE-StartupNotify is for compatibility and used as fallback (in case
StartupNotify is not set)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-18 05:11:16 +03:00
Ivailo Monev
7b1e4b6b49 plasma: minor PanelAppletOverlay::paintEvent() optimization
only for the case when the m_applet member is null

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-14 19:40:42 +03:00
Ivailo Monev
d02e8c10af generic: log backtrace when applications that are automatically restarted crash
previously the KCrash::AutoRestart flag was overriding all other flags -
that is no longer the case

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 21:32:05 +03:00
Ivailo Monev
44970b29d8 plasma: partially revert f058709ed6
the systemtray applet automatically adds the applets that have
configuration entry in plasma-desktoprc but the applets configuration is
not saved by the systemtray applet

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 19:11:18 +03:00
Ivailo Monev
f058709ed6 plasma: create wallpaper containments for each screen by default
for reference:
https://github.com/fluxer/katana/issues/41

note that the config affects only new configurations (the config is
copied to the user config directory once layout is saved), also a logout
may be required when a screen is removed (that includes setting up extra
monitor to be copy of the primary display)

as for why it is done - a image and panel containment was created by the
default layout script (00-defaultLayout.js) which is no longer since
772d9ff219

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-05 17:41:18 +03:00