]> git.rmz.io Git - dotfiles.git/commitdiff
make functions local, actually run conky
authorSamir Benmendil <samir.benmendil@gmail.com>
Sat, 15 Jun 2013 02:52:24 +0000 (04:52 +0200)
committerSamir Benmendil <samir.benmendil@gmail.com>
Sat, 15 Jun 2013 02:52:24 +0000 (04:52 +0200)
awesome/conky.lua

index 6a3fb168a9d93633332a3fc3539c3ef6c50c0c98..fa1c3f59b6d4a9378591a854948f0be1c9c297d6 100644 (file)
@@ -1,7 +1,7 @@
 -- http://awesome.naquadah.org/wiki/Conky_HUD
 local utils = require("utils")
 
-function get_conky()
+local function get_conky()
     local clients = client.get()
     local conky = nil
     local i = 1
@@ -15,21 +15,24 @@ function get_conky()
     end
     return conky
 end
-function raise_conky()
+
+local function raise_conky()
     local conky = get_conky()
     if conky
     then
         conky.ontop = true
     end
 end
-function lower_conky()
+
+local function lower_conky()
     local conky = get_conky()
     if conky
     then
         conky.ontop = false
     end
 end
-function toggle_conky()
+
+local function toggle_conky()
     local conky = get_conky()
     if conky
     then
@@ -54,3 +57,5 @@ utils.rules.append({
 
 -- add global key
 utils.globalkeys.append(awful.key({}, "F4", function () raise_conky() end, function () lower_conky() end))
+
+utils.run_once("conky")