summaryrefslogtreecommitdiff
path: root/src/util/xsetwacom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/xsetwacom.c')
-rwxr-xr-xsrc/util/xsetwacom.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/util/xsetwacom.c b/src/util/xsetwacom.c
index 72df73c..18fd314 100755
--- a/src/util/xsetwacom.c
+++ b/src/util/xsetwacom.c
@@ -340,10 +340,22 @@ static PARAMINFO gParamInfo[] =
XWACOM_VALUE_ROTATE_HALF, SINGLE_VALUE,
XWACOM_VALUE_ROTATE_NONE },
- { "GetTabletID",
+ { "ToolID",
+ "Returns the ID of the associated device. ",
+ XWACOM_PARAM_TOOLID, VALUE_REQUIRED },
+
+ { "ToolSerial",
+ "Returns the serial number of the associated device. ",
+ XWACOM_PARAM_TOOLSERIAL, VALUE_REQUIRED },
+
+ { "TabletID",
"Returns the tablet ID of the associated device. ",
XWACOM_PARAM_TID, VALUE_REQUIRED },
+ { "NumScreen",
+ "Returns number of screens configured for the desktop. ",
+ XWACOM_PARAM_NUMSCREEN, VALUE_REQUIRED },
+
{ "GetModel",
"Writes tablet models to /etc/wacom.dat. ",
XWACOM_PARAM_GETMODEL, VALUE_OPTIONAL },
@@ -543,6 +555,13 @@ static int Set(WACOMCONFIG * hConfig, char** argv)
return 1;
}
+ if (p->nParamID > XWACOM_PARAM_GETONLYPARAM)
+ {
+ fprintf(stderr,"Set: '%s' doesn't support set option.\n",
+ pszParam);
+ return 1;
+ }
+
/* Set case correctly for error messages below. */
pszParam = p->pszParam;