You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to do ioctl calls from within awesome. The quickest and ugliest way to do this would be to simply make the calls directly from the awesome C code. The slightly nicer way would be to expose a function to call ioctl from awesome. An even nicer way might be to use ljsyscall to expose ioctl to lua. Now ljsyscall requires either LuaJIT or luaffi. Since LuaJIT is really fast why not use LuaJIT? Well, awesome does compile against LuaJIT but it is a bit more work. Here's how:
Install luajit from source:
wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz
tar xvzf LuaJIT-2.0.5.tar.gz
cd LuaJIT-2.0.5/
make
sudo make install
Install luarocks from source:
wget https://luarocks.org/releases/luarocks-2.4.3.tar.gz
tar xvzf luarocks-2.4.3.tar.gz
cd luarocks-2.4.3/
./configure
sudo make bootstrap
Install lgi using luarocks:
sudo luarocks install lgi
Symlink the luajit binary to lua:
cd /usr/local/bin/
ln -s luajit lua
Before running make to compile awesome, run the following:
We need to do
ioctl
calls from within awesome. The quickest and ugliest way to do this would be to simply make the calls directly from the awesome C code. The slightly nicer way would be to expose a function to callioctl
from awesome. An even nicer way might be to use ljsyscall to exposeioctl
to lua. Now ljsyscall requires either LuaJIT or luaffi. Since LuaJIT is really fast why not use LuaJIT? Well, awesome does compile against LuaJIT but it is a bit more work. Here's how:Install luajit from source:
Install luarocks from source:
Install lgi using luarocks:
Symlink the
luajit
binary tolua
:Before running
make
to compile awesome, run the following:The text was updated successfully, but these errors were encountered: