diff --git a/rc.lua.template b/rc.lua.template
index 91a60ac..fd83779 100644
--- a/rc.lua.template
+++ b/rc.lua.template
@@ -44,18 +44,26 @@ end
-- }}}
-- {{{ Autostart windowless processes
+
+-- This function will run once every time Awesome is started
local function run_once(cmd_arr)
for _, cmd in ipairs(cmd_arr) do
- findme = cmd
- firstspace = cmd:find(" ")
- if firstspace then
- findme = cmd:sub(0, firstspace-1)
- end
- awful.spawn.with_shell(string.format("pgrep -u $USER -x %s > /dev/null || (%s)", findme, cmd))
+ awful.spawn.with_shell(string.format("pgrep -u $USER -fx '%s' > /dev/null || (%s)", cmd, cmd))
end
end
-run_once({ "unclutter -root" }) -- entries must be comma-separated
+run_once({ "urxvtd", "unclutter -root" }) -- entries must be comma-separated
+
+-- This function implements the XDG autostart specification
+--[[
+awful.spawn.with_shell(
+ 'if (xrdb -query | grep --quiet "^awesome\\.started:\\s*true$"); then; exit; fi;' ..
+ 'xrdb -merge <<< "awesome.started:true";' ..
+ -- list each of your autostart commands, followed by ; inside single quotes, followed by ..
+ 'dex --environment Awesome --autostart --search-paths "$XDG_CONFIG_DIRS/autostart:$XDG_CONFIG_HOME/autostart"' -- https://github.com/jceb/dex
+)
+--]]
+
-- }}}
-- {{{ Variable definitions
diff --git a/themes/copland/theme.lua b/themes/copland/theme.lua
index aaef5cc..1456e8c 100644
--- a/themes/copland/theme.lua
+++ b/themes/copland/theme.lua
@@ -135,11 +135,11 @@ theme.mpd = lain.widget.mpd({
settings = function()
if mpd_now.state == "play" then
title = mpd_now.title
- artist = " " .. mpd_now.artist .. markup("#333333", " | ")
+ artist = " " .. mpd_now.artist .. markup("#777777", " | ")
mpdicon:set_image(theme.play)
elseif mpd_now.state == "pause" then
title = "mpd "
- artist = "paused" .. markup("#333333", " | ")
+ artist = "paused" .. markup("#777777", " | ")
mpdicon:set_image(theme.pause)
else
title = ""
@@ -285,7 +285,7 @@ theme.weather = lain.widget.weather({
local first = wibox.widget.textbox(markup.font("Tamzen 3", " "))
local spr = wibox.widget.textbox(' ')
local small_spr = wibox.widget.textbox(markup.font("Tamzen 4", " "))
-local bar_spr = wibox.widget.textbox(markup.font("Tamzen 3", " ") .. markup.fontfg(theme.font, "#333333", "|") .. markup.font("Tamzen 5", " "))
+local bar_spr = wibox.widget.textbox(markup.font("Tamzen 3", " ") .. markup.fontfg(theme.font, "#777777", "|") .. markup.font("Tamzen 5", " "))
-- Eminent-like task filtering
local orig_filter = awful.widget.taglist.filter.all
diff --git a/themes/vertex/theme.lua b/themes/vertex/theme.lua
index 47fc014..e33dcca 100644
--- a/themes/vertex/theme.lua
+++ b/themes/vertex/theme.lua
@@ -359,7 +359,7 @@ function theme.vertical_wibox(s)
end)
tag.connect_signal("property::selected", function(t)
local s = t.screen or awful.screen.focused()
- s.myleftwibox.width = 38
+ s.myleftwibox.width = 38
s.layoutb.visible = true
mylauncher.visible = true
gears.surface.apply_shape_bounding(s.myleftwibox, dockshape)