1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2026-03-23 05:55:12 +00:00

New calendar and power buttons for theme 7

This commit is contained in:
Toma Adrian Ionut 2022-06-09 20:54:19 +03:00
parent 4492489017
commit 964a8a6b5b
2 changed files with 43 additions and 29 deletions

View file

@ -983,8 +983,6 @@ end)
-- Gaps -- Gaps
beautiful.useless_gap = 6 beautiful.useless_gap = 6
-- Compositor
awful.spawn.with_shell("picom") awful.spawn.with_shell("picom")
-- Wallpapers
awful.spawn.with_shell("nitrogen --set-zoom-fill --random ~/Pictures/SFW") awful.spawn.with_shell("nitrogen --set-zoom-fill --random ~/Pictures/SFW")

View file

@ -123,14 +123,37 @@ local clock = awful.widget.watch(
) )
-- Calendar -- Calendar
theme.cal = lain.widget.cal({ -- theme.cal = lain.widget.cal({
attach_to = { clock }, -- attach_to = { clock },
notification_preset = { -- notification_preset = {
font = "Terminus 10", -- font = "Terminus 10",
fg = theme.fg_normal, -- fg = theme.fg_normal,
bg = theme.bg_normal -- bg = theme.bg_normal
} -- }
-- })
-- Custom Calendar
local calendar_widget = require("awesome-wm-widgets.calendar-widget.calendar")
-- ...
-- Create a textclock widget
--mytextclock = wibox.widget.textclock()
-- default
local cw = calendar_widget()
-- or customized
local cw = calendar_widget({
theme = 'nord',
placement = 'top_right',
start_sunday = true,
radius = 8,
-- with customized next/previous (see table above)
previous_month_button = 1,
next_month_button = 3,
}) })
clock:connect_signal("button::press",
function(_, _, _, button)
if button == 1 then cw.toggle() end
end)
-- Mail IMAP check -- Mail IMAP check
--local mailicon = wibox.widget.imagebox(theme.widget_mail) --local mailicon = wibox.widget.imagebox(theme.widget_mail)
@ -300,6 +323,9 @@ local spr = wibox.widget.textbox(' ')
local arrl_dl = separators.arrow_left(theme.arrows, "alpha") local arrl_dl = separators.arrow_left(theme.arrows, "alpha")
local arrl_ld = separators.arrow_left("alpha", theme.arrows) local arrl_ld = separators.arrow_left("alpha", theme.arrows)
-- LogOut widget
local logout_menu_widget = require("awesome-wm-widgets.logout-menu-widget.logout-menu")
function theme.at_screen_connect(s) function theme.at_screen_connect(s)
-- Quake application -- Quake application
s.quake = lain.util.quake({ app = awful.util.terminal }) s.quake = lain.util.quake({ app = awful.util.terminal })
@ -354,30 +380,17 @@ function theme.at_screen_connect(s)
-- keyboardlayout, -- keyboardlayout,
spr, spr,
arrl_ld, arrl_ld,
--wibox.container.background(mpdicon, theme.bg_focus),
--wibox.container.background(theme.mpd.widget, theme.bg_focus),
arrl_dl, arrl_dl,
volicon, volicon,
theme.volume.widget, theme.volume.widget,
arrl_ld, arrl_ld,
--wibox.container.background(mailicon, theme.bg_focus),
--wibox.container.background(theme.mail.widget, theme.bg_focus),
arrl_dl,
memicon,
mem.widget,
arrl_ld,
arrl_dl, arrl_dl,
cpuicon, cpuicon,
cpu.widget, cpu.widget,
--wibox.container.background(cpuicon, theme.bg_focus), arrl_ld,
--wibox.container.background(cpu.widget, theme.bg_focus), arrl_dl,
memicon,
--tempicon, mem.widget,
--temp.widget,
--arrl_ld,
--wibox.container.background(fsicon, theme.bg_focus),
--wibox.container.background(theme.fs.widget, theme.bg_focus),
--arrl_dl,
arrl_ld, arrl_ld,
arrl_dl, arrl_dl,
baticon, baticon,
@ -388,6 +401,9 @@ function theme.at_screen_connect(s)
wibox.container.background(net.widget, theme.bg_focus), wibox.container.background(net.widget, theme.bg_focus),
arrl_ld, arrl_ld,
arrl_dl, arrl_dl,
logout_menu_widget(),
arrl_ld,
arrl_dl,
clock, clock,
spr, spr,
arrl_ld, arrl_ld,