From 5dee9f0f15cd6258f425eaba7d83fdef87537639 Mon Sep 17 00:00:00 2001 From: Nooo37 <70270606+Nooo37@users.noreply.github.com> Date: Tue, 3 Aug 2021 13:09:55 +0200 Subject: [PATCH 1/3] Update theme-var-template.lua Forgot to add the option from #79 --- theme-var-template.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/theme-var-template.lua b/theme-var-template.lua index 6b83923..38a3dd5 100644 --- a/theme-var-template.lua +++ b/theme-var-template.lua @@ -24,6 +24,7 @@ theme.playerctl_position_update_interval = 1 -- the update interval for fetching theme.tabbed_spawn_in_tab = false -- whether a new client should spawn into the focused tabbing container -- tabbar general +theme.tabbar_disable = false -- disable the tab bar entirely theme.tabbar_ontop = false theme.tabbar_radius = 0 -- border radius of the tabbar theme.tabbar_style = "default" -- style of the tabbar ("default", "boxes" or "modern") @@ -51,9 +52,9 @@ theme.mstab_tabbar_style = "default" -- style of the tabbar ("default", "boxes" -- different style for mstab and tabbed -- the following variables are currently only for the "modern" tabbar style -theme.tabbar_color_close = "#f9929b" -- chnges the color of the close button -theme.tabbar_color_min = "#fbdf90" -- chnges the color of the minimize button -theme.tabbar_color_float = "#ccaced" -- chnges the color of the float button +theme.tabbar_color_close = "#f9929b" -- changes the color of the close button +theme.tabbar_color_min = "#fbdf90" -- changes the color of the minimize button +theme.tabbar_color_float = "#ccaced" -- changes the color of the float button -- tag preview widget theme.tag_preview_widget_border_radius = 0 -- Border radius of the widget (With AA) From 9a88eb1b2f38d39b91a9c3daf07919a19e859a9f Mon Sep 17 00:00:00 2001 From: Denis Efremov Date: Tue, 3 Aug 2021 20:44:04 +0300 Subject: [PATCH 2/3] Add "pure" tabbar style (#58) --- widget/tabbar/pure.lua | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 widget/tabbar/pure.lua diff --git a/widget/tabbar/pure.lua b/widget/tabbar/pure.lua new file mode 100644 index 0000000..5581a8b --- /dev/null +++ b/widget/tabbar/pure.lua @@ -0,0 +1,58 @@ +local awful = require("awful") +local gears = require("gears") +local wibox = require("wibox") +local gcolor = require("gears.color") +local beautiful = require("beautiful") + +local bg_normal = beautiful.tabbar_bg_normal or beautiful.bg_normal or "#ffffff" +local fg_normal = beautiful.tabbar_fg_normal or beautiful.fg_normal or "#000000" +local bg_focus = beautiful.tabbar_bg_focus or beautiful.bg_focus or "#000000" +local fg_focus = beautiful.tabbar_fg_focus or beautiful.fg_focus or "#ffffff" +local font = beautiful.tabbar_font or beautiful.font or "Hack 15" +local size = beautiful.tabbar_size or 20 +local position = beautiful.tabbar_position or "top" + +local function create(c, focused_bool, buttons) + local bg_temp = focused_bool and bg_focus or bg_normal + local fg_temp = focused_bool and fg_focus or fg_normal + + local wid_temp = wibox.widget({ + { + { -- Left + wibox.widget.base.make_widget(awful.titlebar.widget.iconwidget(c)), + buttons = buttons, + layout = wibox.layout.fixed.horizontal, + }, + { -- Title + wibox.widget.base.make_widget(awful.titlebar.widget.titlewidget(c)), + buttons = buttons, + widget = wibox.container.place, + }, + { -- Right + focused_bool and wibox.widget.base.make_widget(awful.titlebar.widget.floatingbutton(c)) or nil, + focused_bool and wibox.widget.base.make_widget(awful.titlebar.widget.stickybutton(c)) or nil, + focused_bool and wibox.widget.base.make_widget(awful.titlebar.widget.ontopbutton(c)) or nil, + focused_bool and wibox.widget.base.make_widget(awful.titlebar.widget.maximizedbutton(c)) or nil, + focused_bool and wibox.widget.base.make_widget(awful.titlebar.widget.minimizebutton(c)) or nil, + focused_bool and wibox.widget.base.make_widget(awful.titlebar.widget.closebutton(c)) or nil, + layout = wibox.layout.fixed.horizontal, + }, + layout = wibox.layout.align.horizontal, + }, + bg = bg_temp, + fg = fg_temp, + widget = wibox.container.background, + }) + + return wid_temp +end + + +return { + layout = wibox.layout.flex.horizontal, + create = create, + position = position, + size = size, + bg_normal = bg_normal, + bg_focus = bg_focus, +} From 994179763828edc43ec24efaa07fc49ef8a8648a Mon Sep 17 00:00:00 2001 From: Nooo37 <70270606+Nooo37@users.noreply.github.com> Date: Tue, 3 Aug 2021 19:56:37 +0200 Subject: [PATCH 3/3] make wallpaper module 4.3 compatible (#70) --- module/wallpaper.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/module/wallpaper.lua b/module/wallpaper.lua index 69a8147..1ad95c5 100644 --- a/module/wallpaper.lua +++ b/module/wallpaper.lua @@ -24,6 +24,7 @@ --------------------------------------------------------------------------- +local awful = require("awful") local beautiful = require("beautiful") local gears = require("gears") local helpers = require(tostring(...):match(".*bling") .. ".helpers") @@ -278,8 +279,11 @@ function setup(args) callback = function() set_wallpaper() end } end - - screen.connect_signal("request::wallpaper", set_wallpaper) + if awesome.version == "v4.3" then + awful.screen.connect_for_each_screen(set_wallpaper) + else + screen.connect_signal("request::wallpaper", set_wallpaper) + end end