Run .xsession if exists

This commit is contained in:
Thomas Forgione 2017-10-04 13:13:06 +02:00
parent f699becd27
commit b244c70ab2
No known key found for this signature in database
GPG Key ID: 3B8FC64F5BBFE109
1 changed files with 11 additions and 0 deletions

View File

@ -18,6 +18,17 @@ home = os.getenv('HOME')
os.execute('xset m 16/1 0') os.execute('xset m 16/1 0')
os.setlocale("fr_FR.UTF-8") 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) naughty.config.notify_callback = function(args)
-- Set maximum size for notifactions -- Set maximum size for notifactions
if args.icon_size == nil or args.icon_size > 128 then if args.icon_size == nil or args.icon_size > 128 then