Run .xsession if exists
This commit is contained in:
parent
f699becd27
commit
b244c70ab2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue