Trying to use local
This commit is contained in:
parent
2682f06437
commit
482ac6e28e
1 changed files with 2 additions and 3 deletions
|
@ -64,10 +64,9 @@
|
||||||
(local alt "Mod1")
|
(local alt "Mod1")
|
||||||
|
|
||||||
;; Set hostname so that we can utilize specific features on different machines
|
;; Set hostname so that we can utilize specific features on different machines
|
||||||
(global laptop false)
|
(local laptop (awful.spawn.easy_async "hostname" (fn [ stdout stderr reason exit_code ]
|
||||||
(awful.spawn.easy_async "hostname" (fn [ stdout stderr reason exit_code ]
|
|
||||||
(if (= "chris-linuxlaptop\n" stdout)
|
(if (= "chris-linuxlaptop\n" stdout)
|
||||||
(tset _G laptop true))))
|
true))))
|
||||||
(if laptop (naughty.notify {:text "laptop detected"}) (naughty.notify {:text "laptop not detected"}))
|
(if laptop (naughty.notify {:text "laptop detected"}) (naughty.notify {:text "laptop not detected"}))
|
||||||
|
|
||||||
;; Table of layouts to cover with awful.layout.inc, order matters.
|
;; Table of layouts to cover with awful.layout.inc, order matters.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue