mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 23:34:57 +08:00
Fix fortune cookie text alignment
This commit is contained in:
parent
e44be4f480
commit
c545ea70e8
2 changed files with 12 additions and 6 deletions
|
|
@ -329,7 +329,6 @@ local fortune_update_interval = 3600
|
|||
-- local fortune_command = "fortune -n 140 -s computers"
|
||||
local fortune = wibox.widget {
|
||||
font = "sans medium 11",
|
||||
align = "center",
|
||||
text = "Loading your cookie...",
|
||||
widget = wibox.widget.textbox
|
||||
}
|
||||
|
|
@ -351,8 +350,12 @@ gears.timer {
|
|||
}
|
||||
|
||||
local fortune_widget = wibox.widget {
|
||||
fortune,
|
||||
margins = box_gap * 3,
|
||||
{
|
||||
nil,
|
||||
fortune,
|
||||
layout = wibox.layout.align.horizontal,
|
||||
},
|
||||
margins = box_gap * 4,
|
||||
color = "#00000000",
|
||||
widget = wibox.container.margin
|
||||
}
|
||||
|
|
|
|||
|
|
@ -298,7 +298,6 @@ local fortune_command = "fortune -n 140 -s"
|
|||
-- local fortune_command = "fortune -n 140 -s computers"
|
||||
local fortune = wibox.widget {
|
||||
font = "sans italic 12",
|
||||
align = "center",
|
||||
text = "Loading your cookie...",
|
||||
widget = wibox.widget.textbox
|
||||
}
|
||||
|
|
@ -311,8 +310,12 @@ awful.widget.watch(fortune_command, fortune_update_interval, function(widget, st
|
|||
end)
|
||||
|
||||
local fortune_widget = wibox.widget {
|
||||
fortune,
|
||||
margins = box_gap * 3,
|
||||
{
|
||||
nil,
|
||||
fortune,
|
||||
layout = wibox.layout.align.horizontal,
|
||||
},
|
||||
margins = box_gap * 4,
|
||||
color = "#00000000",
|
||||
widget = wibox.container.margin
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue