This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Increase number of virtual desktops from bash

Tags: None
(comma "," separated)
lesterk
Registered Member
Posts
1
Karma
0
I like to increase the number of virtual desktop from a shell script.

I tried the following:
Code: Select all
#!/bin/sh
DESKTOPS_NUM=$(expr $(kreadconfig5 --file kwinrc --group Desktops --key Number) + 1)
kwriteconfig5 --file kwinrc --group Desktops --key Number $DESKTOPS_NUM
qdbus org.kde.KWin /KWin reconfigure

The dbus reconfigure method seems not to reload the number of desktop.

Is there a way to increase the number of virtual desktop from a shell script without restarting kwin?


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]