1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2026-03-23 14:05:11 +00:00
awesome-copycats/settings/startup.lua
2014-05-16 11:34:10 +02:00

24 lines
404 B
Lua

-- {{{ Run once function
local awful = require("awful")
function run_once(cmd)
findme = cmd
firstspace = cmd:find(" ")
if firstspace then
findme = cmd:sub(0, firstspace-1)
end
awful.util.spawn_with_shell("pgrep -u $USER -x " .. findme .. " > /dev/null || (" .. cmd .. ")")
end
-- }}}
-- {{{ Autostart applications
run_once("urxvtd")
run_once("unclutter")
run_once("compton")
-- }}}