{"id":20335064,"url":"https://github.com/dimaj/xppentablet.spoon","last_synced_at":"2025-10-25T21:45:12.672Z","repository":{"id":147618949,"uuid":"268221468","full_name":"dimaj/XPPenTablet.spoon","owner":"dimaj","description":"Hammerspoon Spoon for updating XP-Pen window configuration","archived":false,"fork":false,"pushed_at":"2020-05-31T07:30:52.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-14T16:38:24.003Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimaj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-31T06:20:04.000Z","updated_at":"2024-10-31T09:55:15.000Z","dependencies_parsed_at":"2023-05-06T04:30:44.038Z","dependency_job_id":null,"html_url":"https://github.com/dimaj/XPPenTablet.spoon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaj%2FXPPenTablet.spoon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaj%2FXPPenTablet.spoon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaj%2FXPPenTablet.spoon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimaj%2FXPPenTablet.spoon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimaj","download_url":"https://codeload.github.com/dimaj/XPPenTablet.spoon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241854664,"owners_count":20031477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T20:39:06.949Z","updated_at":"2025-10-25T21:45:07.617Z","avatar_url":"https://github.com/dimaj.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"XPPenTablet.Spoon\n=================\n\nThis is a spoon (module) to a great piece of sotware called [hammerspoon](http://www.hammerspoon.org/)\n\nThe purpose for this spoon is to modify monitor mapping settings to the XP-Pen tablet devices without having to open up PenTabletSettings application, since PenTabletSettings appliation does not provide a way to configure monitor mapping based on a running application settings.\n\nThis is great when you want to scope your tablet's mapping to a single application window.\n\nInstallation\n------------\nTo install this spoon simply run the following command:\n```\ngit clone https://github.com/dimaj/XPPenTablet.spoon ~/.hammerspoon/Spoons/XPPenTablet.spoon\n```\n\nSample Configuration\n--------------------\nAdd the following block to your hammerspoon configuration file:\n```\nspoon.SpoonInstall:andUse(\"XPPenTablet\", {\n    config = {\n        deviceName = \"DEV_6298_3936\",\n        configLocation = \"~/.PenTabletConfig/com.ugee.PenTabletSettings.plist\"\n    },\n    hotkeys = {\n        current_window = {{\"shift\", \"alt\"}, \"w\"}\n    },\n    start = true\n})\n```\n\nThis will install this spoon for you and map `Shift` + `Alt` + `W` keys to updating currently active window as mapping area of your tablet.\n\nConfiguration:\n\n| Option Name | Description | Required? |\n|-------------|-------------|-----------|\n| config.deviceName  | Internal name of your drawing tablet. More informataion on how to get it can be found [here](https://github.com/dimaj/XPPenTablet.spoon/wiki/How-to-get-device-name) | yes |\n| config.configLocation | Location where PenTabletSettings application looks for configuration data. Defaults to `~/.PenTabletConfig/com.ugee.PenTabletSettings.plis` | no |\n| start | must be set to `true` to initalize this module | yes |\n\n\nAPI Documentation\n-----------------\n\n| Method Name | Description | Parameters |\n|-------------|-------------|------------|\n| updateForActiveWindow()| Updates config based on currently active window ||\n| updateConfigForApp(appName) | Updates config based on the main window of specified application | `appName` - Application name to bind table to. E.g. `Skitch` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimaj%2Fxppentablet.spoon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimaj%2Fxppentablet.spoon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimaj%2Fxppentablet.spoon/lists"}