Tag Info

Hot answers tagged

10

To be called UNIX you need to go through a certification process that requires (among other things) that you implement the POSIX standard. So your question is completely invalid. There is UNIX API, it's called POSIX. EDIT: Here is the list of requirements: http://www.unix.org/version4/overview.html


5

Try to add a last line kill %1 In interactive shells at least you can kill the pid of the background job this way. Otherwise look if the process can write a pid file or use killall, if you're sure, there's only one process of this wm


5

I found a way to make this work in OpenSUSE, and I hope it won't be too different in Mint. Maybe your files will be in slightly different locations, but it shouldn't be too hard to find the right ones. OpenSUSE uses ibus by default (or, at least, the Gnome version does), but I got rid of it and used xim. I don't know if Mint also uses ibus but, in any case, ...


4

It really seems to me that the Unix community is killing themselves in the Desktop world. I think there is a misconception that any form of Unix exists in order to compete in the home PC market. There are some linux distros which have this focus; the first one was really Ubuntu, but it is worth considering that part of Ubuntu's original vision was to ...


3

You don't need (and don't want) xhost +. Just update (or create) your .ssh/config file with the following for the equivalent of -X: Host * ForwardX11 yes Or for the equivalent of -Y: Host * ForwardX11Trusted yes This will affect your connections to all hosts. You can of course use something other than * to limit these configurations changes to ...


3

X11 uses two buffers: PRIMARY and CLIPBOARD. To copy/paste to the CLIPBOARD buffer you can often use CTRL-C and CTRL-V. You can insert to the PRIMARY buffer by selecting a text and paste from it by pressing the middle mouse button. If you want to use the CLIPBOARD buffer, put this in your ~/.Xresources file and use Ctrl+Shift+C and Ctrl+Shift+V to ...


3

FocusOut event, serial 37, synthetic NO, window 0x4c00001, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 37, synthetic NO, window 0x4c00001, mode NotifyUngrab, detail NotifyAncestor What happened when you pressed A with Shift held is a passive grab: there's an X client which has exclusive control over this key combination, and ...


2

You have hinted the answer yourself by referencing https://en.wikipedia.org/wiki/Fixed_(typeface) This is the standard fixed bitmap font which has been expanded by Markus Kuhn to have a rather complete character set. The question is then how to scale a bitmap. What you have achieved so far is scaling a vector font and converting it to a bitmap (ttf → bdf → ...


2

Using ImageMagick, based on rlogo_icon.h. #!/bin/sh echo 'unsigned long rlogo_icon[] = {' identify -format '%w, %h,' $1 convert $1 -color-matrix '0 0 1 0, 0 1 0 0, 1 0 0 0, 0 0 0 1' RGBA:- | hexdump -v -e '1/4 "0x%08x,\n"' echo '};' Usage: ./script.sh rlogo_icon.png > rlogo_icon.h I'm not sure this -color-matrix is always correct. I placed bytes in ...


2

xseticon allows you to do exactly that.


2

Unix has specifications/a standard they hope you'll follow, POSIX, ways things should be implemented, though up to the developer, it's a standard we should follow if we want our code to work on many architectures/platforms/systems whatever, up to the developer at the end of the day to follow what (hopefully) majority of developers are following. Windows has ...


2

If you understand what is going on in X11 forwarding, you will know that it is not so simple as described in the answer from @yaegashi. X11 forwarding is creating another layer under the ssh and it can't be chained as normal terminal data streams. But you are able to do it using port forwarding: Based on this blog post, which does it as hardcoding in shell ...


2

Why doesn't that solution with ProxyCommand work for X11 forwarding? I think you can directly reach mum's computer with X11 forwarding using the following configuration. Host mum ProxyCommand ssh -q -W localhost:1993 login@vps0 ForwardX11 yes


2

After reading a little bit on assigning modifiers, following the hint from Gilles, I came up with key <TAB> { [ BackSpace ] }; key <CAPS> { [ Control_L ] }; key <LCTL> { [ Tab ] }; key <MENU> { [ Alt_R ] }; modifier_map Control { <CAPS> }; modifier_map Mod1 { Alt_L, Alt_R, <MENU> }; This solves problems 1 and 2. ...


2

Having 'a and 'b behave differently sounds annoying. I recommend that you use a different way to input characters with diacritics. Instead of making ' and such dead keys, use a compose key. To enter 'a', you type ' a ' normally. To enter á, you type Compose ' a. I'm not familiar with Mint's keyboard layout configuration interface but it should have an ...


1

Turns out, I didn't account for the fact that X11 has two buffers: primary and clipboard. My text from xterm was copied into primary buffer, while I needed it in clipboard buffer. I was able to fix the problem by installing parcellite package, launching it and configuring it to synchronize two buffers.


1

The tools to manipulate the keyboard layout on the virtual consoles are loadkeys, dumpkeys and showkeys. Read their manpages and inform yourself about their intricacies. Note that these tools only work in a virtual console, not in a terminal emulator in a graphical environment like gnome. The learn about the difference read this question and answers: ...


1

In order to avoid having to synchronize between clients to allocate new ids, each X11 client is simply given a large range of resource ids for their use, and ids come out of that set, regardless of what other clients have used in their sets. Furthermore resource identifiers are used for objects other than toplevel windows, so if you only list window ...


1

On Ubuntu 14.04 I did the following: 1) Installed uim using the Software Manager, other packages like uim-xim, uim-gtk2, uim-gtk3 and uim-qt are auto installed. See https://launchpad.net/ubuntu/+source/uim. 2) Defined environmental variables by adding the next lines to ~/.profile, this way the custom compose key sequences only apply to the current user: # ...


1

I've been long using a miniscript I named lonew for this. It's meant to be short for "lastof or new". lastof is another script of mine, which attempts to find a visible window that matches a given command a was accessed the most recently. Both of the scripts are below: (they might use some refactoring but they get the job done) lonew: #!/bin/bash ...


1

Perhaps this is something along the lines of what you are looking for. I have just used sleep, but you can use a dialog such as yad or zenity, and change the loop so that it keeps cycling, or whatever you need. You can then add a hot-key as needed . It requires that you prime the script with the application's startup command, and also the application's ...


1

X programs use DISPLAYs to work out what X11 instance to apply the program to. If you are the sole user of your host then most likely your display will be localhost:0 or often abbreviated to :0. you can find your DISPLAY variable by using: echo ${DISPLAY} To tell xclip to use that display, issue the -display command line option, or set the the DISPLAY ...


1

kill -TERM -$$ (kill current process group) should also do it in a race condition-safe manner. This or kill % should be preferred to killing by pid or by name.


1

This should do it: xclip -selection c -o | xclip -selection c


1

So far I've found xdotool tool which can fake input from the mouse and keyboard quite easily. Some examples with simple keyboard interaction: xdotool key a xdotool key Down xdotool key Tab xdotool key "Return" xdotool key "Control_L+t" xdotool key Alt+1 xdotool key ctrl+v xdotool key Super xdotool key KP_Enter xdotool key ctrl+Page_Up xdotool key ...


1

Maybe this can help someone else. I had the same question as you but for a normal user. Let's say I want to start firefox using the user account foo. I'm logged in as bar: [bar@localhost ~]$ sudo -u foo -H firefox Sadly that command failed with the same error as in the question (i.e. no protocol specified & cannot open display) My solution was to ...



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