Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
import os
import decky_plugin
from pathlib import Path
import json
import os
import decky
import subprocess
import sys
import shutil
import time
import asyncio
import struct
import subprocess
import signal
import time
import asyncio
import traceback
from threading import Thread

Expand All @@ -22,7 +12,7 @@
from py_backend import keyboard


logger = decky_plugin.logger
logger = decky.logger


def run_shell_command(command):
Expand Down Expand Up @@ -143,7 +133,7 @@ async def _main(self):
Plugin._thread = Thread(target=lambda: poller(Plugin._key_state_monitor))
Plugin._thread.daemon = True
Plugin._thread.start()
Plugin._process_manager = ProcessManager(decky_plugin.DECKY_PLUGIN_DIR + "/server")
decky_plugin.logger.info("Initialized")
Plugin._process_manager = ProcessManager(decky.DECKY_PLUGIN_DIR + "/server")
decky.logger.info("Initialized")
except Exception:
decky_plugin.logger.exception("main")
decky.logger.exception("main")
38 changes: 17 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "VirtualHere",
"version": "0.0.1",
"version": "0.0.2",
"description": "A plugin for using the Deck as a wireless controller using virtualhere",
"type": "module",
"scripts": {
"build": "shx rm -rf dist && rollup -c",
"watch": "rollup -c -w",
"test": "echo \"Error: no test specified\" && exit 1"
"build": "rollup -c",
"watch": "rollup -c -w"
},
"repository": {
"type": "git",
Expand All @@ -14,9 +14,9 @@
"keywords": [
"decky",
"plugin",
"plugin-template",
"steam-deck",
"deck"
"deck",
"virtualhere"
],
"author": "Jariullah Safi <jansoft88@gmail.com>",
"license": "BSD-3-Clause",
Expand All @@ -25,23 +25,19 @@
},
"homepage": "https://github.com/safijari/VirtualHere#readme",
"devDependencies": {
"@rollup/plugin-commonjs": "^21.1.0",
"decky-frontend-lib": "^3.24.5",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^4.0.0",
"@rollup/plugin-typescript": "^8.3.3",
"@types/react": "16.14.0",
"@types/webpack": "^5.28.0",
"rollup": "^2.77.1",
"rollup-plugin-import-assets": "^1.1.1",
"shx": "^0.3.4",
"tslib": "^2.4.0",
"typescript": "^4.7.4"
"@decky/rollup": "^1.0.2",
"@decky/ui": "^4.11.0",
"@rollup/rollup-linux-x64-musl": "^4.53.3",
"@types/react": "19.1.1",
"@types/react-dom": "19.1.1",
"@types/webpack": "^5.28.5",
"rollup": "^4.53.3",
"typescript": "^5.6.2"
},
"dependencies": {
"Shotty": "link:",
"react-icons": "^4.4.0"
"@decky/api": "^1.1.3",
"react-icons": "^5.3.0",
"tslib": "^2.7.0"
},
"pnpm": {
"peerDependencyRules": {
Expand Down
3 changes: 2 additions & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"name": "VirtualHere",
"author": "Jariullah Safi",
"flags": ["root"],
"api_version": 1,
"publish": {
"tags": ["remoteplay"],
"description": "A plugin for using the Deck as a wireless controller using virtualhere",
"description": "A plugin for using the Deck as a wireless controller using VirtualHere",
"image": "https://github.com/safijari/VirtualHere/raw/main/virtualhere.png"
}
}
Loading