[awesome] change date/time format

legacy
Simon Bruder 2019-06-08 16:54:52 +00:00
parent 3084806907
commit 5045087c4f
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
2 changed files with 5 additions and 4 deletions

View File

@ -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,
},
}

View File

@ -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)