Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
guerremdq committed Dec 18, 2012
0 parents commit d00f1c8
Show file tree
Hide file tree
Showing 90 changed files with 6,627 additions and 0 deletions.
500 changes: 500 additions & 0 deletions #rc.lua#

Large diffs are not rendered by default.

Empty file added README.md
Empty file.
12 changes: 12 additions & 0 deletions icons/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
All 'awesome' icons in this package were created by Adrian C. (anrxc).
They are licensed under the same terms as the awesome distribution itself
- GNU General Public License version 2. To view a human-readable summary
of this license, visit: http://creativecommons.org/licenses/GPL/2.0/

The widget icons with the exception of: 'chat', 'crypt', 'power' and
'rss' icons (which were made by me) were originally made by 'sm4tik'
for purposes of 'dzen', I could not find any licensing information
attached to those original bitmaps. Assuming they are in the public
domain I am licensing the widget icons under the terms of the
Creative Commons Attribution-Share Alike license. To view a copy of
this license, visit: http://creativecommons.org/licenses/by-sa/3.0/
Binary file added icons/awesome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/bat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/cal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/chat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/cpu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/crypto.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/disk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de dwindle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de fairh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de fairv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de floating.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de fullscreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de magnifier.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de max.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de spiral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de tile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de tilebottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de tileleft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/copia de tiletop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/dwindle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/fairh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/fairv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/floating.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/layouts/fullscreen.png
Binary file added icons/layouts/magnifier.png
Binary file added icons/layouts/max.png
Binary file added icons/layouts/spiral.png
Binary file added icons/layouts/tile.png
Binary file added icons/layouts/tilebottom.png
Binary file added icons/layouts/tileleft.png
Binary file added icons/layouts/tiletop.png
Binary file added icons/mail.png
Binary file added icons/mem.png
Binary file added icons/music.png
Binary file added icons/pacman.png
Binary file added icons/phones.png
Binary file added icons/power-bat-high.png
Binary file added icons/power.png
Binary file added icons/rss.png
Binary file added icons/sat.png
Binary file added icons/sun.png
Binary file added icons/taglist/squarefz.png
Binary file added icons/taglist/squarefza.png
Binary file added icons/taglist/squarez.png
Binary file added icons/taglist/squareza.png
Binary file added icons/temp.png
Binary file added icons/time.png
Binary file added icons/titlebar/close_focus.png
Binary file added icons/titlebar/close_normal.png
Binary file added icons/titlebar/floating_focus_active.png
Binary file added icons/titlebar/floating_focus_inactive.png
Binary file added icons/titlebar/floating_normal_active.png
Binary file added icons/titlebar/floating_normal_inactive.png
Binary file added icons/titlebar/maximized_focus_active.png
Binary file added icons/titlebar/maximized_focus_inactive.png
Binary file added icons/titlebar/maximized_normal_active.png
Binary file added icons/titlebar/maximized_normal_inactive.png
Binary file added icons/titlebar/ontop_focus_active.png
Binary file added icons/titlebar/ontop_focus_inactive.png
Binary file added icons/titlebar/ontop_normal_active.png
Binary file added icons/titlebar/ontop_normal_inactive.png
Binary file added icons/titlebar/sticky_focus_active.png
Binary file added icons/titlebar/sticky_focus_inactive.png
Binary file added icons/titlebar/sticky_normal_active.png
Binary file added icons/titlebar/sticky_normal_inactive.png
Binary file added icons/up.png
Binary file added icons/vol.png
Binary file added icons/wifi.png
1 change: 1 addition & 0 deletions obvious
Submodule obvious added at 71cf36
90 changes: 90 additions & 0 deletions osk.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
----------------------------------------------------
-- On Screen Keyboard for the awesome window manager
----------------------------------------------------
-- Coded by: farhaven <[email protected]>
-- Hacked by: Adrian C. <[email protected]>
-- Licensed under the WTFPL version 2
-- * http://sam.zoy.org/wtfpl/COPYING
----------------------------------------------------
-- To use this module add:
-- require("osk")
-- to your rc.lua, and call it from a keybinding:
-- osk(position, screen)
--
-- Parameters:
-- position - optional, "bottom" by default
-- screen - optional, screen.count() by default
----------------------------------------------------

-- Grab environment
local util = require("awful.util")
local wibox = require("awful.wibox")
local button = require("awful.button")
local layout = require("awful.widget.layout")
local table = table
local ipairs = ipairs
local tostring = tostring
local setmetatable = setmetatable
local capi = {
widget = widget,
screen = screen,
fake_input = root.fake_input
}

-- OSK: On Screen Keyboard for the awesome window manager
module("osk")

-- Variable definitions
local kbd = {}
kbd.codes = {
q=24, w=25, e=26, r=27, t=28, z=52, u=30, i=31, o=32, p=33, ["."]=60,
a=38, s=39, d=40, f=41, g=42, h=43, j=44, k=45, l=46,
Caps=66, y=29, x=53, c=54, v=55, b=56, n=57, m=58, Spc=65, Ret=36, Del=22,
}

-- Create a chain of key widgets for an OSK row
local function create_button_row(...)
local widgets = { layout = layout.horizontal.flex }

for _, i in ipairs(arg) do
local w = capi.widget({ type = "textbox" })
w:margin({ top = 10, left = 10, right = 10, bottom = 10 })
w.border_width = 1
w.text_align = "center"
w.border_color = "#1E2320"
w.text = util.escape(tostring(i))
w:buttons(util.table.join(
button({ }, 1, nil, function ()
capi.fake_input("key_press", kbd.codes[i])
capi.fake_input("key_release", kbd.codes[i])
end)
))

table.insert(widgets, w)
end

return widgets
end

-- Create a wibox holding OSK rows and toggle its visibility
setmetatable(_M, { __call = function (_, pos, scr)
if not kbd.init then
kbd.box = wibox({
height = 100,
position = pos or "bottom",
screen = scr or capi.screen.count(),
fg = "#F0DFAF",
bg = "#4F4F4F",
widgets = {
{ create_button_row("q", "w", "e", "r", "t", "z", "u", "i", "o", "p", ".") },
{ create_button_row("a", "s", "d", "f", "g", "h", "j", "k", "l") },
{ create_button_row("Caps", "y", "x", "c", "v", "b", "n", "m", "Spc", "Ret", "Del") },
layout = layout.vertical.flex
}
})
kbd.init = true
kbd.box.visible = false
end

kbd.box.visible = not kbd.box.visible
end })
Loading

0 comments on commit d00f1c8

Please sign in to comment.