02-06-2017
Monitor keypresses without focus?
Hi all,
I'm new to Linux, been at it a couple weeks. I have written a script that basically acts as a watchdog to ping a server on a set interval, make sure chromium-browser is running, and a couple other things (it displays data via web browser). I'd like to make it stop the script when I hit Esc. I have figured out how to do that except for when chrome is in the foreground. Is there any way I can get around this with scripting? Any help appreciated!
Oh, using Fedora 25, Xwayland disabled(using Xorg), if that matters (my understanding of the various components in windowing is still murky)
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all,
Is there a way to make sawfish window manager focus on a gui when you click it but not make it raise to the top? I know that motif and CDE (soalris) allow you to focus with out raising the windows. THANKS (2 Replies)
Discussion started by: larry
2 Replies
2. Shell Programming and Scripting
Hi, i found xte and xdotool for sending some keys to windowed applications but they need to have the focus on it.
Can someone say me if i can do the same but wihtout focusing the window i want to type something ?
edit: xreplay (0 Replies)
Discussion started by: linked
0 Replies
3. Programming
Is this possible to be done with C++ ?
I am working on Qt Creator by I didn't find any working setFocus function or something. Can you help me a bit?
Thank you.
The program actually checks if there is a process of this program already running and if there is it exits.
I want to make it focus on... (2 Replies)
Discussion started by: hakermania
2 Replies
4. UNIX for Dummies Questions & Answers
Hi all
I have a java program I'm starting in Mac os from the terminal using the command
java -Djava.library.path=/Users/me/Desktop/Cfiles/DynamicCTGLayout/build/Release -jar
However, when I do this, my current program I'm using becomes "deselected" and the java program's GUI becomes... (2 Replies)
Discussion started by: WhiteTiger
2 Replies
5. UNIX for Dummies Questions & Answers
Please Help a Newbie,
I'm using the display command to post a picture of several configurations for a machine operator to choose from. The Issue I have is when I display the image the displayed image steals focus from my bash window. The operator then has to re-select the window to answer the... (1 Reply)
Discussion started by: BitBoy
1 Replies
6. What is on Your Mind?
In the fall I am taking courses in System Admin and Networking Admin, along with Cisco classes. Sometime next year I hope to get Red Hat and CCNA certifications, then try to get some experience and a job.
I am wondering what I can focus on in the meantime (and in my spare time) that will... (1 Reply)
Discussion started by: ScottLew
1 Replies
7. Infrastructure Monitoring
Sorry if this is the wrong forum
Searching for Saas Monitor service which monitor my servers which are sitting in different providers .
This monitor tool will take as less CPU as possible , and will send info about the server to main Dashboard.
The info I need is CPU / RAM / my servers status (... (1 Reply)
Discussion started by: umen
1 Replies
LEARN ABOUT CENTOS
git-instaweb
GIT-INSTAWEB(1) Git Manual GIT-INSTAWEB(1)
NAME
git-instaweb - Instantly browse your working repository in gitweb
SYNOPSIS
git instaweb [--local] [--httpd=<httpd>] [--port=<port>]
[--browser=<browser>]
git instaweb [--start] [--stop] [--restart]
DESCRIPTION
A simple script to set up gitweb and a web server for browsing the local repository.
OPTIONS
-l, --local
Only bind the web server to the local IP (127.0.0.1).
-d, --httpd
The HTTP daemon command-line that will be executed. Command-line options may be specified here, and the configuration file will be
added at the end of the command-line. Currently apache2, lighttpd, mongoose, plackup and webrick are supported. (Default: lighttpd)
-m, --module-path
The module path (only needed if httpd is Apache). (Default: /usr/lib/apache2/modules)
-p, --port
The port number to bind the httpd to. (Default: 1234)
-b, --browser
The web browser that should be used to view the gitweb page. This will be passed to the git web--browse helper script along with the
URL of the gitweb instance. See git-web--browse(1) for more information about this. If the script fails, the URL will be printed to
stdout.
start, --start
Start the httpd instance and exit. Regenerate configuration files as necessary for spawning a new instance.
stop, --stop
Stop the httpd instance and exit. This does not generate any of the configuration files for spawning a new instance, nor does it close
the browser.
restart, --restart
Restart the httpd instance and exit. Regenerate configuration files as necessary for spawning a new instance.
CONFIGURATION
You may specify configuration in your .git/config
[instaweb]
local = true
httpd = apache2 -f
port = 4321
browser = konqueror
modulepath = /usr/lib/apache2/modules
If the configuration variable instaweb.browser is not set, web.browser will be used instead if it is defined. See git-web--browse(1) for
more information about this.
SEE ALSO
gitweb(1)
GIT
Part of the git(1) suite
Git 1.8.3.1 06/10/2014 GIT-INSTAWEB(1)