From b244c70ab23be47b4f37d18f4ebbee0ca72cc111 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 4 Oct 2017 13:13:06 +0200 Subject: [PATCH] Run .xsession if exists --- awesome/rc.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/awesome/rc.lua b/awesome/rc.lua index b7f6949..603832f 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -18,6 +18,17 @@ home = os.getenv('HOME') os.execute('xset m 16/1 0') os.setlocale("fr_FR.UTF-8") +-- Run xsession if exists +function file_exists(name) + local f=io.open(name,"r") + if f~=nil then io.close(f) return true else return false end +end + +if file_exists(home..'/.xsession') then + awful.spawn(home .. '/.xsession') +end + + naughty.config.notify_callback = function(args) -- Set maximum size for notifactions if args.icon_size == nil or args.icon_size > 128 then