Lua is a scripting language that gained popularity due to how easy it is to embed and learn.
Questions tagged [lua]
50 questions
17
votes
1 answer
Awesome-wm a signal to rise client when focus received
I've got my Emacs running on a tag worker with server-start launched. I have a file manager opened somewhere else (another monitor for example) and when I open a text file with emacsclient it successfully opens in emacs but doesn't switch to it and…
alexm
- 1,131
7
votes
2 answers
How to take screenshot(using selection) in awesome wm via scrot
Tried:
awful.util.spawn("scrot -s")
awful.util.spawn("urxvt -e \"scrot -s\"")
os.execute("scrot -s")
and all possible combinations even with sleep.
Also tried daemonize.
Nothing works =(
P.S. All commands are in key bindings, if I replace scrot -s…
smt
- 93
- 1
- 1
- 6
5
votes
7 answers
Focus on application when changing workspaces in awesome-wm
I am using archlinux in combination with awesome-wm for quite a while now. I still haven't figured out how to automatically grab the focus on an application when changing workspace through Mod+number.
For example, I have firefox running on workspace…
Carlito
- 233
4
votes
0 answers
MonoDevelop can't find .so file in LD_LIBRARY_PATH
I'm making a game using MonoGame and a Linux implementation of LuaInterface. However, whenever I try to build the project, MonoDevelop gives an error saying that it is unable to load liblua5.1.so, which is a library used by LuaInterface. However,…
cmark89
- 41
4
votes
1 answer
Macro hotkey for "Save Image As..." in Firefox?
Relevant PC info:
Windows 7 64bit
Firefox (latest)
Logitech g710+ Keyboard with Logitech Gaming software
Right now, I have to:
Hover over an image
right-click
Click "Save Image As.."
Click "Save" on the explorer save window (and potentially go to…
Wuschelbeutel Kartoffelhuhn
- 1,546
- 9
- 32
- 48
3
votes
2 answers
Awesome WM : How can I write a rule to make a window appear floating under the mouse?
I am using a clipboard manager and I would like to see it appear just under the mouse when I press a shortcut key.
I have written different rules for awesome wm, I see how to focus the good client, how to make it floating, how to make it appear at a…
mperrin
- 616
3
votes
1 answer
Awesome Window Manager - Open Chromium Developer Tools on Different Screen Than Chromium
I have three screens. One is for URxvt and VIM, another is for Chromium, Firefox, and Opera, and the third is for Chromium's Developer Tools. Below are the rules I've created in my rc.lua in an attempt to create this behavior. It works if I already…
3
votes
0 answers
Is it possible to copy files with grub2 scripting?
I am trying to work out a few details for a dual boot, public use (i.e. public library context) that runs Windows 7 and Linux.
I am using Windows 7 and Linux Mint. Windows 7 runs on a VHD file (filesystem image like squashfs in Linux). I need grub…
motech man
- 51
2
votes
3 answers
Awesome Window Manager - Rule assigning programs to tags
I have a set of tags 'main', 'www', and 3:
-- {{{ Tags
tags = {
names = {"main", "www", 3},
for s = 1, screen.count() do
tags[s] = awful.tag(tags.names, s, tags.layout)
end
}
-- }}}
I want Firefox to open in tag "www". I've tried…
Peter
- 967
2
votes
1 answer
How can I use Hammerspoon to allow me to use Windows and macOS hotkeys?
I'm coming from using Linux or Windows.
For example, I'm trying to allow myself to use cmd+c or ctrl+c to copy text in macOS. This is the Hammerspoon script I have, but it doesn't seem to be working:
-- Create an event tap for keyDown and keyUp…
Eric Nelson
- 161
- 3
2
votes
0 answers
How to delete the fist line in the file using lua script?
I just started learning script lua. I have a .txt file with the format "user | pass". how to get "user" and "pass" on the first line and delete them from that file.
This is my command but I can only read the contents of one line, but I can't…
Game Replay
- 21
2
votes
1 answer
E: Couldn't find any package by regex 'lua5.3'
I have a new Debian Jessie machine, but when I try to install Lua (5.3) through apt I get this error:
Reading package lists... Done
Building dependency tree
Reading stateinformation... Done
E: Unable to locate package lua5.3
E: Couldn't find any…
Diego Barreiro
- 123
2
votes
0 answers
Cannot create process: proc_open: failed to open stream: Permission denied
I've seen this question posted around with no solution. And I've seen other posts that are related (one two) but don't help.
Permissions are set, executable, ownership is set, no SELinux, PHP can execute shell commands, PHP not in safe_mode,…
user193661
- 529
1
vote
1 answer
Installing luabind on Ubuntu
So I've been looking on the internet for a moment and found nearly no tutorial, or good instructions on how to install luabind. I found that I need to have boost and lua 5.xx installed to install it; I've already installed lua 5.3.1 ( which…
MattMatt
- 135
- 1
- 1
- 7
1
vote
0 answers
Run a script with Apache2 in a certain directory
I am trying to run WebMCP on an Apache2 server. It's got 2 executable files, which I have in /opt/webmcp/cgi-bin/webmcp.lua and /opt/webmcp/cgi-bin/webmcp-wrapper.lua
If I run the wrapper from a position that is not /opt/webmcp/cgi-bin it says it…
Vi Pau
- 268