Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ubuntu mouse mover

#!/bin/bash
#
# Script to keep mouse pointer moving so that, for example, Suspend to RAM timeout does not occur.
# 
# The mouse pointer will move around its current position on the screen, i.e. around any position
# on the screen where you place the pointer. However, if you prefer it to move around the centre
# of the screen then change mousemove_relative to mousemove in the xdotool command below.
#
# Set LENGTH to 0 if you do not want the mouse pointer to actually move.
# Set LENGTH to 1 if you want the mouse pointer to move just a tiny fraction.
# Set LENGTH to e.g. 100 if you want to see more easily the mouse pointer move.
LENGTH=1
#
# Set DELAY to the desired number of seconds between each move of the mouse pointer.
DELAY=5
#
while true
do
    for ANGLE in 0 90 180 270
    do
        xdotool mousemove_relative --polar $ANGLE $LENGTH
        sleep $DELAY
    done
done
<div class="open_grepper_editor" title="Edit & Save To Grepper"></div>
Comment

PREVIOUS NEXT
Code Example
Shell :: aws cli update profile variable 
Shell :: yarn 2 outdated packages 
Shell :: retroarch for ubuntu 
Shell :: conda linux 
Shell :: install heroku 
Shell :: ssh pc without password ubuntu 
Shell :: debuild: command not found 
Shell :: rmdir: failed to remove ‘’: Directory not empty 
Shell :: git username and password in terminal 
Shell :: connect to specific wifi device linux 
Shell :: git command create new branch from current and move changes 
Shell :: react testing using jest along with code coverage 
Shell :: how to restart postgresql ubuntu 
Shell :: eslint install command 
Shell :: ansible become sudo pawwsord 
Shell :: add root user kali linux 
Shell :: linux print screen 
Shell :: video to gif ffmpeg 
Shell :: pm2 start yarn start 
Shell :: reload bashrc linux 
Shell :: clean my ubuntu 
Shell :: connect to wifi via Terminal 
Shell :: how to unmount drive in ubuntu 
Shell :: github commit author name 
Shell :: how to update metasploit 
Shell :: commit to a new branch 
Shell :: kill dyno process heroku 
Shell :: cordova run device 
Shell :: install specific node version linux 
Shell :: how to install fairseq 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =