From ad1cb22c1a2dbf260b077a8c8708a1b0a1e9d862 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Wed, 12 Jun 2013 06:19:58 +0200 Subject: [PATCH] add host variable to utils --- awesome/utils.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awesome/utils.lua b/awesome/utils.lua index c7a5492..f534770 100644 --- a/awesome/utils.lua +++ b/awesome/utils.lua @@ -1,5 +1,9 @@ local utils = { } + +local host = io.popen("hostname") +utils.host = host:read("*l") + function utils.run_or_kill(command) -- Check throught the clients if the class match the command local lower_command=string.lower(command) -- 2.48.1