]> git.rmz.io Git - dotfiles.git/commitdiff
add host variable to utils
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 12 Jun 2013 04:19:58 +0000 (06:19 +0200)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 12 Jun 2013 04:19:58 +0000 (06:19 +0200)
awesome/utils.lua

index c7a5492f88217c985c4caadf7f0ee98c4007289d..f534770af6f48aacdd5810a0318d89bc9201e6d1 100644 (file)
@@ -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)