title: Switch Virtual Desktop from Cli tags: kde virtual-desktop cli Source: [reddit](https://www.reddit.com/r/kde/comments/8h92z0/command_line_command_to_switch_virtual_desktop/) ```csv sep=| `qdbus org.kde.KWin /KWin nextDesktop`| for switching to the next desktop `qdbus org.kde.KWin /KWin previousDesktop`| for the previous one `qdbus org.kde.KWin /KWin setCurrentDesktop 1`| for switching to desktop 1, change number as needed ``` And maybe interesting for some scripting: ```csv sep=| `qdbus org.kde.KWin /KWin currentDesktop`| returns the number of the currently active desktop. ```