How can I set default virtual desktop in KDE?
I have nine virtual desktops (3 rows and 3 columns), and KDE always starts with top-left virtual desktop, and I want to start with center one.
(I have Arch Linux with KDE Plasma 5.12 installed.)
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
It looks like this isn't natively supported through configuration in KDE/Plasma, however, a forum post here suggests a way to accomplish what you're looking for by using the
wmctrl tool in an autostart script to programatically set the desired virtual desktop.
sudo apt-get install wmctrl
wmctrl -dto list the available vistual desktops. In a 3x3 grid, the centre desktop is probably number 4
Create an autostart file in
~/.config/autostart/setvd1.desktop with this content:
[Desktop Entry] Exec=sleep 5; wmctrl -s 4 X-DBUS-StartupType=wait Name=Set VD #1 Type=Service X-KDE-StartupNotify=false OnlyShowIn=KDE; X-KDE-autostart-phase=1