diff --git a/README.rst b/README.rst index b01bad8..c9b17e9 100644 --- a/README.rst +++ b/README.rst @@ -24,6 +24,7 @@ Notable features: - PNG taskbar - No borders when there's only one visible client - Powerful volume bar +- Custom layouts They're scattered all over the set, so try each theme and choose the one you enjoy the most. diff --git a/layouts/tilegaps.lua b/layouts/tilegaps.lua index 66ecfbe..0836e06 100644 --- a/layouts/tilegaps.lua +++ b/layouts/tilegaps.lua @@ -11,7 +11,6 @@ local ipairs = ipairs local math = math local tag = require("awful.tag") ---- Tiled layouts module for awful module("layouts.tilegaps") local function tile_group(cls, wa, orientation, fact, group) diff --git a/rc.lua.dremora b/rc.lua.dremora index f73b148..d34a5f7 100755 --- a/rc.lua.dremora +++ b/rc.lua.dremora @@ -179,11 +179,17 @@ end function show_calendar(inc_offset, t_out) remove_calendar() - local c_text + + local f, c_text + local today = tonumber(os.date('%d')) if inc_offset == 0 then - local f = io.popen('/usr/bin/cal | sed -r -e "s/(^| )(`date +\\"%d\\"`)($| )/\\1\\2<\\/span><\\/b>\\3/"',"r") - c_text = "" .. f:read() .. "\n\n" .. f:read() .. "\n" .. f:read("*all") .. "" + if today < 10 then + f = io.popen('/usr/bin/cal | sed -r -e "s/(^| )( ' .. today .. ')($| )/\\1\\2<\\/span><\\/b>\\3/"',"r") + else + f = io.popen('/usr/bin/cal | sed -r -e "s/(^| )(' .. today .. ')($| )/\\1\\2<\\/span><\\/b>\\3/"',"r") + end + c_text = "" .. f:read() .. "\n\n" .. f:read() .. "\n" .. f:read("*all") .. "" f:close() offset = 0 else diff --git a/rc.lua.rainbow b/rc.lua.rainbow index 09ad149..8d5d229 100755 --- a/rc.lua.rainbow +++ b/rc.lua.rainbow @@ -177,7 +177,7 @@ gray = "" -- Textclock widget mytextclock = awful.widget.textclock(white .. "%H:%M" .. coldef) --- attached calendar +-- Calendar notification local tonumber = tonumber local calendar = nil local offset = 0 @@ -191,11 +191,16 @@ end function show_calendar(inc_offset, t_out) remove_calendar() - local c_text + local f, c_text + local today = tonumber(os.date('%d')) if inc_offset == 0 then - local f = io.popen('/usr/bin/cal | sed -r -e "s/(^| )(`date +\\"%d\\"`)($| )/\\1\\2<\\/span><\\/b>\\3/"',"r") - c_text = "" .. f:read() .. "\n\n" .. f:read() .. "\n" .. f:read("*all") .. "" + if today < 10 then + f = io.popen('/usr/bin/cal | sed -r -e "s/(^| )( ' .. today .. ')($| )/\\1\\2<\\/span><\\/b>\\3/"',"r") + else + f = io.popen('/usr/bin/cal | sed -r -e "s/(^| )(' .. today .. ')($| )/\\1\\2<\\/span><\\/b>\\3/"',"r") + end + c_text = "" .. f:read() .. "\n\n" .. f:read() .. "\n" .. f:read("*all") .. "" f:close() offset = 0 else @@ -214,7 +219,7 @@ function show_calendar(inc_offset, t_out) end f = io.popen('/usr/bin/cal ' .. month .. ' ' .. year ,"r") - c_text = "" .. f:read() .. "\n\n" .. f:read() .. "\n" .. f:read("*all") .. "" + c_text = "" .. f:read() .. "\n\n" .. f:read() .. "\n" .. f:read("*all") .. "" f:close() end @@ -922,9 +927,7 @@ awful.rules.rules = { properties = { floating = true } }, { rule = { class = "Dwb" }, - properties = { tag = tags[1][1], - maximized_horizontal = true, - maximized_vertical = true } }, + properties = { tag = tags[1][1] } }, { rule = { instance = "plugin-container" }, properties = { tag = tags[1][1] } }, diff --git a/themes/rainbow/theme.lua b/themes/rainbow/theme.lua index 36ad6c6..9b7cf5e 100644 --- a/themes/rainbow/theme.lua +++ b/themes/rainbow/theme.lua @@ -12,7 +12,6 @@ themes_dir = os.getenv("HOME") .. "/.config/awe theme.wallpaper = themes_dir .. "/wall.png" theme.font = "Tamsyn 10" ---theme.font = "Ohsnapu 12" theme.fg_normal = "#9E9E9E" theme.fg_focus = "#EBEBFF" theme.bg_normal = "#242424" @@ -33,7 +32,6 @@ theme.taglist_squares_sel = themes_dir .. "/icons/square_sel.p theme.taglist_squares_unsel = themes_dir .. "/icons/square_unsel.png" theme.widget_mail_notify = themes_dir .. "/icons/mail_notify.png" theme.widget_no_net_notify = themes_dir .. "/icons/no_net_notify.png" -theme.vol_mute = themes_dir .. "/icons/vol_mute.png" theme.layout_txt_tile = "[t]" theme.layout_txt_tilegaps = "[t2]"