New answers tagged

2

To find out which app grabbed your key you could use the debug keysym XF86LogGrabInfo; run sleep 2; xdotool key "XF86LogGrabInfo" and then immediately start pressing that particular key repeatedly, then check for output in /var/log/Xorg.log. Or use xdotool to press keys + XF86LogGrabInfo at the same time, see falconer's post here


0

Try placing a symbolic link to *.desktop file of desired application into the ~/.config/autostart/ folder.


0

turns out jwm does everything i need thanks to most recent release so thanks for looking but will answer my own question.


3

Redshift is tied to an X server. While you can start it as part of the system startup, that's fragile; the robust way to start it is within the context of the X server session (which is broader than the X login session). There can be multiple X servers running on the same machine at a given time. They are assigned display numbers on a first-come, ...


1

Preferences->Default applications for LXSession or lxsession-default-apps Press autostart Uncheck the line opensnap -d (or remove it) log out/ login. Other things may work as well. The above can be done by editing the file ~/.config/lxsession/Lubuntu/autostart Lubuntu may also be LXDE in other configurations. I didn't even know opensnap was running.


2

How do I use this information from ~# to trace back to what these really are? The output informs you about existing connections between your client and your server. In the first place, there is only session, then you opened gvim, which led to allocation of 3 channels, another gvim allocated another channel, but they are leaving some behind. ...


0

-Yout can try the BlackBox here - http://blackboxwm.sourceforge.net/ - or here - http://xwinman.org/blackbox.php is simple and so good!...


0

I also tried to modify the file /usr/share/X11/xkb/symbols/pc by: "Key <CAPS> {[Enter]};" But nothing worked. Almost there... There is no such thing as Enter. The keyword here is Return so edit your /usr/share/X11/xkb/symbols/pc like this (original line commented out with //): // key <CAPS> { [ Caps_Lock ] }; ...


3

example.sh script to xcalc "4*9=", and view capture-result image: #!/usr/bin/env bash save="$DISPLAY" # save original X display number export DISPLAY=:44 # set random choosen display for xvfb case "$1" in # and x-programs called below start) Xvfb $DISPLAY & ;; ...


1

Use the -p or --persist option: gnuplot --persist -e 'plot sin(x)' This will keep the window open until manually closed. From the man page: -p, --persist lets plot windows survive after main gnuplot program exits.


2

Technically Xlib is X11, although the developers of xcb have replaced parts of that with xcb (see Xlib and XCB). Doing that (to address limitations in the existing Xlib) was the purpose of writing xcb (see XCL : An Xlib Compatibility Layer For XCB). But no one has combined Xlib with Xt simply because the design goals differ a lot. Rather, other toolkits ...


1

The X window manager is started through the command ssh-agent dbus-launcher --exit-with-session i3, which means that the SSH agent is started right before the window manager. However, Debian sources .xsessionrc before this happens, so when xautolocker gets started, the SSH agent hasn't started and the environment variables needed for ssh-add to talk to the ...


0

I had the same problem on xubuntu 14.04 (64) and xmodmap (with exactly the same keys) and found a solution using xkb instead of xmodmap: Remapping Keys in Ubuntu (using xkb) The xkb solution requires only to change the keycodes in /usr/share/X11/symbols/pc and clear xkb cache by rm -rf /var/lib/xkb/* I had no delays afterwards. Maybe this works with ...


0

Used xprop to get the class of my window and xdotool like bellow: xdotool search --onlyvisible --classname gnome-terminal-server behave %@ focus exec xinput disable bcm5974 & xdotool search --classname gnome-terminal-server behave %@ blur exec xinput enable bcm5974 & The previous is unstable so the following script based on @SHW's answer is ...


0

This following command will give you the name of focused application xdotool getwindowfocus getwindowname Using this, You can write a wrapper-script to achieve your goal. e.g. while [ true ] do FocusApp=`xdotool getwindowfocus getwindowname` if [ "xTerminal" -eq "x$FocusApp" ]; then xinput disable bcm5974 else xinput enable ...


0

http://mirrordirector-mb.raspbian.org/raspbian/pool/main/x/xmacro/ This is a macro recorder. It's compiled but I assume it works as it says. I haven't tested it, but it seems a lot easier than hacking round with a python program that you can't figure out where it's breaking.


2

The XSetFillStyle function lives in the X11 library (also referred to as "Xlib"). Your example does not show that you use the X11 library, e.g, adding a -lX11 would help. (Some configurations require additional libraries): cc -DPIXMAP_SUPPORT -DHAVE_UNISTD_H -o Esetroot Esetroot.c -lImlib2 -lX11


2

You probably need to set the extended window manager hint _NET_WM_STATE_ABOVE. In general, if you want to copy X behavior of other applications, you can use xprop (in my distribution packaged as xorg-xprop, YMMV). When launched from terminal, you can click on an application of which you want to see the window manager hints and properties. This can be of ...


1

Actually this is the very purpose of so-called "Tiling Window Managers" i.e. Awesome, as apposed the classic "Floating Window Managers" i.e. Gnome2. So yeah, I think to do what you want to do you're going to need to upgrade from gnome to something a bit more hardcore. But believe me, you won't want to go back after you've experienced what these other Window ...


0

I was able to identify short and unix-way solution: comm -12 \ <(xdotool search --name 'title-pattern' | sort) \ <(xdotool search --class 'class-pattern' | sort)


1

On a technical level, there's no way to tell that the string a program is requesting will be used as a password. On the other hand, there are kdesu and gksudo which are, to a first approximation, "sudo but with a popup window for the password".


0

The arch wiki pages are a decent starting point for most of the confusing stuff here. You could start at: https://wiki.archlinux.org/index.php/xinitrc for example.


2

My xdotool help informs me that your two switches are the same (xdotool version 3.20150503.1), --name check regexp_pattern agains the window name --title DEPRECATED. Same as --name. and as such doesn't do anything. My xdotool does the same as yours with replacing the window stack, so I did it with a shell script. A shell script doing what ...



Top 50 recent answers are included