Sponsored Content
Top Forums Shell Programming and Scripting Bash scripting for right click Post 302297455 by pludi on Friday 13th of March 2009 12:54:59 PM
Old 03-13-2009
Short answer: You probably can't
Long answer: bash scripts are (primarily) used to automate non-interactive commands for routine tasks. They know, by themselves, nothing of the X Window System, a mouse, or clicks.
What you need is some kind of X automation system, or a very very good book on C and the X protocol.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash Scripting

Hello there peeps: There is a little piece of bash shell scripting problem i have, which i was hoping you could help me with. #!/bin/bash stored_word() { case $(( $$ % 8 )) in 0 ) echo "energy";; 1 ) echo "touch";; 2 ) echo "climbing";; 3 ) echo... (3 Replies)
Discussion started by: keyvan
3 Replies

2. UNIX for Dummies Questions & Answers

Left click select,right click copy

Hi all, when i ssh into my linux machine, i can do a double left click and then right click to paste it anywhere i need. However, on the actual machine, in the terminal, i cannot do a double left click and right click to paste it. i need to right click and select Copy followed by click click... (1 Reply)
Discussion started by: new2ss
1 Replies

3. Shell Programming and Scripting

bash scripting help

hi all i'm trying to get a script working upon connection with pppd According to docu this happens ina clean environment with a couple of variables set, namely $1,$2,... To be able to execute the statements i included a path statement but i think i'm running into trouble with the variables -... (6 Replies)
Discussion started by: jimjones
6 Replies

4. Shell Programming and Scripting

bash scripting help

have this code but when i run it i get this error ./pulse: line 2: and here is the code #!/bin/bash if ; then pulseaudio -k; fi what am i doing wrong thanks Adam (5 Replies)
Discussion started by: ab52
5 Replies

5. Shell Programming and Scripting

bash scripting

Hello everyone!!!! I am new to this forum ...I have a problem. And I thought that you are expert :) so you can help me with that... I have a text file with maaany lines. Every line begins with something like that: <http aksjfskcuhrf kushkfsnus> <http sxnfrksehfsd gsdg r> I don't know if every... (16 Replies)
Discussion started by: mary_elen
16 Replies

6. Shell Programming and Scripting

Bash scripting

Try to imagine a flag: nnnnx nnnxx nnxxx nxxxx now imagine how it will output: 4 times the "n"and 1 times "x" 3 times "n"and" 2 times" x " .. etc. .. rhombus is the same only instead of "n" is there gap "and " x "is a few times to form the correct shape Can you help... (3 Replies)
Discussion started by: krcek12
3 Replies

7. Shell Programming and Scripting

bash scripting help

Hi Guys i have a <script?> that spits out the location of each printer using snpget here is the code for i in `sed -n '/Start Printer/,/End Printer/p' /hosts/blah/etc/dhcp/hosts.conf | awk '!/^#/ {print $2}' | egrep -v \... (2 Replies)
Discussion started by: ab52
2 Replies

8. Shell Programming and Scripting

bash scripting

same script: 1- i am using grep to find a string called: tinker panic 0 in a file /etc/ntp.conf if the string is not there, i want to add the strings in /etc/ntp.conf file in the first line of the file. if not do nothing or exit. 2- also i want to add # in front of the following lines in... (0 Replies)
Discussion started by: lamoul
0 Replies

9. Homework & Coursework Questions

Bash Scripting

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Try running 'phone4 xyz' and see what happens. Modify your program so that if no matching name is found, an... (1 Reply)
Discussion started by: OmgHaxor
1 Replies
w9wm(1x)																  w9wm(1x)

NAME
w9wm - 8-1/2-like Window Manager for X SYNOPSIS
w9wm [ -grey ] [ -version ] [ -font fname ] [ -nokeys ] [ -nostalgia ] [ -debug ] [ -pass ] [ -term termprog ] [ -virtuals n ] [ exit | restart ] DESCRIPTION
w9wm is a window manager for X which attempts to emulate the window management policies of Plan 9's 8-1/2 window manager but adds some candy stuff like virtual screens and keyboard shortcuts. The -grey option makes the background light grey, as does 8-1/2. Use this option for maximum authenticity. -font fname sets the font in w9wm's menu to fname, overriding the default. -nokeys option inhibits keyboard shortcups (Ctrl+Tab and Shift+Ctrl+Tab) -nostalgia applies some useless modifications to w9wm look & feel (windows border and cursor appearance) -debug triggers debug mode -pass uses click-to-focus- passes-through-click, which means that clicking on a nonactive window with whatever mouse button activates it and follows click to this window -term termprog specifies an alternative program to run when the New menu item is selected. -virtuals n set the number of virtual screens used -version prints the current version on standard error, then exits. To make w9wm exit, you have to run w9wm exit on the command line. There is no ``exit'' menu item. w9wm is click-to-type: it has a notion of the current window, which is usually on top, and always has its border darkened. Characters typed at the keyboard go to the current window, and mouse clicks outside the current window are swallowed up by w9wm. To make another win- dow the current one, click on it with button 1 or type Ctrl+Tab (this shortcut is not ``stable'', which means that I could change it in case it would eventually be annoying). Unlike other X window managers, w9wm implements `mouse focus': mouse events are sent only to the current window. A menu of window operations is available by pressing button 3 outside the current window. The first of these, New, attempts to spawn a 9term process (or xterm if 9term is not available). The new 9term will request that its outline be swept using button 3 of the mouse, by changing the cursor. (xterm defaults to a fixed size, and thus wants to be dragged; pressing button 3 places it.) The next four menu items are Reshape, Move, Delete, and Hide. All of the operations change the cursor into a target, prompting the user to click button 3 on one of the windows to select it for the operation. At this stage, clicking button 1 or 2 will abort the operation. Oth- erwise, if the operation was Resize, the user is prompted to sweep out the new outline with button 3. If it was Move, the user should keep the button held down after the initial click that selected the window, and drag the window to the right place before releasing. In either case, button 1 or 2 will abort the operation. If the Delete operation is selected, the window will be deleted when the button is released. This typically kills the client that owns the window. The Hide operation just makes the window invisible. While hidden, the window's name appears on the bottom of the button 3 menu. Selecting that item brings the window back (unhides it). This operation replaces the iconification feature provided by other window man- agers. A menu is provided to switch from a virtual screen to another. This popup is triggered by using the button 2, which displays a menu look- ing like the previous one but with four entries, One, Two, Three, and Four. Selecting one of these entries will switch to another virtual screen. There is also a menu to run programs using button 1. Hold both "shift" and "left ctrl" keys and press button 1. w9wm will then display a menu that allows you to exec programs specified in the $HOME/.w9wmrc file. Put each command in one line. w9wm does not yet support args for these commands, write a one-line shell script if you need this.q BUGS AND LIMITATIONS
Is not completely compatible with 8-1/2. There is a currently a compiled-in limit of 32 hidden windows. Also, you cannot put more than 32 commands in your .w9wmrc file SEE ALSO
9term(1), 9wm(1), 9menu(1), xterm(1). w9wm(1x)
All times are GMT -4. The time now is 08:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy