From 2682f064375822595725d8a01e74b10735ecba94 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 3 Feb 2021 11:30:36 -0600 Subject: [PATCH] Using global and tset --- awesome/init.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awesome/init.fnl b/awesome/init.fnl index 35cef36..8e3e03d 100644 --- a/awesome/init.fnl +++ b/awesome/init.fnl @@ -64,10 +64,10 @@ (local alt "Mod1") ;; Set hostname so that we can utilize specific features on different machines -(var laptop false) +(global laptop false) (awful.spawn.easy_async "hostname" (fn [ stdout stderr reason exit_code ] (if (= "chris-linuxlaptop\n" stdout) - (set laptop true)))) + (tset _G laptop true)))) (if laptop (naughty.notify {:text "laptop detected"}) (naughty.notify {:text "laptop not detected"})) ;; Table of layouts to cover with awful.layout.inc, order matters.