whitespaces cleaning

This commit is contained in:
luke bonham 2015-07-03 12:17:54 +02:00
parent a8cc5234bc
commit 31098b473a
6 changed files with 26 additions and 28 deletions

View File

@ -10,9 +10,9 @@
-- Grab environment
local ipairs = ipairs
local awful = require("awful")
local table = table
local capi = {
local awful = require("awful")
local table = table
local capi = {
screen = screen,
}
@ -22,9 +22,9 @@ module("eminent")
-- Grab the original functions we're replacing
local deflayout = nil
local orig = {
new = awful.tag.new,
new = awful.tag.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

2
lain

@ -1 +1 @@
Subproject commit 95c019cb253f824014a55c48a82b13d8f280bdb5
Subproject commit e1450f8828c1be4e290cec0a34538ebe6cb86b50

View File

@ -5,20 +5,20 @@
-- @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 pairs = pairs
local ipairs = ipairs
local table = table
local string = string
local next = next
local pairs = pairs
local ipairs = ipairs
local table = table
local string = string
local next = next
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' }
--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 = ""
-- 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
table.insert(result, {k, {}, v["icon"] } )
end
for k, v in ipairs(menulist) do
for _, cat in ipairs(result) do
if cat[1] == v["category"] then
@ -39,7 +39,7 @@ function build_menu()
end
end
end
-- Cleanup Things a Bit
for k,v in ipairs(result) do
-- Remove Unused Categories
@ -53,10 +53,8 @@ function build_menu()
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)
return result
end

View File

@ -117,7 +117,7 @@ mytextclock = awful.widget.textclock(" %a %d %b %H:%M")
mytextclock = lain.widgets.abase({
timeout = 60,
cmd = "date +'%a %d %b %R'",
settings = function()
settings = function()
widget:set_text(" " .. output)
end
})
@ -252,8 +252,8 @@ netwidget = lain.widgets.net({
spr = wibox.widget.textbox(' ')
arrl = wibox.widget.imagebox()
arrl:set_image(beautiful.arrl)
arrl_dl = separators.arrow_left(beautiful.bg_focus, "alpha")
arrl_ld = separators.arrow_left("alpha", beautiful.bg_focus)
arrl_dl = separators.arrow_left(beautiful.bg_focus, "alpha")
arrl_ld = separators.arrow_left("alpha", beautiful.bg_focus)
-- Create a wibox for each screen and add it
mywibox = {}
@ -334,7 +334,7 @@ for s = 1, screen.count() do
-- Widgets that are aligned to the upper right
local right_layout_toggle = true
local function right_layout_add (...)
local function right_layout_add (...)
local arg = {...}
if right_layout_toggle then
right_layout:add(arrl_ld)
@ -349,7 +349,7 @@ for s = 1, screen.count() do
end
right_layout_toggle = not right_layout_toggle
end
right_layout = wibox.layout.fixed.horizontal()
if s == 1 then right_layout:add(wibox.widget.systray()) end
right_layout:add(spr)

View File

@ -24,11 +24,11 @@
-------------------------------------------------------------------
-- Grab environment
local pairs = pairs
local awful = require("awful")
local pairs = pairs
local awful = require("awful")
local setmetatable = setmetatable
local capi = {
mouse = mouse,
local capi = {
mouse = mouse,
client = client,
screen = screen
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB