From e91a90472154b3b9d848e03e271045758bc238e6 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 30 Oct 2020 10:06:47 +0530 Subject: changed how the status bar behaves --- awesome/rc.lua | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'awesome') diff --git a/awesome/rc.lua b/awesome/rc.lua index fbcd59c3..b9630364 100755 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -209,10 +209,16 @@ awful.screen.connect_for_each_screen(function(s) -- Create a tasklist widget s.mytasklist = awful.widget.tasklist { screen = s, - filter = awful.widget.tasklist.filter.currenttags, + filter = awful.widget.tasklist.filter.minimizedcurrenttags, buttons = tasklist_buttons } + s.showcurrenttag = awful.widget.tasklist { + screen = s, + filter = awful.widget.tasklist.filter.focused, + buttons = tasklist_buttons + } + -- Create the wibox s.mywibox = awful.wibar({ position = "bottom", screen = s }) @@ -226,9 +232,17 @@ awful.screen.connect_for_each_screen(function(s) s.mytaglist, s.mypromptbox, }, - s.mytasklist, -- Middle widget + { -- Middle widgets + layout = wibox.layout.flex.horizontal, + s.showcurrenttag, + }, +-- { -- minimized tasks +-- layout = wibox.layout.fixed.horizontal, +-- s.mytasklist, +-- }, { -- Right widgets - layout = wibox.layout.fixed.horizontal, + layout = wibox.layout.align.horizontal, + s.mytasklist, mykeyboardlayout, mytextclock, s.mylayoutbox, @@ -613,4 +627,4 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n -- autostarts awful.spawn.with_shell("nitrogen --restore") awful.spawn.with_shell("picom") --- awful.spawn.with_shell("firefox") +--awful.spawn.with_shell("firefox") -- cgit v1.2.3