Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lua]

The tag has no usage guidance, but it has a tag wiki.

0
votes
0answers
13 views

cairo graphics inside my_conky.lua is eating memory when i use surface_create_from_png

i tried adding images to my conky.lua with the following function function drawimage(cr,img) image = cairo_image_surface_create_from_png (img) cairo_set_source_surface (cr, image, screen.x, ...
1
vote
0answers
70 views

Separating the code related to various components in awesome wm config

This is the code in default awesome wm config for creating top bar: awful.screen.connect_for_each_screen(function(s) -- Wallpaper set_wallpaper(s) -- Each screen has its own tag table. ...
0
votes
2answers
411 views

Is there a way to find version of lua interpreter?

Unlike python, lua doesn't seem to have a way of giving version details. With python - $ python --version Python 2.7.15+ $ python3 --version Python 3.6.6 There are multiple versions of lua on my ...
0
votes
1answer
113 views

Lua standalone with external binary program

I am writing a small program to us in LuaLaTex. The purpose of it is to produce an qr-code with a given uuid, the qr-code is printed on the page and the uuid is stored in the pdf's meta-data. ...
0
votes
0answers
78 views

how to trigger a PHP webpage after lsync copies a file

I have the following logic in my /etc/lsyncd/lsyncd.lua file require "lsync-widgets" sync { widget_sync, source="/tmp/folder1", target="/tmp/folder2/" } And then in my lsync-widgets....
0
votes
1answer
1k views

conky attempt to call nil value

I've been tweaking my conky config and getting the error conky: llua_do_call: function conky_cpu execution failed: attempt to call a nil value The function conky_cpu resides in ~/.conky_cpu.lua. ...
1
vote
0answers
216 views

Awesome wm wibox visible just in one tag

I want to leave visible wibox1 only one of my tags. I try use this code: your_tag:add_signal("property:selected", function(tag) your_wibox.visible = tag.selected end) But no have success. ...
1
vote
1answer
73 views

Why Lapis does not work?

I have installed Lapis framework using command: luarocks install lapis --local It gave me success installation: Updating manifest for /home/Oman/.luarocks/lib/luarocks/rocks lapis 1.5.0-2 is now ...
1
vote
1answer
482 views

Ubuntu, lua, nmap and sqlite3 - module 'luasql.sqlite3' not found

I need to work with nmap and sqlite3 and I installed lua 5.1 and lua-sql-sqlite3 on an ubuntu machine: sudo apt-get install lua5.1; sudo apt-get install lua-sql-sqlite3 Now, when I'm doing this: $ ...
-1
votes
1answer
490 views

What is the Lua language used in Conky script?

I've been experimenting with Linux on a spare PC using Crunchbang so that I can try changing things and tinker. The Conky system monitor is fun to work with and changes are immediately seen, so it's a ...
3
votes
1answer
2k views

Can a wibox in Awesome-WM be setup vertically?

I use the venerable Awesome WM to manage tiled window layouts across a couple of screens. My configuration has a few goodies, but in general it follows a familiar pattern with a bar across the top ...
2
votes
1answer
161 views

Disable text on tags in awesomeWM?

The current awesomewm theme that I am using has small icons to manage the tags, as opposed to the traditional numbers. How can I disable the numbers from displaying over top of my icons?
3
votes
1answer
899 views

Run Lua commands in Awesome window manager

I need to have network widget in my Awesome manager. When I placed in very bottom of rc.lua line awful.util.spawn("nm-applet") my Awesome was not starting until I have removed it. What is wrong ...
0
votes
1answer
901 views

Bandwidth speed test with nginx

I have server with nginx-1.4.1. I want to test bandwidth between my desktop and server. Incoming speed I can test by simple download file with size 10M from server and count time what I need to ...
1
vote
4answers
701 views

Distro with pip and npm as package managers?

Is there an attempt of distro around that for Python and Node code ( and Ruby , Lua ) would use Pip, NPM and rubygems and luarocks respectively ? It could simply work as a passthrough from native ...
5
votes
3answers
10k views

Increasing conky height

Is there any way to change the height of a conky window? .conkyrc background no update_interval 1 cpu_avg_samples 2 net_avg_samples 2 override_utf8_locale yes double_buffer yes no_buffers yes ...
9
votes
1answer
814 views

How to force applications to not start maximised in Awesome WM?

How to reproduce: ssh -X user@host firefox (or some other X application). Maximise the window. Close the application. Open the application in Awesome WM (tried only locally, but should also work ...
2
votes
1answer
900 views

Editing Conky configuration variables from Lua

I've been messing around with Conky for a while now and I recently started dabbling in Lua scripting. One of the things that used to bug me about a "flat" conkyrc approach (as opposed to a combined ...
6
votes
1answer
2k views

Conky - string formatting

I have conky the record: ${color lightblue} Down: ${downspeed wlan0} Up: ${upspeed wlan0} Conky prints link speed, but the text moves: Down: OB Up: OB Down: 60B Up: 60B Down: 148B Up: 148B Down:...
3
votes
1answer
2k views

Control-q-? key binding in Awesome WM

I wish to configure my Awesome Window Manager so that the keyboard shortcuts begin with ctrlq. ctrlq-x, ctrlq-y, ctrlq-z, and so on... I've attempted to modify the /etc/xdg/awesome/rc.lua config ...
2
votes
2answers
4k views

Using a lua rock installed with luarocks

I wanted to install luasql.mysql with luarocks, and I've ran into a problem. Even though the packages were installed providing mysql.h, luarocks couldn't find it. I solved it eventually: luarocks ...
14
votes
2answers
4k views

How to separate Awesome's `rc.lua` configuration into multiple files?

I've just moved to Awesome WM from OpenBox. I like that it's very extensible, customizable and I have huge control about window layout. I like structured and organized things and I'd like to separate ...