Gimp-Forum.net
Run Wacom script on Ubuntu startup - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Other graphics software (https://www.gimp-forum.net/Forum-Other-graphics-software)
+--- Thread: Run Wacom script on Ubuntu startup (/Thread-Run-Wacom-script-on-Ubuntu-startup)



Run Wacom script on Ubuntu startup - Alan Lacey - 08-04-2018

I'm very new to Linux, running Ubuntu 18.04, mainly for graphics applications and, having installed and mainly got working a Wacom Tablet, now need to run the terminal line:     xsetwacom --set "Wacom Intuos4 WL Pen stylus" area 1000 1000 20320 12700    each time I return to Ubuntu.  It's running in VMware and I'm constantly flipping into and out of it.

As, when I enter the command it only sticks until I flip out and then back into Ubuntu, is there a way of automatically running the terminal line each time it's necessary?

Many thanks


RE: Run Wacom script on Ubuntu startup - rich2005 - 08-04-2018

You need to add a script to the startup applications.

A bash script like this

Code:
#!/bin/bash
/usr/bin/xsetwacom --set "Wacom Intuos4 WL Pen stylus" area 1000 1000 20320 12700

Give it a name like wacom-setings.sh and make it executable

Dead-easy in a civilised desktop environment such as KDE. The other Ubuntu's, try a search for 'startup' and you might get there. Whatever you are using, it will be there somewhere.

This a regular ubuntu with their unity DE.

[Image: B94ROMn.jpg]


RE: Run Wacom script on Ubuntu startup - Alan Lacey - 08-05-2018

Thanks Rich,

As I said I'm a real beginner with Ubuntu and don't even know what 'version' I have other than it's Ubntu 18.4 64bit.  How can I find out?

I can create the script that you describe, I've downloaded Sublime text and seem to be getting on well with it, but where to put the script?

I did a search for startup and the only entry that looked useful was a 'usr/share/doc/gnome-startup-applications' folder.  I've not risked putting it there yet, any suggestions?

Ta


RE: Run Wacom script on Ubuntu startup - rich2005 - 08-05-2018

Apart from an old chromebook configured for linux, I use KDE desktops so not well up on other Ubuntu versions.

Try a search and see if any thing makes sense.

example: https://websiteforstudents.com/set-apps-to-auto-startup-at-logon-on-ubuntu-17-10-18-04/

Another posibility is a user start up. See if you have a folder~/.config/autostart/ If you have one of those, put the script in there and see if it starts when you log in.

You could try asking in a Ubuntu forum.

If all that fails, you can always start the script manually / make a launcher for it.


RE: Run Wacom script on Ubuntu startup - Ofnuts - 08-05-2018

(08-05-2018, 06:20 PM)Alan Lacey Wrote: Thanks Rich,

As I said I'm a real beginner with Ubuntu and don't even know what 'version' I have other than it's Ubntu 18.4 64bit.  How can I find out?

I can create the script that you describe, I've downloaded Sublime text and seem to be getting on well with it, but where to put the script?

I did a search for startup and the only entry that looked useful was a 'usr/share/doc/gnome-startup-applications' folder.  I've not risked putting it there yet, any suggestions?

Ta

https://unix.stackexchange.com/questions/32599/auto-running-bash-script-on-login#32616


RE: Run Wacom script on Ubuntu startup - Alan Lacey - 08-06-2018

Thanks very much Guys, Think it's sorted now.