Programming :: Write A Bash Script That Recognizes When The Mouse Moves?
Oct 6, 2010
I try to write a bash script that recognizes when the mouse moves.
like a screensaver.
But I want that while a browser window is opened and I move the mouse that a new webpage loads.
I can open opera with a console command but how can i recognize that the mouse moved?
View 1 Replies
ADVERTISEMENT
Sep 11, 2010
when I sat down at the computer, the mouse cursor continually moves down at a constant rate. It jumps a certain distance regularly until it reaches the bottom of the screen. The mouse works generally. It moves around as I move the mouse,but there is the constant moving down, so it's pretty much unusable.I clicked all the mouse buttons, restarted the mouse.
View 3 Replies
View Related
Aug 6, 2010
it just happened a few days ago. When i log in i pres ''Num lock'' and i type the password but after loging in the numeric keyboard won't work. I tried num lock several times but it doesn't work. It works in windows 7 so it's not a hardware problem.when i press number keys it will actualy move the mouse (8-up,6-right 2-down etc.).
View 2 Replies
View Related
May 3, 2010
Sun VBox
host - Debian 5.0
VM - Ubuntu 10.04 (lucid)
gnome desktop
rdesktop
Running rdesktop to connect the VM on the host connection can be established with VM desktop displayed on the host desktop. But there are 2 mouse pointers on VM desktop. It is difficult to control. One mouse pointer does not work but hanging there. 2 pointers moves simultaneously.
View 3 Replies
View Related
Mar 28, 2010
I just install an open Suse 11.2 on a nex box,with an ps2 to usb adapter(ps2 keyboard & ps2 mouse are both attached to this adapter) the keyboard is ok,but the mouse is only mooving horizental, in a line (from left to rigth)i can't move the mouse vertical nor to any other direction
View 4 Replies
View Related
Dec 10, 2010
I have this problem on my workstation. The computer would effectively freeze for 2-5 seconds for no apparent reason, then continue as normal. While frozen the mouse would still be movable, but only on one of screens in my multi-screen setup. What can be the likely cause.
System:
CPU: i7-920
Memory: 12G of Patriot DDR3, 6 modules
OS: SLED 11, Suse Linux Enterprise Desktop, using Gnome
Main board: Asus P6T
Video: two Nvidia 9500GT connected to three displays
I am using memory at recommended settings of 8-8-8-1333. It has an XMP profile. Th CPU is a bit overclocked to 3.3 GHz, but my cooling more than allows for it. I ran the computer with all overclocks off and lower memory speed but the issue was still there.
View 1 Replies
View Related
Nov 29, 2010
i have a text file like
abc abc abc abc
abc abc abc abc
--- --- --- ---
i want to add a string xyz to end of each line..
abc abc abc abc xyz
abc abc abc abc xyz
abc abc abc abc xyz
--- --- --- --- xyz
--- --- --- --- xyz
how do i do this in bash?
View 13 Replies
View Related
Aug 8, 2010
I'm finally switching (slowly) from KDE3 to 4 (in 11.3). There are 2
things I so far haven't figured out:
1. How do I turn off the tooltips which appear when the mouse moves over
a desktop icon?
2. How can I assign a keyboard shortcut to minimize a window?
View 7 Replies
View Related
Mar 23, 2010
Little background info: I have a computer where the hdd crashed. Bought a new hdd tonight and installed it. As the computer had no operating system at this point I put in a copy of the live cd and begin to install Ubuntu 9.10(32 bit)...everything went smooth with the install (at least I think). My problem is that when I get to the login screen, I click on my user name to type in my password but as soon as I click on either my user name or guest it basically freezes...Mouse still moves but can't do anything with login or the options on the bottom right of the screen...
Right when it freezes the pixels under the login box mess up, looks like some type of graphics problem?? I'm not sure, but I can't be the first person with this problem Also after it "freezes" I can't utilize the ctl+alt+f1 command either
View 7 Replies
View Related
Mar 2, 2011
I first noticed this problem when trying to play a first person shooter game. If I hold a key down such as "w" the mouse glitches and moves incredibly erratically when I try to look around. This happens outside of the games as well. What is the solution for this?I'd really like to be able to play an fps game.I have tried disabling compiz as well as turning off the "disable trackpad while typing" option as well.
View 2 Replies
View Related
Mar 30, 2011
I've been looking for an option to turn off for this, but haven't found any, and Google hasn't been helpful.When I switch windows with alt-tab, or a window requests focus, compiz warps my mouse cursor to that window. How do I make it stop?
View 1 Replies
View Related
Jun 3, 2010
I have been looking for a script example of reading and writing to the parallel port's data, status, and control registers using bash. I see it done in pascal, tcl, etc. but nothing in bash.
View 5 Replies
View Related
May 8, 2010
So right after I installed 10.04 there seems to be some short of mouse/joystick mess. What I mean is that 2 types of joysticks (Saitek x52 and CH Products Yoke) seems to control the mouse as well! So when I pitch/roll the joysticks the mouse cursor also moves. When I move the middle lever of the CH products yoke, the mouse also moves horizontally. Also it is almost impossible to work with the scroll bars of windows as joysticks interacts with them via the cursor and issues botton clikcs scrolling the bars to the end! This looks to be a new issue on 10.04 as 9.10 had no such issue.
View 3 Replies
View Related
Jun 24, 2011
i had a bunch of documents opened and i saved one txt file. I then clicked it and dragged it to the recycle bin slowly but didnt release the button. Then the cursor just stayed like that. The cursor changed image while i was dragging it. It now remains as that image for the cursor. I can move it around but cannot click anything. If i press Alt Tab to switch to another window, it just highlights that file. I cant move about on the desktop either.
View 2 Replies
View Related
Jul 21, 2010
I am using Ubuntu 10.04 on a laptop with a Synaptics touchpad. While testing an install of Bluetooth drivers I booted my computer into recovery mode so I could find out if Bluetooth worked before networking was installed. The system reconfigured the graphics to low VGA which disabled the mouse. I rebooted (normal startup) uninstalled the bluetooth drivers, but my mouse still won't work. The mouse pointer appears in the middle of the computer screen, and stays there.Enabling mouse keys support enables me to move the mouse by holding the Function key and pressing numpad characters,t this is only a temporary solution.
View 2 Replies
View Related
May 24, 2010
I am trying to write a bash script to call from a terminal that will change the terminal title. I am using ubuntu 10.04. The script is meant to be used in the gnome-terminal.
Here is what I have:
Code: #! bin/bash
echo "New title: c"
read title
echo "33]0;$titl07c" -e
[Code]....
it doesn't work
I think the problem has to do with modifying PS1 inside the bash so i tried this:
Code: echo `export PS1="[e]1;u@h:wa]${debian_chroot:+($debian_chroot)}u@h:w$ "` and it still didn't work.
View 1 Replies
View Related
May 15, 2011
I want to write a bash script that will launch a command when ever I plug my phone in. how would I monitor the port in a script.
View 2 Replies
View Related
May 27, 2009
I am using a wireless Xbox 360 controller with openSUSE 11.1. I use it for some emulators and all buttons work fine. There is however an annoying problem, the Xbox controller left joystick controls the cursor and digital pad acts as mouse buttons. So while I play, the cursor moves all around the screen and bad things could happen. Why this behavior? In xorg.conf there seems to be only just 1 mouse. And if I go in Joystick via YaST, there is only a menu to select which joystick I have. But my wireless controller has been automatically detected, I didn't setup anything. Is there a config file that I can modify to stop controlling the mouse with my gamepad?
View 6 Replies
View Related
Dec 25, 2010
In my tmp directory some logs are creating continue (with name logs.txt1, logs.txt2 up to 245). Some times these logs are creating continue within 1 or 3 second gap, now I want to write a bash script that continue monitor the tmp directory and if any time logs create simultaneously within 1 or 3 section gap it will alert me..( generally logs are create with the gap of 5 or 10 minutes duration or some time after one hours )
View 1 Replies
View Related
Feb 15, 2011
At the moment I got my md5sum checking working which I write to a text file and see below.
If the md5sum works it will write the output to check2.md5 test.txt: OK
If the md5sum fails it will write test.txt: FAILED
How do I write if statement to check the output whether or not the md5sum failed or not ?
check1="/home/ops/Desktop/test1/check1.md5"
check2="/home/ops/Desktop/test1/check2.md5"
cd /home/ops/Desktop/test1
md5sum test.txt > $check1
[Code]....
View 2 Replies
View Related
Jan 20, 2011
I have a bash script that checks for contents in a folder every 15 seconds and then acts on it's contents. This works great for the average size file however on very large files it starts acting on the file before it's completely written. Is there a facility in bash shell to get a file complete signal or such? here is trigger to launch a larger script.
Code:
#!/bin/sh
while true
do
$HOME/bin/hpgl.sh >/dev/null 2>&1 &
[code].....
View 10 Replies
View Related
Jun 23, 2010
I'm planing to write a bash script that will make some web stats reports and I'm stuck on beginning because I don't know how can I read a directory content, put everything in a variable, compare the variable value with current date and go further.More specific ...
I have /var/apache/log/. Here I have access logs on date ( like access.log.24.06.2010.gz and so on ).
How can I do to automatically zgrep (in a bash script) last day .gz ??
View 3 Replies
View Related
Jan 31, 2011
I have a folder of 2 many files that the old ls just hangs.
I am trying to write some log files such as;
I don't mind doing one at a time, but I am just playing and even getting the listing I am not getting the date stamp, I have the following;
That does create the file, but all the files look like this;
So basically it's just sticking that ls inside the log file and not actually running the ls, so how can I use the above type to get files just created per year?
View 2 Replies
View Related
Jan 29, 2011
I am trying to write a bash script that sources another bash script. Essentially, I need a few lines to check to see if a certain variable is set. If not, I set it manually, and then source a scripts with that variable in the path. I wrote a test script to try it, but for some reason the last line does not work. Here is what I wrote:
#!/bin/sh
source ~setupdir/setup.shrc #just a test, this line works
echo ${#SETUP} # prints 0 if setup is not set, which it isn't
if [ ${#SETUP} -eq 0 ]
then
SETUP="~setupdir"
fi
echo $SETUP # prints ~setupdir
[Code]...
View 5 Replies
View Related
Jun 8, 2010
I write a bash script to time some downloads from a server using ftp connection. ( something like: "time ftp 'options' ) I need to count the time for a list of files in a loop and output the result in a file.
View 1 Replies
View Related
Mar 22, 2010
I'm trying to write a bash script program in the Linux command terminal that will write to a fellow user and then continue reading down the program. this is what i have (kind of explains the idea too):
#!/bin/sh
clear
echo "this is before the write command"
write jcummins
this message should go to jerry
echo "the message didn't send and this string will not appear"
echo "it appears it has stopped at the write command"
View 5 Replies
View Related
Oct 22, 2010
I have a Dell Vostro 1220, with Intel 4 Series Express Chipset Family graphics card. I work on OpenSuse 11.3 (64bit), on the latest kde.I work on an extended 1680x1050 screen on the left of my laptop screen (1280x800). I set this with Kxrandr and it worked great,a while... Now, it shows a black band on the right side of my laptop screen. I can live with that. But the mouse does not recalculate for this difference, so that I need to click 1 inch to the right of where I want to click.
View 2 Replies
View Related
Nov 11, 2010
I've written a vary basic script that moves a specified file into the dustbin directory.The script is as follows:
Code:
#!/bin/bash
#move items to dustbin directory
[code]...
View 4 Replies
View Related
Nov 29, 2010
I create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:
Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END
[code]...
View 6 Replies
View Related
Feb 4, 2011
I would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to add the line # of the script where the error happened.
View 3 Replies
View Related