Skip to content

Instantly share code, notes, and snippets.

@richese
richese / config.py
Created August 31, 2018 11:40
i3pystatus modules
import logging
import os
import json
from i3pystatus import Status
from i3pystatus.core.command import execute, run_through_shell
from i3pystatus.core.util import get_module
from i3pystatus.updates.cower import Cower
from i3pystatus.updates.pacman import Pacman
from i3pystatus.now_playing import NowPlaying
@richese
richese / test.py
Created November 25, 2015 19:01
require(internet) test
from i3pystatus import IntervalModule
from i3pystatus.core.util import internet, require
class Connected(IntervalModule):
interval = 1
def init(self):
self.counter = 0
@richese
richese / linux_watch.patch
Last active October 27, 2015 05:59
Shinjiru: Linux windowwatcher
commit 635e0e53614ad9f901f19327b67b00d954a39e32
Author: Lukáš Mandák <lukas.mandak@yandex.com>
Date: Tue Oct 27 06:54:29 2015 +0100
Added Linux support for automatic list updating by using 'xwininfo'
diff --git a/src/lib/windowwatcher.cpp b/src/lib/windowwatcher.cpp
index 60fb096..5792ee0 100644
--- a/src/lib/windowwatcher.cpp
+++ b/src/lib/windowwatcher.cpp