gui.getDesktopCount

Returns the number of ShiVa desktops.

Prototype

  1. nCount = gui.getDesktopCount ( )

Description

ShiVa desktops can be accessed through the panel in the top right corner. They have nothing to do with OS-specific virtual desktops.


Parameters


Return values

nCount - count number 1..n


Sample

  1. function onDesktop8 ( ) if ( gui.getDesktopCount ( ) > 7 ) then gui.setCurrentDesktop ( 8 ) end end

Available since ShiVa 2.0