1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2025-01-11 02:08:08 +00:00

Moved autostart away from theme.lua files

This commit is contained in:
Alexandre Viau 2014-05-10 18:24:30 -04:00
parent 23b7e4a8a9
commit 6bd3ed8f37
10 changed files with 78 additions and 153 deletions

10
myrc/run_once.lua Normal file
View file

@ -0,0 +1,10 @@
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

View file

@ -38,20 +38,8 @@ do
end end
-- }}} -- }}}
-- {{{ Autostart applications -- STARTUP apps
function run_once(cmd) require("settings.startup")
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
run_once("urxvtd")
run_once("unclutter")
run_once("compton")
-- }}}
-- {{{ Variable definitions -- {{{ Variable definitions
-- localization -- localization

View file

@ -39,20 +39,8 @@ do
end end
-- }}} -- }}}
-- {{{ Autostart applications -- STARTUP apps
function run_once(cmd) require("settings.startup")
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
run_once("urxvtd")
run_once("unclutter")
run_once("compton")
-- }}}
-- {{{ Variable definitions -- {{{ Variable definitions
-- localization -- localization

View file

@ -38,20 +38,8 @@ do
end end
-- }}} -- }}}
-- {{{ Autostart applications -- STARTUP apps
function run_once(cmd) require("settings.startup")
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
run_once("urxvtd")
run_once("unclutter")
run_once("compton")
-- }}}
-- {{{ Variable definitions -- {{{ Variable definitions
-- localization -- localization

View file

@ -38,20 +38,8 @@ do
end end
-- }}} -- }}}
-- {{{ Autostart applications -- STARTUP apps
function run_once(cmd) require("settings.startup")
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
run_once("urxvtd")
run_once("unclutter")
run_once("compton")
-- }}}
-- {{{ Variable definitions -- {{{ Variable definitions
-- localization -- localization

View file

@ -38,19 +38,8 @@ do
end end
-- }}} -- }}}
-- {{{ Autostart applications -- STARTUP apps
function run_once(cmd) require("settings.startup")
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
run_once("urxvtd")
run_once("unclutter")
-- }}}
-- {{{ Variable definitions -- {{{ Variable definitions
-- localization -- localization

View file

@ -38,19 +38,8 @@ do
end end
-- }}} -- }}}
-- {{{ Autostart applications -- STARTUP apps
function run_once(cmd) require("settings.startup")
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
run_once("urxvtd")
run_once("unclutter")
-- }}}
-- {{{ Variable definitions -- {{{ Variable definitions
-- localization -- localization

View file

@ -38,20 +38,8 @@ do
end end
-- }}} -- }}}
-- {{{ Autostart applications -- STARTUP apps
function run_once(cmd) require("settings.startup")
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
run_once("urxvtd")
run_once("unclutter")
run_once("compton")
-- }}}
-- {{{ Variable definitions -- {{{ Variable definitions
-- localization -- localization

View file

@ -38,20 +38,8 @@ do
end end
-- }}} -- }}}
-- {{{ Autostart applications -- STARTUP apps
function run_once(cmd) require("settings.startup")
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
run_once("urxvtd")
run_once("unclutter")
run_once("compton")
-- }}}
-- {{{ Variable definitions -- {{{ Variable definitions
-- localization -- localization

9
settings/startup.lua Normal file
View file

@ -0,0 +1,9 @@
-- {{{ Autostart applications
require("myrc.run_once")
run_once("urxvtd")
run_once("unclutter")
run_once("compton")
-- }}}