diff --git a/home/.config/awesome/rc.lua b/home/.config/awesome/rc.lua index 1538a14..d0badcc 100644 --- a/home/.config/awesome/rc.lua +++ b/home/.config/awesome/rc.lua @@ -104,6 +104,9 @@ 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), @@ -214,9 +217,7 @@ awful.screen.connect_for_each_screen(function(s) widgets.temp.widget, widgets.bat_icon, widgets.bat.widget, - wibox.widget.separator({ forced_width = 4, opacity = 0 }), - widgets.date, - wibox.widget.separator({ forced_width = 4, opacity = 0 }), + mytextclock, s.mylayoutbox, }, } diff --git a/home/.config/awesome/widgets.lua b/home/.config/awesome/widgets.lua index 0f0a8ac..7e88f90 100644 --- a/home/.config/awesome/widgets.lua +++ b/home/.config/awesome/widgets.lua @@ -65,8 +65,6 @@ 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)