mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
added sketchybar config
This commit is contained in:
parent
87bb07f015
commit
95ebd7af03
38 changed files with 2329 additions and 0 deletions
49
dot_config/sketchybar/items/calendar.lua
Normal file
49
dot_config/sketchybar/items/calendar.lua
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
local settings = require("settings")
|
||||
local colors = require("colors")
|
||||
|
||||
-- Padding item required because of bracket
|
||||
sbar.add("item", { position = "right", width = settings.group_paddings })
|
||||
|
||||
local cal = sbar.add("item", {
|
||||
icon = {
|
||||
color = colors.white,
|
||||
padding_left = 8,
|
||||
font = {
|
||||
style = settings.font.style_map["Black"],
|
||||
size = 12.0,
|
||||
},
|
||||
},
|
||||
label = {
|
||||
color = colors.white,
|
||||
padding_right = 8,
|
||||
width = 49,
|
||||
align = "right",
|
||||
font = { family = settings.font.numbers },
|
||||
},
|
||||
position = "right",
|
||||
update_freq = 30,
|
||||
padding_left = 1,
|
||||
padding_right = 1,
|
||||
background = {
|
||||
color = colors.bg2,
|
||||
border_color = colors.black,
|
||||
border_width = 1
|
||||
},
|
||||
click_script = "open -a 'Calendar'"
|
||||
})
|
||||
|
||||
-- Double border for calendar using a single item bracket
|
||||
sbar.add("bracket", { cal.name }, {
|
||||
background = {
|
||||
color = colors.transparent,
|
||||
height = 30,
|
||||
border_color = colors.grey,
|
||||
}
|
||||
})
|
||||
|
||||
-- Padding item required because of bracket
|
||||
sbar.add("item", { position = "right", width = settings.group_paddings })
|
||||
|
||||
cal:subscribe({ "forced", "routine", "system_woke" }, function(env)
|
||||
cal:set({ icon = os.date("%a. %d %b."), label = os.date("%H:%M") })
|
||||
end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue