From 5045087c4f283201dc921433c398274e66547b0b Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 8 Jun 2019 16:54:52 +0000 Subject: [PATCH] [awesome] change date/time format --- home/.config/awesome/rc.lua | 7 +++---- home/.config/awesome/widgets.lua | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/home/.config/awesome/rc.lua b/home/.config/awesome/rc.lua index d0badcc..1538a14 100644 --- a/home/.config/awesome/rc.lua +++ b/home/.config/awesome/rc.lua @@ -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, }, } diff --git a/home/.config/awesome/widgets.lua b/home/.config/awesome/widgets.lua index 7e88f90..0f0a8ac 100644 --- a/home/.config/awesome/widgets.lua +++ b/home/.config/awesome/widgets.lua @@ -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)