Tag Info

Hot answers tagged

23

Short answer: Yes. In the "olden days", it was possible to effectively prevent any other X application from reading a specific input by grabbing it. While this can still be done to this day, the XI2 protocol specification seems to suggest that this can't be done any more (see the description of Raw Events around line 2220). Thus under X alone you are not ...


5

What part of linux handles and resolves these shortcuts? For the most part, individual applications or a window manager(WM)/desktop environment(DE). There are a few caught and handled by the kernel, such as VT switching with Cntl-Alt-F[N]. The actual event propagates: From the kernel To the Xorg server To the WM/DE To the application If caught and ...


3

DPMS can be darn resistant! Try this command: xset dpms 0 0 0 && xset s noblank && xset s off If it works, add it to whatever autostart file KDE uses. By the way, VLC has the option Preferences >> Video >> Disable screensaver. If that option is checked, the screen won't blank while VLC plays a video but DPMS will be turned on ...


3

I need X installed on the host too, right? You need an X server installed on the host only, and it will need to be running. You will need some X client libraries in the container (installing xbmc will presumably pull these in as dependencies), but not an X server. What exactly are "displays" (like :0 and :1) and do I need to set them? ...


3

You can use: keysym Down = Down Up to do that. The keysym value is an ordered list of keysyms to use when unmodified, shifted, switched, shifted and switched, AltGr+key, shift-AltGr+key (all optional). Here unmodified Down is itself, while Shift-Down is bound to Up, and we don't set anything for the switched or AltGr modes. There is a remaining problem: ...


3

Think of your desktop as running a variety of programs always, even if they have no windows, terminals, or show up as daemons. Most are running a window manager, perhaps various toolbars, a desktop, and so forth. Now let's see what happens when a key is pressed. The key press and key release are treated separately, though a library may deal with combining ...


2

All the apps you've mentioned are gtk+ apps so it's quite easy to answer Why... Because in all gtk+ apps (except one), Shift+Insert pastes from CLIPBOARD - i.e. it's equivalent to Ctrl+V. The shortcut is hardcoded in gtkentry.c (line 2022) and gtktextview.c (line 1506): gtk_binding_entry_add_signal (binding_set, GDK_KEY_Insert, GDK_SHIFT_MASK, ...


2

You did not mention what "non-english" layout you want to use. Lets say its a Czech keyboard layout. This command: setxkbmap cz,us -option grp:win_switch sets keyboard to Czech layout and when you press (and hold) Windows key, you have an American layout. Other keys might be used, my favourite is "caps_switch" for caps lock as composed key. All possible ...


2

#!/usr/bin/expect -f spawn passwd username expect "New password:" send -- "user-password\r" expect "Retype new password:" send -- "user-password\r" expect eof Testing I saved it as script.exp and when I run the script, this is the output I get in my machine. expect script.exp spawn passwd ramesh Changing password for user ramesh. New password: Retype ...


2

In principle, you should be able to do it with the venerable xset command. xset led named 'Caps Lock' or xset led 4 to set LED number 4, if your system doesn't recognize the LEDs by name. However, this doesn't seem to work reliably. On my machine, I can only set Scroll Lock this way, and I'm not the only one. This seems to be a matter of XKB ...


2

If you run xprop and click on a window, you see that the icon is among the "metadata" assigned to the window structure in your X server, under name and type _NET_WM_ICON(CARDINAL). These parameters can be changed by other X applications, for instance, window managers write and change a whole bunch of stuff in there. The key function will be XChangeProperty. ...


2

Try running this script heartbeat.sh that will reset X idle time each 55sec. #!/bin/bash while sleep 55 do #xscreensaver-command -deactivate #xdg-screensaver reset xset s reset done


2

I am posting an answer, as I have somewhat managed to resolve the issue. I say somewhat because I still have problems. Wheezy appears to have a need to use a screensaver. I disabled all options I could find, even patched xscreensaver, but to no avail. The above fixes I tried in my question, sometimes generate issues when I log in, some times they do not! ...


1

There is an xprintidle utility (available as a package, at least in Debian and Ubuntu) that will do this. It gives you the number of milliseconds since last keyboard or mouse activity. Of course, if you type that in a terminal and run it, the result will be near-0. Alternatively, there is a Perl module. C code (apparently borrowed from that Perl module) ...


1

Seems like the reasonable thing would be asking him to compile it to Linux as he really opposes to release the source code (shouldn't be big deal though if he wrote it "posixly"), Cygwin is a "layer" that provides Unix API under Windows and Wine is a "layer" that provides Windows API under Linux. Since in the end of the day the software written for Cygwin ...


1

ps e lists processes with their commandline along with ( initial ? ) environment variables . filter processes matching either a -display :0 commandline or a DISPLAY=:0 environment . i believe this find the wm in question whether started manually or by some session script . then we can simply kill it . i hear there are different ps implementations , the ...


1

Your goal is unclear. If you mean accessing an existing session running on, say display :0 but don't care about it being shared via VNC, then x11vnc is the way to go. If you mean accessing another computer's X session via a thin-client like device, have a look at Xdmx. A sort of middle ground seems to be Xpra. Please clarify your goals.


1

You could use wmctrl to tell the window manager to activate it (raise it and give it focus): wmctrl -ia "$WINDOWID"


1

Most likely, the command is executing but doesn't know where to display the output. I assume you are being logged in to X with a user other than root, and that rule is most likely being run as root. Try the following command: su - your_X_user_here -c 'export DISPLAY=:0;zenity --info' For running any Bash Script follow the command: su - your_X_user_here ...


1

The xset command is executed, but something in KDE overrides these settings afterwards. The easiest solution would be to find the place in KDE where you can set the mouse acceleration. There may not be one though. If you can't find a GUI way, you'll have to arrange for your xset command to run after KDE sets its own unmodifiable preferences. Add an ...


1

Here is a solution that works without any pains. Install sendkeys script from here: https://github.com/kyoto/sendkeys For your case just do this: oathtool --totp some-seed | xargs sendkeys.sh 'Firefox' This will send the output of oathtool to the open Firefox window. The script searches for windows according to its title. So, if you, let's say, want ...



Only top voted, non community-wiki answers of a minimum length are eligible