From 7932d087ea611e8fa92da3aa8a298b0bd7ba6b64 Mon Sep 17 00:00:00 2001 From: sajenim Date: Tue, 18 Apr 2023 02:21:31 +0800 Subject: [PATCH] a --- config/awesome/rc.lua | 66 ++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 36 deletions(-) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index ce1040d..7d2b612 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -76,18 +76,8 @@ menubar.utils.terminal = terminal -- Set the terminal for applications that requ -- Table of layouts to cover with awful.layout.inc, order matters. tag.connect_signal("request::default_layouts", function() awful.layout.append_default_layouts({ - -- awful.layout.suit.floating, awful.layout.suit.tile, - -- awful.layout.suit.tile.left, - -- awful.layout.suit.tile.bottom, - -- awful.layout.suit.tile.top, - -- awful.layout.suit.fair, - -- awful.layout.suit.fair.horizontal, - -- awful.layout.suit.spiral, awful.layout.suit.spiral.dwindle, - -- awful.layout.suit.max, - -- awful.layout.suit.max.fullscreen, - -- awful.layout.suit.magnifier, awful.layout.suit.corner.nw, }) end) @@ -115,9 +105,6 @@ end) -- {{{ Wibar --- Keyboard map indicator and switcher -mykeyboardlayout = awful.widget.keyboardlayout() - -- Create a textclock widget mytextclock = wibox.widget.textclock() @@ -162,42 +149,49 @@ screen.connect_signal("request::desktop_decoration", function(s) } } - -- Create a tasklist widget - s.mytasklist = awful.widget.tasklist { - screen = s, - filter = awful.widget.tasklist.filter.currenttags, - buttons = { - awful.button({ }, 1, function (c) - c:activate { context = "tasklist", action = "toggle_minimization" } - end), - awful.button({ }, 3, function() awful.menu.client_list { theme = { width = 250 } } end), - awful.button({ }, 4, function() awful.client.focus.byidx(-1) end), - awful.button({ }, 5, function() awful.client.focus.byidx( 1) end), - } - } - - -- Create the wibox - s.mywibox = awful.wibar { + -- Create the top wibox + s.top_panel = awful.wibar { position = "top", screen = s, widget = { - layout = wibox.layout.align.horizontal, { -- Left widgets - layout = wibox.layout.fixed.horizontal, mylauncher, s.mytaglist, s.mypromptbox, - }, - s.mytasklist, -- Middle widget - { -- Right widgets layout = wibox.layout.fixed.horizontal, - mykeyboardlayout, - wibox.widget.systray(), + }, + { + -- Middle widget + layout = wibox.layout.fixed.horizontal, + }, + { -- Right widgets mytextclock, s.mylayoutbox, + layout = wibox.layout.fixed.horizontal, }, + layout = wibox.layout.align.horizontal, } } + + -- + + -- Create the bottom wibox + s.bottom_panel = awful.wibar { + position = "bottom", + screen = s, + widget = { + { + layout = wibox.layout.fixed.horizontal, + }, + { + layout = wibox.layout.fixed.horizontal, + }, + { + layout = wibox.layout.fixed.horizontal, + }, + layout = wibox.layout.align.horizontal, + } + } end) -- }}}