Skip to content

Instantly share code, notes, and snippets.

View dangra's full-sized avatar
🦖

Daniel Graña dangra

🦖
View GitHub Profile
diff --git a/awesome.c b/awesome.c
index c2515cf..c74ce1c 100644
--- a/awesome.c
+++ b/awesome.c
@@ -330,6 +330,7 @@ exit_help(int exit_code)
-h, --help show help\n\
-v, --version show version\n\
-c, --config FILE configuration file to use\n\
+ -t, --nosystray disable builtin systray\n\
-k, --check check configuration file syntax\n");
diff --git a/awesome.c b/awesome.c
index c2515cf..c74ce1c 100644
--- a/awesome.c
+++ b/awesome.c
@@ -330,6 +330,7 @@ exit_help(int exit_code)
-h, --help show help\n\
-v, --version show version\n\
-c, --config FILE configuration file to use\n\
+ -t, --nosystray disable builtin systray\n\
-k, --check check configuration file syntax\n");
diff --git a/objects/wibox.c b/objects/wibox.c
index b3a06cb..ec5835b 100644
--- a/objects/wibox.c
+++ b/objects/wibox.c
@@ -21,6 +21,7 @@
#include <xcb/shape.h>
+#include "systray.h"
#include "screen.h"
diff --git a/objects/wibox.c b/objects/wibox.c
index b3a06cb..c33f77f 100644
--- a/objects/wibox.c
+++ b/objects/wibox.c
@@ -21,6 +21,7 @@
#include <xcb/shape.h>
+#include "systray.h"
#include "screen.h"
diff --git a/objects/wibox.c b/objects/wibox.c
index c33f77f..fd69fb4 100644
--- a/objects/wibox.c
+++ b/objects/wibox.c
@@ -431,6 +431,10 @@ wibox_systray_kickout(int phys_screen)
static void
wibox_systray_refresh(wibox_t *wibox)
{
+ bool systray_found = false;
+ int phys_screen = wibox->ctx.phys_screen;
diff --git a/objects/wibox.c b/objects/wibox.c
index b3a06cb..c343a98 100644
--- a/objects/wibox.c
+++ b/objects/wibox.c
@@ -21,6 +21,7 @@
#include <xcb/shape.h>
+#include "systray.h"
#include "screen.h"
diff --git a/objects/wibox.c b/objects/wibox.c
index b3a06cb..d8beea8 100644
--- a/objects/wibox.c
+++ b/objects/wibox.c
@@ -21,6 +21,7 @@
#include <xcb/shape.h>
+#include "systray.h"
#include "screen.h"
<?xml version="1.0"?>
<iq xmlns="jabber:client" to="hypervisor@dangra.dnsalias.com/sonee" from="pubsub.dangra.dnsalias.com" id="13" type="error">
<pubsub xmlns="http://jabber.org/protocol/pubsub#owner">
<configure node="/archipel/hypervisor@dangra.dnsalias.com/logs">
<x xmlns="jabber:x:data" type="submit">
<field var="FORM_TYPE" type="hidden">
<value>http://jabber.org/protocol/pubsub#node_config</value>
</field>
<field var="pubsub#notify_retract">
<value>0</value>
@dangra
dangra / swpydaybot.py
Created December 26, 2011 01:57
scrapy's pydaybot at scraperwiki
import os, sys
import scraperwiki
from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from scrapy.contrib.loader import XPathItemLoader
from scrapy.contrib.loader.processor import MapCompose, Join
from w3lib.html import remove_tags, unquote_markup
from scrapy.item import Item, Field
@dangra
dangra / formtest.py
Created April 15, 2012 04:14
Scrapy FormRequest benchs
from scrapy.http.response.text import TextResponse
# import form
import lxmlform
import lxmlform_noxmlns
l = ['<html><body><form><select name="hugeselect">']
for i in range(1000):
l.append('<option value="%s">%s</option>' %(i,i))
l.append('<option selected="selected" value="selected">selected</option>')