Setting variable correctly
This commit is contained in:
parent
0f2b385f6b
commit
a693dd565b
|
@ -65,10 +65,10 @@
|
|||
|
||||
;; Set hostname so that we can utilize specific features on different machines
|
||||
(global laptop false)
|
||||
(awful.spawn.easy_async "hostname" (fn [ stdout stderr reason exit_code ]
|
||||
(global laptop (awful.spawn.easy_async "hostname" (fn [ stdout stderr reason exit_code ]
|
||||
(if (= "chris-linuxlaptop\n" stdout)
|
||||
(global laptop true)
|
||||
(naughty.notify {:text "didn't set"}))))
|
||||
true
|
||||
false))))
|
||||
(if laptop (naughty.notify {:text "laptop detected"}) (naughty.notify {:text "laptop not detected"}))
|
||||
|
||||
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||
|
|
Loading…
Reference in a new issue