style: cleanup brackets
This commit is contained in:
parent
8e8367ad84
commit
022de641c8
@ -21,11 +21,11 @@ local volume_widget = require('awesome-wm-widgets.volume-widget.volume')
|
|||||||
|
|
||||||
-- {{{ Error handling
|
-- {{{ Error handling
|
||||||
if awesome.startup_errors then
|
if awesome.startup_errors then
|
||||||
naughty.notify({
|
naughty.notify{
|
||||||
preset = naughty.config.presets.critical,
|
preset = naughty.config.presets.critical,
|
||||||
title = "Oops, there were errors during startup!",
|
title = "Oops, there were errors during startup!",
|
||||||
text = awesome.startup_errors
|
text = awesome.startup_errors
|
||||||
})
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
do
|
do
|
||||||
@ -39,11 +39,11 @@ do
|
|||||||
end
|
end
|
||||||
in_error = true
|
in_error = true
|
||||||
|
|
||||||
naughty.notify({
|
naughty.notify{
|
||||||
preset = naughty.config.presets.critical,
|
preset = naughty.config.presets.critical,
|
||||||
title = "Oops, an error happened!",
|
title = "Oops, an error happened!",
|
||||||
text = tostring(err)
|
text = tostring(err)
|
||||||
})
|
}
|
||||||
in_error = false
|
in_error = false
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
@ -129,7 +129,7 @@ local function set_clock(s)
|
|||||||
local dpi = require("beautiful.xresources").apply_dpi
|
local dpi = require("beautiful.xresources").apply_dpi
|
||||||
|
|
||||||
s.mytextclock = wibox.widget.textclock()
|
s.mytextclock = wibox.widget.textclock()
|
||||||
s.month_calendar = awful.widget.calendar_popup.month({screen = s})
|
s.month_calendar = awful.widget.calendar_popup.month{screen = s}
|
||||||
s.month_calendar:attach(s.mytextclock)
|
s.month_calendar:attach(s.mytextclock)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ awful.screen.connect_for_each_screen(
|
|||||||
}
|
}
|
||||||
|
|
||||||
-- Create the wibox
|
-- Create the wibox
|
||||||
s.mywibox = awful.wibar({position = "top", screen = s})
|
s.mywibox = awful.wibar{position = "top", screen = s}
|
||||||
|
|
||||||
-- Add widgets to the wibox
|
-- Add widgets to the wibox
|
||||||
s.mywibox:setup{
|
s.mywibox:setup{
|
||||||
|
Loading…
Reference in New Issue
Block a user