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