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:
parent
23b7e4a8a9
commit
6bd3ed8f37
10
myrc/run_once.lua
Normal file
10
myrc/run_once.lua
Normal 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
|
|
@ -38,20 +38,8 @@ do
|
|||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Autostart applications
|
||||
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
|
||||
|
||||
run_once("urxvtd")
|
||||
run_once("unclutter")
|
||||
run_once("compton")
|
||||
-- }}}
|
||||
-- STARTUP apps
|
||||
require("settings.startup")
|
||||
|
||||
-- {{{ Variable definitions
|
||||
-- localization
|
||||
|
|
|
@ -39,20 +39,8 @@ do
|
|||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Autostart applications
|
||||
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
|
||||
|
||||
run_once("urxvtd")
|
||||
run_once("unclutter")
|
||||
run_once("compton")
|
||||
-- }}}
|
||||
-- STARTUP apps
|
||||
require("settings.startup")
|
||||
|
||||
-- {{{ Variable definitions
|
||||
-- localization
|
||||
|
|
|
@ -38,20 +38,8 @@ do
|
|||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Autostart applications
|
||||
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
|
||||
|
||||
run_once("urxvtd")
|
||||
run_once("unclutter")
|
||||
run_once("compton")
|
||||
-- }}}
|
||||
-- STARTUP apps
|
||||
require("settings.startup")
|
||||
|
||||
-- {{{ Variable definitions
|
||||
-- localization
|
||||
|
|
16
rc.lua.holo
16
rc.lua.holo
|
@ -38,20 +38,8 @@ do
|
|||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Autostart applications
|
||||
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
|
||||
|
||||
run_once("urxvtd")
|
||||
run_once("unclutter")
|
||||
run_once("compton")
|
||||
-- }}}
|
||||
-- STARTUP apps
|
||||
require("settings.startup")
|
||||
|
||||
-- {{{ Variable definitions
|
||||
-- localization
|
||||
|
|
|
@ -38,19 +38,8 @@ do
|
|||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Autostart applications
|
||||
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
|
||||
|
||||
run_once("urxvtd")
|
||||
run_once("unclutter")
|
||||
-- }}}
|
||||
-- STARTUP apps
|
||||
require("settings.startup")
|
||||
|
||||
-- {{{ Variable definitions
|
||||
-- localization
|
||||
|
|
|
@ -38,19 +38,8 @@ do
|
|||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Autostart applications
|
||||
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
|
||||
|
||||
run_once("urxvtd")
|
||||
run_once("unclutter")
|
||||
-- }}}
|
||||
-- STARTUP apps
|
||||
require("settings.startup")
|
||||
|
||||
-- {{{ Variable definitions
|
||||
-- localization
|
||||
|
|
|
@ -38,20 +38,8 @@ do
|
|||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Autostart applications
|
||||
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
|
||||
|
||||
run_once("urxvtd")
|
||||
run_once("unclutter")
|
||||
run_once("compton")
|
||||
-- }}}
|
||||
-- STARTUP apps
|
||||
require("settings.startup")
|
||||
|
||||
-- {{{ Variable definitions
|
||||
-- localization
|
||||
|
|
|
@ -38,20 +38,8 @@ do
|
|||
end
|
||||
-- }}}
|
||||
|
||||
-- {{{ Autostart applications
|
||||
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
|
||||
|
||||
run_once("urxvtd")
|
||||
run_once("unclutter")
|
||||
run_once("compton")
|
||||
-- }}}
|
||||
-- STARTUP apps
|
||||
require("settings.startup")
|
||||
|
||||
-- {{{ Variable definitions
|
||||
-- localization
|
||||
|
|
9
settings/startup.lua
Normal file
9
settings/startup.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
-- {{{ Autostart applications
|
||||
|
||||
require("myrc.run_once")
|
||||
|
||||
run_once("urxvtd")
|
||||
run_once("unclutter")
|
||||
run_once("compton")
|
||||
|
||||
-- }}}
|
Loading…
Reference in a new issue