Tag Info

New answers tagged

4

You should have a better estimate with: wmctrl -l | wc -l (which gives 40 windows, compared to 312 for xwininfo)


0

In theory, a program that loses its connection to the X server could just try reconnecting until a new X server is available. In fact, I've written programs that do this. It requires extra code, because you have to re-run your GUI-initialization routine to re-create your resources (windows, bitmaps, fonts, etc) on the new X server, and refresh all your ...


0

x0vncserver (in Debian and Ubuntu in the package vnc4server) may help to regain access to crashed or at least no more accessible X session, e.g. with x0vncserver display=:0. And then there is xpra which allows the user to view remote X applications on their local machine, and disconnect and reconnect from the remote machine without losing the state of the ...


1

The X application needs a screen to connect to and normally (if you connect via ssh using -X that is your local screen). What you can do instead is use Xvnc and create a virtual screen for you X application to connect to and then, after logging back in, use a vncviewer to observe what is happening on this virtual screen. This functions in a similar way as ...


0

Try the following: Grant another user on the local machine access to our X server. It’s pretty easy: $ xhost +SI:localuser:anotheruser localuser:anotheruser being added to access control list Then your user must show up when you: $ xhost Reference


1

To get the Window ID in my program, I have the program set the title to something unique, then have the program start wmctrl and parse its output (and not the shell script that started the program), and then report on the Window ID (most often via a file). Since the program doesn't continue until the windows are open, you will never have to wait to long. ...


0

Sorted. I downloaded Cygwin and eventually got it going. From there I used startx and ssh'd on from there.... works pretty well so far. I'm looking into getting Exceed 9 and trying that out too


2

U+1FB0 is not in the X.org standard compose map. You can define your own compose map by creating a file .XCompose in your home directory. See UTF8 math symbols & keyboard layout / input for more details. Copy the default file from /usr/share/X11/locale/en_US.UTF-8/Compose (the location may be different in different distributions) and a line like ...


4

This script will not run correctly at boot time as gnome-terminal, firefox and gedit will expect a X session to be running. The init.d and/or systemd route is too early in the boot process for your requirements. You'd be better off creating a .desktop file and configuring your system to auto-start this on login. Create a the file as follows:- $ gedit ...


0

xmessage is obsolete and no longer maintained: it does not support UTF-8, etc. You should you gxmessage instead (xmessage clone based on GTK+).


1

Use file matching operator in your for loop. for f in *_*.png will match all the png file names as you specified and assign each name to variable f. Then inside the loop use the ${f%_*} bash operation to extract only the number of the file. FOLDER="$HOME/Images/Shutter" cd "$FOLDER" for f in *_*.png do num=${f%_*} shutter -f -e -n -o ...


0

I found no way with xprop. So I wrote xproperty, which can do that. It’s a little Python program on github.


0

Try adding setxkbmap pl to your starting scripts (e.g .bashrc)


1

Probably your session is being killed together with your xterm when you kill X. Try using nohup to protect your commands from disappearing terminals (the "hup" in "nohup" stands for "hangup", which could happen back in the day when you dialed into a Unix system via a modem and the modem connection died, or in other words the telephone line was hung up). $ ...


0

I've set my keyboard layout by editing /usr/share/X11/xorg.conf.d/10-keyboard.conf. If it doesn't exist go ahead and create it. Put this inside: Section "InputClass" Identifier "system-keyboard" MatchIsKeyboard "on" Option "XkbLayout" "pl" EndSection Save and restart X. For more information see the section titled Using X configuration files ...


0

If you tick X11 forwarding in PuTTY it will try to display on your windows machine. VNC viewer on the Sun machine tries to open that display via X. I am not sure what you want to achieve, but if you want to start an X based program without it displaying on the Windows machine you want to look at xvnc. Once that is running you can (optionally) run vncviewer ...


0

Changing the keyboard layout to Danish (eliminate dead keys) did the trick.


1

Some clipboard managers provide this function. xfce4-clipman is a good example, it will also work not only in Xfce, but on any Desktop Environment. From its help page: Sync selections: Sync the primary clipboard with the default clipboard in a way that it is possible to paste what gets selected


3

The primary is not local to the terminal, you can paste it in other X applications by using the middle mouse button. What you should install is autocutsel: Autocutsel tracks changes in the server's cutbuffer and CLIPBOARD selection. When the CLIPBOARD is changed, it updates the cutbuffer. When the cutbuffer is changed, it owns the CLIPBOARD selection. ...


1

For all your holiday decorations try this: http://xfce-look.org/content/show.php/XDecorations?content=167575


1

In order to simulate user input you can use xdottool which is mentioned in comments to your question. Besides, there is xaut (formerly xautomation) python lib. You cas simulate mouse movement and mouse clicks, keystrokes, and manipulate windows from Python. Moreover, there's X11:GUITest perl package. This can be used to interact (SendKeys, ...


2

Im trying to adapt that source code , this code works , well i just need adapt the parts i really need. #!/bin/bash kde_download() { arch=$(uname -m) case "$arch" in x86) arch="x86" ;; i?86) arch="x86" ;; amd64) arch="amd64" ;; x86_64) arch="amd64" ;; * ) echo "Your Arch '$arch' -> Its not supported." ;; esac ...


0

You can combine xbindkeys and xdotool to bind a key to injecting the output of a command into whatever application has the focus. Choose a key, e.g. Ctrl+Shift+F1, and put the following in your ~/.xbindkeysrc: "xdotool type $(oathtool --totp some-seed)" control+shift+F1 You'll need to start the program xbindkeys with your session. If you're using a ...


2

You can use xclip. oathtool --totp some-seed | xclip The output of your command will be in X primary selection and you can paste it with a middle click. You can also send it to the clipboard to paste with Ctrl+V in Firefox : some_command | xclip -selection clipboard Or use xdotool as explained in this question


1

To modify your Danish keyboard layout to not use the "dead" key for circumflex, you can use this command: $ xmodmap -e 'keycode 15 = 6 asciicircum' To restore it you can use: $ xmodmap -e 'keycode 15 = 6 dead_circumflex' (Don't ask me why the former uses asciicircum instead of the expected circumflex...) Put the command in the appropriate startup ...


2

Save As, Save Image As, Save Page As etc are (gtk+) file-chooser dialogs. The file name that appears in the Save... dialog is hard-coded via gtk_file_chooser_set_current_name () and usually defaults to the original file name unless you edit a new document, e.g. : if (user_edited_a_new_document) gtk_file_chooser_set_current_name (chooser, ...


1

You have two 'clipboards' in Linux. The first is the one of which you speak, where you select text and it is pasted via SHIFTINSERT or Middle-Mouse. This clipboard/buffer is very fickle and changes constantly. Be careful using this, especially with chat clients, because one day you'll paste your password into IRC. The second is the standard CTRLC and ...


1

i ever play in fullscreen , i make my scripts for change the resolution & refresh rate of my monitor , because i use the wrong rate , in my monitor appear a floating box with a msg "Entrace not adm" . for fix that i use something like the follow This its with "Ace Of Spades" #!/bin/bash # Resolution Fix echo `xrandr --current | grep current | awk ...


1

First find the scancode of the key that needs to be remapped, e.g. with the evtest utility. A line like the following one (with MSC_SCAN in it) should be output: Event: time 1417131619.686259, type 4 (EV_MSC), code 4 (MSC_SCAN), value 70068 followed by a second one giving the current key code. If no MSC_SCAN line is output, this is due to a kernel driver ...


1

Can you run X11 in emacs? Yes, but not how you describe. If you start in text only mode sudo init 3 and then log in and start emacs, you can start x by running the startx command through emacs. M-! startx Doing so will start the X environment on a separate screen/terminal that you will have to shift to using Ctrl-Alt-# where # is the in order to see. ...


1

xmodmap and xev You could use xmodmap to dump or modify keyboard mapping: xmodmap -pke | grep space keycode 65 = space NoSymbol space You could use xev to watch about keyboard events xev You could try to modify you keyboard mapping: xmodmap -e 'keycode 65 = space space space space' This may work, but warn! Playing with xmodmap could place you ...


3

For questions 1 and 2, I will take a wild guess that they are accessing the root window's drawable through RootWindow (3), then using XGetImage (3) to copy the root window's pixel data somewhere to process it further (e.g. dumping it to a PNG). These man pages may help: XOpenDisplay (3), DefaultScreen (3), RootWindow (3), XGetImage (3) See also this ...


0

Please run chkconfig --list | grep mouse It should show something like this: mouse 0:off 1:off 2:off 3:off 4:off 5:off 6:off If it does, it indicates that the service will not run on startup. You can make it run on startup using : chkconfig --add mouse OR chkconfig --level 35 mouse on Give it a try.


0

The init.d scripts aren't run on login, so it's normal that it doesn't run if you just log out and in. They only run on boot, or when changing runlevels. /etc/init.d is the right place if the settings are global (shared amongst all users) and need only be run on boot. For simple tasks you may instead want to add the commands to /etc/rc.local, which doesn't ...



Top 50 recent answers are included