mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
whitespaces cleaning
This commit is contained in:
parent
a8cc5234bc
commit
31098b473a
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
-- Grab environment
|
-- Grab environment
|
||||||
local ipairs = ipairs
|
local ipairs = ipairs
|
||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
local table = table
|
local table = table
|
||||||
local capi = {
|
local capi = {
|
||||||
screen = screen,
|
screen = screen,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,9 +22,9 @@ module("eminent")
|
||||||
-- Grab the original functions we're replacing
|
-- Grab the original functions we're replacing
|
||||||
local deflayout = nil
|
local deflayout = nil
|
||||||
local orig = {
|
local orig = {
|
||||||
new = awful.tag.new,
|
new = awful.tag.new,
|
||||||
taglist = awful.widget.taglist.new,
|
taglist = awful.widget.taglist.new,
|
||||||
filter = awful.widget.taglist.filter.all,
|
filter = awful.widget.taglist.filter.all,
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Return tags with stuff on them, mark others hidden
|
-- Return tags with stuff on them, mark others hidden
|
||||||
|
|
2
lain
2
lain
|
@ -1 +1 @@
|
||||||
Subproject commit 95c019cb253f824014a55c48a82b13d8f280bdb5
|
Subproject commit e1450f8828c1be4e290cec0a34538ebe6cb86b50
|
|
@ -5,20 +5,20 @@
|
||||||
-- @release v3.5.5
|
-- @release v3.5.5
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
local menu_gen = require("menubar.menu_gen")
|
local menu_gen = require("menubar.menu_gen")
|
||||||
local menu_utils = require("menubar.utils")
|
local menu_utils = require("menubar.utils")
|
||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
local ipairs = ipairs
|
local ipairs = ipairs
|
||||||
local table = table
|
local table = table
|
||||||
local string = string
|
local string = string
|
||||||
local next = next
|
local next = next
|
||||||
|
|
||||||
module("menugen")
|
module("menugen")
|
||||||
|
|
||||||
--Built in menubar should be checking local applications directory
|
-- Built in menubar should be checking local applications directory
|
||||||
menu_gen.all_menu_dirs = { '/usr/share/applications/', '/usr/local/share/applications/', '~/.local/share/applications' }
|
menu_gen.all_menu_dirs = { '/usr/share/applications/', '/usr/local/share/applications/', '~/.local/share/applications' }
|
||||||
|
|
||||||
--Expecting an wm_name of awesome omits too many applications and tools
|
-- Expecting an wm_name of awesome omits too many applications and tools
|
||||||
menu_utils.wm_name = ""
|
menu_utils.wm_name = ""
|
||||||
|
|
||||||
-- Use MenuBar Parsing Utils to build StartMenu for Awesome
|
-- Use MenuBar Parsing Utils to build StartMenu for Awesome
|
||||||
|
@ -30,7 +30,7 @@ function build_menu()
|
||||||
for k,v in pairs(menu_gen.all_categories) do
|
for k,v in pairs(menu_gen.all_categories) do
|
||||||
table.insert(result, {k, {}, v["icon"] } )
|
table.insert(result, {k, {}, v["icon"] } )
|
||||||
end
|
end
|
||||||
|
|
||||||
for k, v in ipairs(menulist) do
|
for k, v in ipairs(menulist) do
|
||||||
for _, cat in ipairs(result) do
|
for _, cat in ipairs(result) do
|
||||||
if cat[1] == v["category"] then
|
if cat[1] == v["category"] then
|
||||||
|
@ -39,7 +39,7 @@ function build_menu()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Cleanup Things a Bit
|
-- Cleanup Things a Bit
|
||||||
for k,v in ipairs(result) do
|
for k,v in ipairs(result) do
|
||||||
-- Remove Unused Categories
|
-- Remove Unused Categories
|
||||||
|
@ -53,10 +53,8 @@ function build_menu()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--Sort Categories Alphabetically Also
|
-- Sort Categories Alphabetically Also
|
||||||
table.sort(result, function(a,b) return string.byte(a[1]) < string.byte(b[1]) end)
|
table.sort(result, function(a,b) return string.byte(a[1]) < string.byte(b[1]) end)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,7 @@ mytextclock = awful.widget.textclock(" %a %d %b %H:%M")
|
||||||
mytextclock = lain.widgets.abase({
|
mytextclock = lain.widgets.abase({
|
||||||
timeout = 60,
|
timeout = 60,
|
||||||
cmd = "date +'%a %d %b %R'",
|
cmd = "date +'%a %d %b %R'",
|
||||||
settings = function()
|
settings = function()
|
||||||
widget:set_text(" " .. output)
|
widget:set_text(" " .. output)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
@ -252,8 +252,8 @@ netwidget = lain.widgets.net({
|
||||||
spr = wibox.widget.textbox(' ')
|
spr = wibox.widget.textbox(' ')
|
||||||
arrl = wibox.widget.imagebox()
|
arrl = wibox.widget.imagebox()
|
||||||
arrl:set_image(beautiful.arrl)
|
arrl:set_image(beautiful.arrl)
|
||||||
arrl_dl = separators.arrow_left(beautiful.bg_focus, "alpha")
|
arrl_dl = separators.arrow_left(beautiful.bg_focus, "alpha")
|
||||||
arrl_ld = separators.arrow_left("alpha", beautiful.bg_focus)
|
arrl_ld = separators.arrow_left("alpha", beautiful.bg_focus)
|
||||||
|
|
||||||
-- Create a wibox for each screen and add it
|
-- Create a wibox for each screen and add it
|
||||||
mywibox = {}
|
mywibox = {}
|
||||||
|
@ -334,7 +334,7 @@ for s = 1, screen.count() do
|
||||||
|
|
||||||
-- Widgets that are aligned to the upper right
|
-- Widgets that are aligned to the upper right
|
||||||
local right_layout_toggle = true
|
local right_layout_toggle = true
|
||||||
local function right_layout_add (...)
|
local function right_layout_add (...)
|
||||||
local arg = {...}
|
local arg = {...}
|
||||||
if right_layout_toggle then
|
if right_layout_toggle then
|
||||||
right_layout:add(arrl_ld)
|
right_layout:add(arrl_ld)
|
||||||
|
@ -349,7 +349,7 @@ for s = 1, screen.count() do
|
||||||
end
|
end
|
||||||
right_layout_toggle = not right_layout_toggle
|
right_layout_toggle = not right_layout_toggle
|
||||||
end
|
end
|
||||||
|
|
||||||
right_layout = wibox.layout.fixed.horizontal()
|
right_layout = wibox.layout.fixed.horizontal()
|
||||||
if s == 1 then right_layout:add(wibox.widget.systray()) end
|
if s == 1 then right_layout:add(wibox.widget.systray()) end
|
||||||
right_layout:add(spr)
|
right_layout:add(spr)
|
||||||
|
|
|
@ -24,11 +24,11 @@
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
|
||||||
-- Grab environment
|
-- Grab environment
|
||||||
local pairs = pairs
|
local pairs = pairs
|
||||||
local awful = require("awful")
|
local awful = require("awful")
|
||||||
local setmetatable = setmetatable
|
local setmetatable = setmetatable
|
||||||
local capi = {
|
local capi = {
|
||||||
mouse = mouse,
|
mouse = mouse,
|
||||||
client = client,
|
client = client,
|
||||||
screen = screen
|
screen = screen
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 33 KiB |
Loading…
Reference in a new issue