Added better calendar that doesnt require gcal

This commit is contained in:
Thomas Forgione 2019-01-14 14:29:55 +01:00
parent 8182fa35d2
commit 4fb746a1d7
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
3 changed files with 13 additions and 2 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "calendar"]
path = calendar
url = https://github.com/deficient/calendar

1
calendar Submodule

@ -0,0 +1 @@
Subproject commit 00860a3e21989121550f1eabbaeed84b88a1367f

11
rc.lua
View File

@ -19,6 +19,7 @@ local cpu_widget = require("awesome-wm-widgets.cpu-widget.cpu-widget")
local battery_widget = require("awesome-wm-widgets.battery-widget.battery") local battery_widget = require("awesome-wm-widgets.battery-widget.battery")
local ram_widget = require("awesome-wm-widgets.ram-widget.ram-widget") local ram_widget = require("awesome-wm-widgets.ram-widget.ram-widget")
local email_widget = require("awesome-wm-widgets.email-widget.email") local email_widget = require("awesome-wm-widgets.email-widget.email")
local calendar = require("calendar.calendar")
-- Custom imports -- Custom imports
local options = require("options") local options = require("options")
@ -208,7 +209,6 @@ local tasklist_buttons = awful.util.table.join(
awful.client.focus.byidx(-1) awful.client.focus.byidx(-1)
end)) end))
local calendar = require('calendar')
local launchbar = require('launchbar') local launchbar = require('launchbar')
local music = require('music') local music = require('music')
-- local background = require('background_widget') -- local background = require('background_widget')
@ -256,6 +256,9 @@ awful.screen.connect_for_each_screen(function(s)
-- Create the wibox -- Create the wibox
s.mywibox = awful.wibar({ position = "top", screen = s }) s.mywibox = awful.wibar({ position = "top", screen = s })
s.textclock = awful.widget.textclock(" %a %d %b %H:%M ")
calendar({}):attach(s.textclock)
-- Add widgets to the wibox -- Add widgets to the wibox
s.mywibox:setup { s.mywibox:setup {
layout = wibox.layout.align.horizontal, layout = wibox.layout.align.horizontal,
@ -290,7 +293,7 @@ awful.screen.connect_for_each_screen(function(s)
delimiter, delimiter,
mykeyboardlayout, mykeyboardlayout,
wibox.widget.systray(), wibox.widget.systray(),
textclock_widget, s.textclock,
s.mylayoutbox, s.mylayoutbox,
}, },
} }
@ -735,4 +738,8 @@ end)
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end) client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end) client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- load the widget code
-- attach it as popup to your text clock widget:
-- }}} -- }}}