Skip to content

Instantly share code, notes, and snippets.

View Elv13's full-sized avatar

Emmanuel Lepage Vallée Elv13

  • Google
  • San Francisco
View GitHub Profile
html,body {
width:320px;
display:block;
margin:0!important;
padding:0!important;
}
div.box #brdtitle {
background-image:url('http://www.quebecgeeks.net/forums/img/header.png') !important;
height:65px;
@Elv13
Elv13 / gist:740535
Created December 14, 2010 15:00
Small todo widget for awesome, untested
local setmetatable = setmetatable
local tonumber = tonumber
local loadstring = loadstring
local ipairs = ipairs
local table = table
local io = io
local util = require("awful.util")
local button = require("awful.button")
local vicious = require("vicious")
local tag = require("awful.tag")
local ready_views = setmetatable({}, { mode = "_k" })
local go_next = [=[
(function() {
var el = document.querySelector("[rel='next']");
if (el) { // Wow a developer that knows what he's doing!
location = el.href;
}
else { // Search from the bottom of the page up for a next link.
var els = document.getElementsByTagName("a");
diff --git a/window.lua b/window.lua
index 648de23..723a834 100755
--- a/window.lua
+++ b/window.lua
@@ -34,9 +34,16 @@ function window.build()
l = {
layout = hbox(),
ebox = eventbox(),
+
back = label(),
-Ability to use multiple "layout.horizontal.flex" element at the same time to make it possible to have tabs that work
-Ability to assign a titlebar to an array of client, not just one
-Table properties/functions or something like that return the buttons for the current titlebar, like "myTitlebar.close" to make it easier to customize the order of the button without forking the whole thing
-the ability to set the .widgets for the wibox (or equivalent) so anybody can set a new order or layout from rc.lua (without forking the whole thing, once again)
-mouse tracker need to support drag for buttons 1, 2 and 3 (or even more), not only left click drag. So we can use middle click to drag tabs, like kwin and fluxbox
-keeing the same titlebar for ever, not deleting it when you switch tags and creating a new one after that. First, because it trigger a memory leak in X and then because if I add some widgets to it, it may be too slow to just create them over and over again, forget about things like graphs or any widget wi
@Elv13
Elv13 / AwesomeWM function for changing gackground color
Created March 4, 2011 22:13
AwesomeWM function for changing gackground color
function (c)
local text, bg, status_image, icon = awful.widget.tasklist.label.currenttags(c, s)
local foo = awful.client.property.get(c, "bg")
return text, foo or bg, status_image, icon
end
#! perl
use Carp qw(confess cluck);
use AnyEvent;
use AnyEvent::DBus;
use Net::DBus::Annotation qw(:call);
use Net::DBus;
use Net::DBus::Service;
use Net::DBus::Reactor;
DPKGBUILDCMD=dpkg-buildpackage -b -D -us -uc -tc -rfakeroot
DEBREPO="../debrepo"
DEB_INCOMING="${DEBREPO}/incoming/work"
# Build all system packages
# System packages contains linux configuration files as well
# --- Package creation ---
all: packageName1 packageName2 packageName3
#include "umlholder.h"
#include "umlview.h"
#include <QtGui/QTabWidget>
#include <QtGui/QHBoxLayout>
#include <QtGui/QWidget>
QList<QTabWidget*> UmlHolder::m_psTabWidgets = QList<QTabWidget*>();
QHash<UMLView* ,QList<UmlHolder*> > UmlHolder::m_psViews = QHash<UMLView* ,QList<UmlHolder*> >();
/*My friend like to cheat*/
char** futureLovers = {
"BETTY F M A A C C",
"TOM M F A D C A",
"SUE F M D D D D",
"ELLEN F M A A C A",
"JOE M F A A C A",
"ED M F A D D A",
"SALLY F M C D A B",
"MARGE F M A A C C"