Live data from Hacker News

Cool but obscure X11 tools

cyber.dabamos.de

81–90 of 256 posts

Re: Cool but obscure X11 tools

#81
post #21

Earlier quoted context omitted.

Last time I tried Karabiner Elements, it was quite buggy and brought down the kernel. Not a happy camper. Then Apple blessed us with allowing Escape-Caps remapping out of the box (guess that Touch Bar resulted in something useful...) Did it improve? What do you remap?

I've started using it a few months ago, and it seems pretty stable. I've got a fancier mapping for the caps lock key: when you hold it, it works like ctrl, and when you tap it it works like escape. I've also got something similar for space: when I tap space, it works like space. When I hold space, I can tap additional characters. (So space works like a modifier, similar to ctrl or shift.) For example, space-x = delet…

I'm using the same keybind as you do.

The space one however, did not work well for me. It resulted too frequently in space not working at all. Supposedly it got matched as a combination with another key instead of a tap.

I recommend to apply a new rule, then test it out, then make another change. This way, you figure out which rule poses an issue.

There is one ruleset in Hammerspoon in the Github repo which I mentioned which -for me- makes it impossible to type cd. It always becomes c d

Re: Cool but obscure X11 tools

#83

With the exception of local editors (gvim) and administration software (xload), the need for these applications is easier to satisfy with online HTML5 apps. These are historically exciting, but nowadays the web browser is your X11.

The browser can't implement xeyes (the cursor position outside a window is surely not visible?), so it will never be a serious replacement for X11.

Re: Cool but obscure X11 tools

#85
Shameless plug - you can add also my tiny transset rewrite and enrichment - set_opacity[1]. It allows making X windows translucent, without any interaction required. Wrote it more than a decade ago, but still should be usable. This is how you can use it:

set_opacity -o 0.5 -i `pgrep gkrellm`

There is also a patched[2] xcompmgr with the colored shadows support:

xcompmgr -fF -I-.002 -O-.003 -D6 -cC -t-5 -l-6 -r5 -R 1 -G 0.5333 -B 0

[1] https://github.com/XVilka/set_opacity/

[2] http://xvilka.narod.ru/files/xcompmgr-1.1.2.tar.bz2

Re: Cool but obscure X11 tools

#86

The 1994 xv codebase still compiles and runs on modern Macs with XQuartz! https://twitter.com/jmcd/status/1143629189817470977?s=20

Yep. I still use it. I have a headless Amazon EC2 GPU instance that generates images -- I tunnel X11 thru ssh and xv works like a charm!

Re: Cool but obscure X11 tools

#87

For those looking for obscure-but-useful, checkout xdotool. `sleep 2; xdotool type "foo"` is super handy for typing passwords into virtual machines which don't support guest additions. I'd rather not elaborate on the filthy things I've made it do, but rest assured you can use it to do some quick and dirty automation tasks if you really need to :)

I suggest Sikuli, it does fuzzy matching on your screen contents to determine whether to continue with your dirty, dirty hacks.

For a lighter-weight alternative to Sikuli that does not require Java, check out visgrep[1] from the xautomation project.[2]

[1] - https://linux.die.net/man/1/visgrep

[2] - https://hoopajoo.net/projects/xautomation.html

Post reply on HN