Questions tagged [lua]

From Lua's About page:

What is Lua?

Lua is a powerful, fast, lightweight, embeddable scripting language.

Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

The official implementation of Lua is written in ANSI C, but a list of several other implementations can be found on the Lua Users Wiki page on Lua Implementations.

The current official version of Lua is 5.2. The previous version (5.1) is available in the version history on the official site.


Please note that the official name of this programming language is Lua (a Portuguese word for Earth's moon). It is not an acronym -- it is not spelled LUA.

41 questions
14
votes
2 answers

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 that huge .config/awesome/rc.lua configuration…
kravemir
  • 4,014
  • 4
  • 33
  • 48
10
votes
2 answers

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: 1KiB Up: 1KiB Down: 1.8KiB Up: 1.8KiB Down:…
nowy1
  • 621
  • 2
  • 7
  • 15
9
votes
1 answer

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 remotely). Result: The window is still…
l0b0
  • 50,672
  • 41
  • 197
  • 360
7
votes
3 answers

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 text_buffer_size 2048 #imlib_cache_size 0 # Window…
user80551
  • 1,549
  • 3
  • 15
  • 21
4
votes
1 answer

How to use neovim configuration systemwide

I am trying to make sure that my neovim configuration gets used for all users. Basically I want my neovim configuration at ~/.config/nvim to be used on using the nvim command with sudo. Hence I copied ~/.config/nvim to /etc/xdg/nvim. The problem is…
3
votes
1 answer

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 file, I've looked for answers, and I've reviewed the…
possumtech
  • 33
  • 1
  • 5
3
votes
1 answer

How to get subject of gmail letter with curl?

I use curl in my Lua program to get new mail list. I am trying to send request like this local head_command = "curl --connect-timeout 30 -fsm 30" local server = "imap.gmail.com" local mail = "***" local password = "***" local port …
3
votes
1 answer

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 with information about my keyboard layout, the tag…
Caleb
  • 69,278
  • 18
  • 196
  • 226
3
votes
1 answer

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 with it? Is it possible run Lua commands just in…
vico
  • 783
  • 3
  • 18
  • 32
2
votes
1 answer

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 conkyrc and lua script) was that you had to set the…
Joseph R.
  • 38,849
  • 7
  • 107
  • 143
2
votes
1 answer

Making Bash send this error to std error

While writing some Lua as a backend for my LuaTeX code I noticed the following. For background, here is the Lua code. This version is standard Lua. But you don't really need to understand Lua to understand what the function is doing. I needed a…
Faheem Mitha
  • 34,649
  • 32
  • 119
  • 183
2
votes
2 answers

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 install luasql-mysql…
polemon
  • 11,133
  • 11
  • 69
  • 111
2
votes
1 answer

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?
Mark
  • 141
  • 4
1
vote
0 answers

Conky: attempt to compare number with nil

I'm trying to make my own conky script, and I'm having some trouble with a script I'm using. The script is this one. This is the problematic part: { name="diskio_read", arg="/dev/nvme0n1", max=100, width=85, height=110, …
fpp
  • 11
  • 1
1
vote
0 answers

How to detect the linux distribution name in Neovim init.lua

How can I detect in my neovim ~/.config/nvim/init.lua configuration which operating system distribution nvim is running? I want different Neovim configurations on debian servers as on my fedora linux workstation machines. vim.loop.os_uname() only…
Simon Schürg
  • 185
  • 1
  • 1
  • 8
1
2 3