aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/ui/statusbar/widgets
diff options
context:
space:
mode:
Diffstat (limited to '.config/awesome/ui/statusbar/widgets')
-rw-r--r--.config/awesome/ui/statusbar/widgets/clock.lua8
-rw-r--r--.config/awesome/ui/statusbar/widgets/displays.lua34
-rw-r--r--.config/awesome/ui/statusbar/widgets/keyboardlayout.lua307
-rw-r--r--.config/awesome/ui/statusbar/widgets/taglist.lua127
-rw-r--r--.config/awesome/ui/statusbar/widgets/tasklist.lua30
5 files changed, 271 insertions, 235 deletions
diff --git a/.config/awesome/ui/statusbar/widgets/clock.lua b/.config/awesome/ui/statusbar/widgets/clock.lua
index ff57a36..c186dc5 100644
--- a/.config/awesome/ui/statusbar/widgets/clock.lua
+++ b/.config/awesome/ui/statusbar/widgets/clock.lua
@@ -1,13 +1,11 @@
local qvars = require "quarrel.vars"
local wibox = require "wibox"
-local clock = wibox.widget {
+return wibox.widget {
widget = wibox.container.place,
{
format = "%H\n%M",
widget = wibox.widget.textclock,
- font = qvars.font
- }
+ font = qvars.font,
+ },
}
-
-return clock
diff --git a/.config/awesome/ui/statusbar/widgets/displays.lua b/.config/awesome/ui/statusbar/widgets/displays.lua
index 44ff2c6..62e4398 100644
--- a/.config/awesome/ui/statusbar/widgets/displays.lua
+++ b/.config/awesome/ui/statusbar/widgets/displays.lua
@@ -1,3 +1,4 @@
+local battery = require "services.battery"
local phosphor = require "assets.phosphor"
local qui = require "quarrel.ui"
local qvars = require "quarrel.vars"
@@ -8,32 +9,35 @@ local function create_display(icon, color)
widget = wibox.container.place,
valign = "center",
halign = "center",
- qui.icon(icon, color)
+ qui.icon {
+ icon = icon,
+ color = color,
+ },
}
end
-local battery = create_display(phosphor.battery_vertical_warning_fill, qvars.colors.red)
-awesome.connect_signal("services::battery::icon", function(icon, color)
- battery.widget.image = icon
- battery.widget.stylesheet = qui.recolor(color)
+local d_battery = create_display(phosphor.battery_vertical_warning_fill, qvars.colors.red)
+battery:connect_signal("icon", function(_, icon, color)
+ d_battery.widget.image = icon
+ d_battery.widget.stylesheet = qui.recolor(color)
end)
-local brightness = create_display(phosphor.moon_fill, qvars.colors.fg)
+local d_brightness = create_display(phosphor.moon_fill, qvars.colors.fg)
awesome.connect_signal("services::brightness::icon", function(icon, color)
- brightness.widget.image = icon
- brightness.widget.stylesheet = qui.recolor(color)
+ d_brightness.widget.image = icon
+ d_brightness.widget.stylesheet = qui.recolor(color)
end)
-local audio = create_display(phosphor.speaker_simple_slash_fill, qvars.colors.red)
+local d_audio = create_display(phosphor.speaker_simple_slash_fill, qvars.colors.red)
awesome.connect_signal("services::audio::icon", function(icon, color)
- audio.widget.image = icon
- audio.widget.stylesheet = qui.recolor(color)
+ d_audio.widget.image = icon
+ d_audio.widget.stylesheet = qui.recolor(color)
end)
-local wifi = create_display(phosphor.wifi_x_fill, qvars.colors.red)
+local d_wifi = create_display(phosphor.wifi_x_fill, qvars.colors.red)
awesome.connect_signal("services::wifi::icon", function(icon, color)
- wifi.widget.image = icon
- wifi.widget.stylesheet = qui.recolor(color)
+ d_wifi.widget.image = icon
+ d_wifi.widget.stylesheet = qui.recolor(color)
end)
-return { audio = audio, battery = battery, brightness = brightness, wifi = wifi }
+return { audio = d_audio, battery = d_battery, brightness = d_brightness, wifi = d_wifi }
diff --git a/.config/awesome/ui/statusbar/widgets/keyboardlayout.lua b/.config/awesome/ui/statusbar/widgets/keyboardlayout.lua
index 0bbbf14..d9302ff 100644
--- a/.config/awesome/ui/statusbar/widgets/keyboardlayout.lua
+++ b/.config/awesome/ui/statusbar/widgets/keyboardlayout.lua
@@ -10,12 +10,12 @@
-- @supermodule wibox.widget.base
---------------------------------------------------------------------------
-local capi = {awesome = awesome}
+local capi = { awesome = awesome }
local setmetatable = setmetatable
-local textbox = require("wibox.widget.textbox")
-local button = require("awful.button")
-local widget_base = require("wibox.widget.base")
-local gdebug = require("gears.debug")
+local button = require "awful.button"
+local gdebug = require "gears.debug"
+local textbox = require "wibox.widget.textbox"
+local widget_base = require "wibox.widget.base"
--- Keyboard Layout widget.
-- awful.widget.keyboardlayout
@@ -24,109 +24,109 @@ local keyboardlayout = { mt = {} }
-- As to the country-code-like symbols below, refer to the names of XKB's
-- data files in /.../xkb/symbols/*.
keyboardlayout.xkeyboard_country_code = {
- ["ad"] = true, -- Andorra
- ["af"] = true, -- Afganistan
- ["al"] = true, -- Albania
- ["am"] = true, -- Armenia
- ["ara"] = true, -- Arabic
- ["at"] = true, -- Austria
- ["az"] = true, -- Azerbaijan
- ["ba"] = true, -- Bosnia and Herzegovina
- ["bd"] = true, -- Bangladesh
- ["be"] = true, -- Belgium
- ["bg"] = true, -- Bulgaria
- ["br"] = true, -- Brazil
- ["bt"] = true, -- Bhutan
- ["bw"] = true, -- Botswana
- ["by"] = true, -- Belarus
- ["ca"] = true, -- Canada
- ["cd"] = true, -- Congo
- ["ch"] = true, -- Switzerland
- ["cm"] = true, -- Cameroon
- ["cn"] = true, -- China
- ["cz"] = true, -- Czechia
- ["de"] = true, -- Germany
- ["dk"] = true, -- Denmark
- ["ee"] = true, -- Estonia
- ["epo"] = true, -- Esperanto
- ["es"] = true, -- Spain
- ["et"] = true, -- Ethiopia
- ["eu"] = true, -- EurKey
- ["fi"] = true, -- Finland
- ["fo"] = true, -- Faroe Islands
- ["fr"] = true, -- France
- ["gb"] = true, -- United Kingdom
- ["ge"] = true, -- Georgia
- ["gh"] = true, -- Ghana
- ["gn"] = true, -- Guinea
- ["gr"] = true, -- Greece
- ["hr"] = true, -- Croatia
- ["hu"] = true, -- Hungary
- ["ie"] = true, -- Ireland
- ["il"] = true, -- Israel
- ["in"] = true, -- India
- ["iq"] = true, -- Iraq
- ["ir"] = true, -- Iran
- ["is"] = true, -- Iceland
- ["it"] = true, -- Italy
- ["jp"] = true, -- Japan
- ["ke"] = true, -- Kenya
- ["kg"] = true, -- Kyrgyzstan
- ["kh"] = true, -- Cambodia
- ["kr"] = true, -- Korea
- ["kz"] = true, -- Kazakhstan
- ["la"] = true, -- Laos
+ ["ad"] = true, -- Andorra
+ ["af"] = true, -- Afganistan
+ ["al"] = true, -- Albania
+ ["am"] = true, -- Armenia
+ ["ara"] = true, -- Arabic
+ ["at"] = true, -- Austria
+ ["az"] = true, -- Azerbaijan
+ ["ba"] = true, -- Bosnia and Herzegovina
+ ["bd"] = true, -- Bangladesh
+ ["be"] = true, -- Belgium
+ ["bg"] = true, -- Bulgaria
+ ["br"] = true, -- Brazil
+ ["bt"] = true, -- Bhutan
+ ["bw"] = true, -- Botswana
+ ["by"] = true, -- Belarus
+ ["ca"] = true, -- Canada
+ ["cd"] = true, -- Congo
+ ["ch"] = true, -- Switzerland
+ ["cm"] = true, -- Cameroon
+ ["cn"] = true, -- China
+ ["cz"] = true, -- Czechia
+ ["de"] = true, -- Germany
+ ["dk"] = true, -- Denmark
+ ["ee"] = true, -- Estonia
+ ["epo"] = true, -- Esperanto
+ ["es"] = true, -- Spain
+ ["et"] = true, -- Ethiopia
+ ["eu"] = true, -- EurKey
+ ["fi"] = true, -- Finland
+ ["fo"] = true, -- Faroe Islands
+ ["fr"] = true, -- France
+ ["gb"] = true, -- United Kingdom
+ ["ge"] = true, -- Georgia
+ ["gh"] = true, -- Ghana
+ ["gn"] = true, -- Guinea
+ ["gr"] = true, -- Greece
+ ["hr"] = true, -- Croatia
+ ["hu"] = true, -- Hungary
+ ["ie"] = true, -- Ireland
+ ["il"] = true, -- Israel
+ ["in"] = true, -- India
+ ["iq"] = true, -- Iraq
+ ["ir"] = true, -- Iran
+ ["is"] = true, -- Iceland
+ ["it"] = true, -- Italy
+ ["jp"] = true, -- Japan
+ ["ke"] = true, -- Kenya
+ ["kg"] = true, -- Kyrgyzstan
+ ["kh"] = true, -- Cambodia
+ ["kr"] = true, -- Korea
+ ["kz"] = true, -- Kazakhstan
+ ["la"] = true, -- Laos
["latam"] = true, -- Latin America
["latin"] = true, -- Latin
- ["lk"] = true, -- Sri Lanka
- ["lt"] = true, -- Lithuania
- ["lv"] = true, -- Latvia
- ["ma"] = true, -- Morocco
- ["mao"] = true, -- Maori
- ["me"] = true, -- Montenegro
- ["mk"] = true, -- Macedonia
- ["ml"] = true, -- Mali
- ["mm"] = true, -- Myanmar
- ["mn"] = true, -- Mongolia
- ["mt"] = true, -- Malta
- ["mv"] = true, -- Maldives
- ["ng"] = true, -- Nigeria
- ["nl"] = true, -- Netherlands
- ["no"] = true, -- Norway
- ["np"] = true, -- Nepal
- ["ph"] = true, -- Philippines
- ["pk"] = true, -- Pakistan
- ["pl"] = true, -- Poland
- ["pt"] = true, -- Portugal
- ["ro"] = true, -- Romania
- ["rs"] = true, -- Serbia
- ["ru"] = true, -- Russia
- ["se"] = true, -- Sweden
- ["si"] = true, -- Slovenia
- ["sk"] = true, -- Slovakia
- ["sn"] = true, -- Senegal
- ["sy"] = true, -- Syria
- ["th"] = true, -- Thailand
- ["tj"] = true, -- Tajikistan
- ["tm"] = true, -- Turkmenistan
- ["tr"] = true, -- Turkey
- ["tw"] = true, -- Taiwan
- ["tz"] = true, -- Tanzania
- ["ua"] = true, -- Ukraine
- ["us"] = true, -- USA
- ["uz"] = true, -- Uzbekistan
- ["vn"] = true, -- Vietnam
- ["za"] = true, -- South Africa
+ ["lk"] = true, -- Sri Lanka
+ ["lt"] = true, -- Lithuania
+ ["lv"] = true, -- Latvia
+ ["ma"] = true, -- Morocco
+ ["mao"] = true, -- Maori
+ ["me"] = true, -- Montenegro
+ ["mk"] = true, -- Macedonia
+ ["ml"] = true, -- Mali
+ ["mm"] = true, -- Myanmar
+ ["mn"] = true, -- Mongolia
+ ["mt"] = true, -- Malta
+ ["mv"] = true, -- Maldives
+ ["ng"] = true, -- Nigeria
+ ["nl"] = true, -- Netherlands
+ ["no"] = true, -- Norway
+ ["np"] = true, -- Nepal
+ ["ph"] = true, -- Philippines
+ ["pk"] = true, -- Pakistan
+ ["pl"] = true, -- Poland
+ ["pt"] = true, -- Portugal
+ ["ro"] = true, -- Romania
+ ["rs"] = true, -- Serbia
+ ["ru"] = true, -- Russia
+ ["se"] = true, -- Sweden
+ ["si"] = true, -- Slovenia
+ ["sk"] = true, -- Slovakia
+ ["sn"] = true, -- Senegal
+ ["sy"] = true, -- Syria
+ ["th"] = true, -- Thailand
+ ["tj"] = true, -- Tajikistan
+ ["tm"] = true, -- Turkmenistan
+ ["tr"] = true, -- Turkey
+ ["tw"] = true, -- Taiwan
+ ["tz"] = true, -- Tanzania
+ ["ua"] = true, -- Ukraine
+ ["us"] = true, -- USA
+ ["uz"] = true, -- Uzbekistan
+ ["vn"] = true, -- Vietnam
+ ["za"] = true, -- South Africa
}
-- Callback for updating current layout.
-local function update_status (self)
+local function update_status(self)
self._current = awesome.xkb_get_layout_group()
local text = ""
if #self._layout > 0 then
-- Please note that the group number reported by xkb_get_layout_group
-- is lower by one than the group numbers reported by xkb_get_group_names.
- local name = self._layout[self._current+1]
+ local name = self._layout[self._current + 1]
if name then
text = name
end
@@ -155,53 +155,45 @@ function keyboardlayout.get_groups_from_group_names(group_names)
-- pattern.
local pattern_and_callback_pairs = {
-- vendor/file(section):group_idx
- ["^" .. word_pat .. "/" .. word_pat .. sec_pat .. idx_pat .. "$"]
- = function(token, pattern)
- local vendor, file, section, group_idx = string.match(token, pattern)
- return vendor, file, section, group_idx
- end,
+ ["^" .. word_pat .. "/" .. word_pat .. sec_pat .. idx_pat .. "$"] = function(token, pattern)
+ local vendor, file, section, group_idx = string.match(token, pattern)
+ return vendor, file, section, group_idx
+ end,
-- vendor/file(section)
- ["^" .. word_pat .. "/" .. word_pat .. sec_pat .. "$"]
- = function(token, pattern)
- local vendor, file, section = string.match(token, pattern)
- return vendor, file, section, 1
- end,
+ ["^" .. word_pat .. "/" .. word_pat .. sec_pat .. "$"] = function(token, pattern)
+ local vendor, file, section = string.match(token, pattern)
+ return vendor, file, section, 1
+ end,
-- vendor/file:group_idx
- ["^" .. word_pat .. "/" .. word_pat .. idx_pat .. "$"]
- = function(token, pattern)
- local vendor, file, group_idx = string.match(token, pattern)
- return vendor, file, nil, group_idx
- end,
+ ["^" .. word_pat .. "/" .. word_pat .. idx_pat .. "$"] = function(token, pattern)
+ local vendor, file, group_idx = string.match(token, pattern)
+ return vendor, file, nil, group_idx
+ end,
-- vendor/file
- ["^" .. word_pat .. "/" .. word_pat .. "$"]
- = function(token, pattern)
- local vendor, file = string.match(token, pattern)
- return vendor, file, nil, 1
- end,
+ ["^" .. word_pat .. "/" .. word_pat .. "$"] = function(token, pattern)
+ local vendor, file = string.match(token, pattern)
+ return vendor, file, nil, 1
+ end,
-- file(section):group_idx
- ["^" .. word_pat .. sec_pat .. idx_pat .. "$"]
- = function(token, pattern)
- local file, section, group_idx = string.match(token, pattern)
- return nil, file, section, group_idx
- end,
+ ["^" .. word_pat .. sec_pat .. idx_pat .. "$"] = function(token, pattern)
+ local file, section, group_idx = string.match(token, pattern)
+ return nil, file, section, group_idx
+ end,
-- file(section)
- ["^" .. word_pat .. sec_pat .. "$"]
- = function(token, pattern)
- local file, section = string.match(token, pattern)
- return nil, file, section, 1
- end,
+ ["^" .. word_pat .. sec_pat .. "$"] = function(token, pattern)
+ local file, section = string.match(token, pattern)
+ return nil, file, section, 1
+ end,
-- file:group_idx
- ["^" .. word_pat .. idx_pat .. "$"]
- = function(token, pattern)
- local file, group_idx = string.match(token, pattern)
- return nil, file, nil, group_idx
- end,
+ ["^" .. word_pat .. idx_pat .. "$"] = function(token, pattern)
+ local file, group_idx = string.match(token, pattern)
+ return nil, file, nil, group_idx
+ end,
-- file
- ["^" .. word_pat .. "$"]
- = function(token, pattern)
- local file = string.match(token, pattern)
- return nil, file, nil, 1
- end
+ ["^" .. word_pat .. "$"] = function(token, pattern)
+ local file = string.match(token, pattern)
+ return nil, file, nil, 1
+ end,
}
-- Split 'group_names' into 'tokens'. The separator is "+".
@@ -229,10 +221,10 @@ function keyboardlayout.get_groups_from_group_names(group_names)
section = string.gsub(section, "%(([%w-_]+)%)", "%1")
end
- table.insert(layout_groups, { vendor = vendor,
- file = file,
- section = section,
- group_idx = tonumber(group_idx) })
+ table.insert(
+ layout_groups,
+ { vendor = vendor, file = file, section = section, group_idx = tonumber(group_idx) }
+ )
break
end
end
@@ -243,10 +235,10 @@ end
-- Callback for updating list of layouts
local function update_layout(self)
- self._layout = {};
+ self._layout = {}
local layouts = keyboardlayout.get_groups_from_group_names(awesome.xkb_get_group_names())
if layouts == nil or layouts[1] == nil then
- gdebug.print_error("Failed to get list of keyboard groups")
+ gdebug.print_error "Failed to get list of keyboard groups"
return
end
if #layouts == 1 then
@@ -270,7 +262,7 @@ end
-- @treturn awful.widget.keyboardlayout A keyboard layout widget.
function keyboardlayout.new()
local widget = textbox()
- local self = widget_base.make_widget(widget, nil, {enable_properties=true})
+ local self = widget_base.make_widget(widget, nil, { enable_properties = true })
self.widget = widget
@@ -288,30 +280,31 @@ function keyboardlayout.new()
self.set_layout = function(group_number)
if (0 > group_number) or (group_number > #self._layout) then
- error("Invalid group number: " .. group_number ..
- "expected number from 0 to " .. #self._layout)
- return;
+ error("Invalid group number: " .. group_number .. "expected number from 0 to " .. #self._layout)
+ return
end
- awesome.xkb_set_layout_group(group_number);
+ awesome.xkb_set_layout_group(group_number)
end
- update_layout(self);
+ update_layout(self)
-- callback for processing layout changes
- capi.awesome.connect_signal("xkb::map_changed",
- function () update_layout(self) end)
- capi.awesome.connect_signal("xkb::group_changed",
- function () update_status(self) end);
+ capi.awesome.connect_signal("xkb::map_changed", function()
+ update_layout(self)
+ end)
+ capi.awesome.connect_signal("xkb::group_changed", function()
+ update_status(self)
+ end)
-- Mouse bindings
self.buttons = {
- button({ }, 1, self.next_layout)
+ button({}, 1, self.next_layout),
}
return self
end
-local _instance = nil;
+local _instance = nil
function keyboardlayout.mt:__call(...)
if _instance == nil then
@@ -320,8 +313,6 @@ function keyboardlayout.mt:__call(...)
return _instance
end
-
return setmetatable(keyboardlayout, keyboardlayout.mt)
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
-
diff --git a/.config/awesome/ui/statusbar/widgets/taglist.lua b/.config/awesome/ui/statusbar/widgets/taglist.lua
index 1072426..df114df 100644
--- a/.config/awesome/ui/statusbar/widgets/taglist.lua
+++ b/.config/awesome/ui/statusbar/widgets/taglist.lua
@@ -1,75 +1,88 @@
local awful = require "awful"
-local gcolor = require "gears.color"
-local gdebug = require "gears.debug"
local phosphor = require "assets.phosphor"
local qbind = require "quarrel.bind"
local qui = require "quarrel.ui"
local qvars = require "quarrel.vars"
local wibox = require "wibox"
-return awful.widget.taglist {
- screen = screen[1],
- filter = awful.widget.taglist.filter.all,
- layout = {
- spacing = qvars.padding,
- layout = wibox.layout.fixed.vertical
- },
- widget_template = {
- widget = wibox.container.place,
- valign = "center",
- halign = "center",
- create_callback = function(self, tag)
- self.widget = qui.icon(tag.icon)
-
- self:connect_signal("mouse::enter", function()
- if tag.selected then return end
- self.widget.stylesheet = qui.recolor(qvars.colors.yellow)
- end)
+return function(s)
+ return awful.widget.taglist {
+ screen = s,
+ filter = awful.widget.taglist.filter.all,
+ layout = {
+ spacing = qvars.padding,
+ layout = wibox.layout.fixed.vertical,
+ },
+ widget_template = {
+ widget = wibox.container.place,
+ valign = "center",
+ halign = "center",
+ create_callback = function(self, tag)
+ self.widget = qui.icon {
+ icon = phosphor[next(tag:clients()) and "circle_fill" or "circle_bold"],
+ widget = {
+ forced_height = qvars.char_height / 1.5,
+ forced_width = qvars.char_height / 1.5,
+ },
+ }
+ -- self.widget = wibox.widget {
+ --
+ -- }
- self:connect_signal("mouse::leave", function()
- if tag.selected then return end
- self.widget.stylesheet = qui.recolor(qvars.colors.fg)
- end)
+ self:connect_signal("mouse::enter", function()
+ if tag.selected then
+ return
+ end
+ self.widget.stylesheet = qui.recolor(qvars.colors.yellow)
+ end)
- if tag.selected then
- self.widget.stylesheet = qui.recolor(qvars.colors.yellow)
- return
- end
+ self:connect_signal("mouse::leave", function()
+ if tag.selected then
+ return
+ end
+ self.widget.stylesheet = qui.recolor(qvars.colors.fg)
+ end)
- self.widget.stylesheet = qui.recolor(qvars.colors.fg)
- end,
- update_callback = function(self, tag)
- -- self.widget.icon = phosphor[next(tag:clients()) and "circle_fill" or "circle_bold"]
+ if tag.selected then
+ self.widget.stylesheet = qui.recolor(qvars.colors.yellow)
+ return
+ end
- if tag.selected then
- self.widget.stylesheet = qui.recolor(qvars.colors.yellow)
- else
self.widget.stylesheet = qui.recolor(qvars.colors.fg)
- end
- end
- },
- buttons = {
- qbind:new {
- triggers = qvars.btns.left,
- press = function(t)
- t:view_only()
end,
- hidden = true
- },
- qbind:new {
- mods = qvars.mods.M,
- triggers = qvars.btns.left,
- press = function(t)
- if client.focus then
- client.focus:move_to_tag(t)
+ update_callback = function(self, tag)
+ self.widget.image = phosphor[next(tag:clients()) and "circle_fill" or "circle_bold"]
+
+ if tag.selected then
+ self.widget.stylesheet = qui.recolor(qvars.colors.yellow)
+ else
+ self.widget.stylesheet = qui.recolor(qvars.colors.fg)
end
end,
- hidden = true
},
- qbind:new {
- triggers = qvars.btns.right,
- press = awful.tag.viewtoggle,
- hidden = true
+ buttons = {
+ qbind:new {
+ triggers = qvars.btns.left,
+ press = function(t)
+ t:view_only()
+ end,
+ hidden = true,
+ },
+ qbind:new {
+ mods = qvars.mods.M,
+ triggers = qvars.btns.left,
+ press = function(t)
+ if client.focus then
+ client.focus:move_to_tag(t)
+ end
+ end,
+ hidden = true,
+ },
+ qbind:new {
+ triggers = qvars.btns.right,
+ press = awful.tag.viewtoggle,
+ hidden = true,
+ },
},
}
-}
+end
diff --git a/.config/awesome/ui/statusbar/widgets/tasklist.lua b/.config/awesome/ui/statusbar/widgets/tasklist.lua
new file mode 100644
index 0000000..9656185
--- /dev/null
+++ b/.config/awesome/ui/statusbar/widgets/tasklist.lua
@@ -0,0 +1,30 @@
+local awful = require "awful"
+local gears = require "gears"
+local qvars = require "quarrel.vars"
+local wibox = require "wibox"
+
+return function(s)
+ return awful.widget.tasklist {
+ screen = s,
+ filter = awful.widget.tasklist.filter.currenttags,
+ -- buttons = tasklist_buttons,
+ layout = {
+ spacing = qvars.padding,
+ layout = wibox.layout.flex.vertical,
+ },
+ widget_template = {
+ widget = wibox.container.place,
+ valign = "center",
+ halign = "center",
+ -- {
+ -- widget = awful.widget.clienticon,
+
+ -- }
+ {
+ widget = awful.widget.clienticon,
+ forced_width = qvars.char_height,
+ forced_height = qvars.char_height,
+ },
+ },
+ }
+end