You are not logged in.

#1 2015-11-17 14:33:39

bart_vv
Member
From: Poland
Registered: 2011-04-12
Posts: 51

Fullscreen games and keyboard grabbing - bash script

Hi,

This is a known problem I think. I have considered various solutions (esekeyd: https://sites.google.com/site/blabdupp/esekeyd, patched libraries: https://wiki.archlinux.org/index.php/Ga … _grabbing), but none are satisfying for me, as they require too much maintenance. I think that something similar to esekeyd would be the best - I use acpid handler.sh script. I would like to know if it is possible to successfully sent a notification to my WM from this script. I have tried:

xs=$(ps -C awesome -o user=)
su $xs -c "echo \"local awful = require(\\\"awful\\\"); awful.tag.viewprev()\" | awesome-client";

But this, of course, fails. (tried adding DISPLAY, but it still fails as awesome-client uses dbus, and this command is unable to find it, I think. Any ideas?

Alternatively some solution with Xf86Ungrab would be acceptable, if someone knows how to configure it.

Offline

Board footer

Powered by FluxBB