Posted: Wed 04 Jun 2014, 18:17 Post_subject:
desktop button Sub_title: script or install zarfy!
make a script: use a text editor, first line should be #!/bin/sh
then then write your command on the next line. Make sure you press enter so that cursor goes too the next line. Then save you script /root/my-applications/bin/lds1-off.sh, next you wil need to make that script executable by right clicking on it and selecting 'properties', then select Exec Owner. Now you can type in a terminal lvds1-off.sh nd it will execute. You can then drag your script from /root/my-applications/bin to the desktop and a menu will open, choose make a symlink. Then right click on that symlink and choose set-icon. Drag an icon into the box and that's all there is to it. I think. There's probably an easier way to do it.
to automate it you'd need to make the script a daemon, ie run in the background monitoring the connection.
o automat at startup copy the scriipt into /root/startup/ and it should fire up each time X Graphical desktop restarts.