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()
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyvda-0.6.0.tar.gz
(16.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pyvda-0.6.0-py3-none-any.whl
(16.9 kB
view details)
File details
Details for the file pyvda-0.6.0.tar.gz.
File metadata
- Download URL: pyvda-0.6.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e840a84458a946812803c7353e161fafeae9776b76c4e2d358af5dc24df9229
|
|
| MD5 |
2172122e4709ac547e3efff58416d324
|
|
| BLAKE2b-256 |
25cf41d44f1df748dcc64f8ab27979485c3f5629dec56fa9c0674559e944ba30
|
File details
Details for the file pyvda-0.6.0-py3-none-any.whl.
File metadata
- Download URL: pyvda-0.6.0-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.0.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c62e702044f8f8cbc0cdcaaedf5e0fc5c7b908d94153b681c9ed62634cc5031a
|
|
| MD5 |
1eb0168dbd82b3eaf17994591f5096fe
|
|
| BLAKE2b-256 |
49d5cc7da1165af8a74faca47317578936e3d5ab6720c0726a3754867d94533a
|