Python Virtual Desktop Accessor
Python module providing programmatic access to most of the settings accessed through the Windows task view. Including switching virtual desktops, moving windows between virtual desktops, pinning windows and listing the windows on a desktop.
Originally based on https://github.com/Ciantic/VirtualDesktopAccessor.
Installation
pip install pyvda
Example usage
from pyvda import AppView, get_apps_by_z_order, VirtualDesktop, get_virtual_desktops
number_of_active_desktops = len(get_virtual_desktops())
print(f"There are {number_of_active_desktops} active desktops")
current_desktop = VirtualDesktop.current()
print(f"Current desktop is number {current_desktop}")
current_window = AppView.current()
target_desktop = VirtualDesktop(5)
current_window.move(target_desktop)
print(f"Moved window {current_window.hwnd} to {target_desktop.number}")
print("Going to desktop number 5")
VirtualDesktop(5).go()
print("Pinning the current window")
AppView.current().pin()
Metadata
Release files for pyvda 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyvda-0.6.0.tar.gz | 16.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyvda-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.3 kB
Release files / pyvda-0.6.0.tar.gz
| Download URL | pyvda-0.6.0.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e840a84458a946812803c7353e161fafeae9776b76c4e2d358af5dc24df9229
|
|
BLAKE2b-256 checksum How to use checksums |
25cf41d44f1df748dcc64f8ab27979485c3f5629dec56fa9c0674559e944ba30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|
Release files / pyvda-0.6.0-py3-none-any.whl
| Download URL | pyvda-0.6.0-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c62e702044f8f8cbc0cdcaaedf5e0fc5c7b908d94153b681c9ed62634cc5031a
|
|
BLAKE2b-256 checksum How to use checksums |
49d5cc7da1165af8a74faca47317578936e3d5ab6720c0726a3754867d94533a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.5
|