[awesome] change date/time format
This commit is contained in:
parent
3084806907
commit
5045087c4f
|
@ -104,9 +104,6 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ
|
|||
-- }}}
|
||||
|
||||
-- {{{ Wibar
|
||||
-- Create a textclock widget
|
||||
mytextclock = wibox.widget.textclock()
|
||||
|
||||
-- Create a wibox for each screen and add it
|
||||
local taglist_buttons = gears.table.join(
|
||||
awful.button({ }, 1, function(t) t:view_only() end),
|
||||
|
@ -217,7 +214,9 @@ awful.screen.connect_for_each_screen(function(s)
|
|||
widgets.temp.widget,
|
||||
widgets.bat_icon,
|
||||
widgets.bat.widget,
|
||||
mytextclock,
|
||||
wibox.widget.separator({ forced_width = 4, opacity = 0 }),
|
||||
widgets.date,
|
||||
wibox.widget.separator({ forced_width = 4, opacity = 0 }),
|
||||
s.mylayoutbox,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -65,6 +65,8 @@ widgets.bat = lain.widget.bat({
|
|||
end
|
||||
})
|
||||
|
||||
widgets.date = wibox.widget.textclock(markup.font(theme.font, "%Y-%m-%d %H:%M"))
|
||||
|
||||
widgets.bluetooth = wibox.widget.imagebox(iconsdir .. "bluetooth-on.png")
|
||||
widgets.bluetooth.pass_state = function(callback)
|
||||
helpers.async_with_shell("/sbin/rfkill -n -o SOFT list bluetooth|uniq", function(state)
|
||||
|
|
Reference in a new issue