huggingface / huggingface/screenenv

Full screen view

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
458
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Hello! How do I open a program full-screen? Right now, only half is occupied.

```from screenenv import Sandbox
import time

# Create a sandbox environment
sandbox = Sandbox(
os_type="Ubuntu", # Currently only Ubuntu is supported
provider_type="docker", # Currently only Docker is supported
headless=False, # Run without VNC viewer
resolution=(1440, 900),
disk_size="32G",
ram_size="4G",
cpu_cores="4",
stream_server=True,
dpi=96,
timeout=1000
)

try:
sandbox.open("https://www.google.com")
window_id = sandbox.get_current_window_id() # get the current activate window id.
print(sandbox.window_size(window_id))

while True:
time.sleep(1)

except KeyboardInterrupt:
print("\nClose...")

finally:
sandbox.close()```

[2026-01-23 16:08:25,572 INFO] Got window size successfully
status= message=None width=1050 height=880 is_active=True window_id='20971523'

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.