From a693dd565b3ccacc001db0608518281bc5c27350 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 3 Feb 2021 11:22:21 -0600 Subject: [PATCH] Setting variable correctly --- awesome/init.fnl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awesome/init.fnl b/awesome/init.fnl index 23c8b15..94d5c54 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -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.