some QoL patches
This commit is contained in:
parent
46df86a906
commit
3c835f3807
|
@ -10,7 +10,7 @@ local awful = require("awful")
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
local gfs = gears.filesystem
|
local gfs = gears.filesystem
|
||||||
local menu_utils = require("menubar.utils")
|
local menu_utils = require("menubar.utils")
|
||||||
local stdir = "/tmp/.awesome_startup/"
|
local stdir = os.getenv("XDG_RUNTIME_DIR").."/.awesome_startup/"
|
||||||
gfs.make_directories(stdir)
|
gfs.make_directories(stdir)
|
||||||
awful.spawn.with_line_callback("find "..gfs.get_xdg_config_home().."autostart/ -name *.desktop",{
|
awful.spawn.with_line_callback("find "..gfs.get_xdg_config_home().."autostart/ -name *.desktop",{
|
||||||
stdout = function(line)
|
stdout = function(line)
|
||||||
|
|
|
@ -86,7 +86,7 @@ local function _preload(args)
|
||||||
end))
|
end))
|
||||||
else
|
else
|
||||||
-- Let the compositor handle transparency
|
-- Let the compositor handle transparency
|
||||||
supermenu_root.bg = style.popup.bg_normal.."33"
|
supermenu_root.bg = style.popup.bg_normal.."66"
|
||||||
supermenu.widget.bg = "#00000000"
|
supermenu.widget.bg = "#00000000"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -201,8 +201,13 @@ return function(args)
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
awesome.connect_signal("xdg::all_finished",function()
|
awesome.connect_signal("xdg::all_finished",function()
|
||||||
|
local count = 0
|
||||||
for _,v in pairs(xdg.apps) do
|
for _,v in pairs(xdg.apps) do
|
||||||
|
count = count + 1
|
||||||
appgrid:add(icon_cache:get(v.icon or beautiful.icon_default,v.name,v.exec))
|
appgrid:add(icon_cache:get(v.icon or beautiful.icon_default,v.name,v.exec))
|
||||||
|
if count >= args.columns*args.rows then
|
||||||
|
break
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
return widget,icon
|
return widget,icon
|
||||||
|
|
Loading…
Reference in New Issue