Skip to content

Instantly share code, notes, and snippets.

View farhaven's full-sized avatar
🦄
I'm a unicorn.

Gregor Best farhaven

🦄
I'm a unicorn.
View GitHub Profile
/*
* A simple example of setting the XUrgencyHint on an xterm from a program
* running in it. Compile with:
*
* gcc -L/usr/X11R6/lib -lX11 urgent.c -o urgent
*
*/
#include <stdio.h>
#include <stdlib.h>
while true; do
awesome
sleep 1
done
-- this is for the mwfact, it changes the master window's width (or height, depending on the layout)
awful.key({ config.global.modkey, "Mod1" }, "Down", function () awful.tag.incmwfact(0.01) end),
awful.key({ config.global.modkey, "Mod1" }, "Up", function () awful.tag.incmwfact(-0.01) end),
-- this is for the client wfact, it changes the width (or height) of client windows
awful.key({ config.global.modkey, "Mod1" }, "Left", function () awful.client.incwfact(0.05) end),
awful.key({ config.global.modkey, "Mod1" }, "Right", function () awful.client.incwfact(-0.05) end),
package main
import "fmt"
import "rand"
import "math"
import "flag"
func main() {
var hit int64
var total int64
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ENTROPY 1000
void usage(const char* name)
{ printf("Usage:\n");
printf("%s [xxxx] [-vh]\n", name);
printf("xxxx\tuse xxxx random numbers to calculate pi, default 1000\n");
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.2';
%IRSSI = (
authors => 'gbe/smile',
name => 'bitlbee_autojoin_groupchats',
description => 'autojoins groupchats in bitlbee',
---------------------------
-- foo theme for Awesome --
---------------------------
return {
-- font = "Terminus 8",
font = "Fixed 8",
bg_normal = "#333333",
bg_focus = "#1279bf",
(20:43:18) gregor:~ $ grep theme .config/awesome/rc.lua
["theme"] = awful.util.getdir("config") .. "/themes/foo/foo.lua",
beautiful.init(config.global.theme)
# include '/usr/share/themes/Elegant_Mine/gtk-2.0/gtkrc'
# include '/usr/share/themes/ThinIce/gtk-2.0/gtkrc'
# include '/usr/share/themes/Neutronium DeepBlack/gtk-2.0/gtkrc'
# include '/usr/share/themes/Xfce-dusk/gtk-2.0/gtkrc'
# include '/usr/share/themes/CleanIce/gtk-2.0/gtkrc'
# include "/home/gregor/.themes/Apathy/gtk-2.0/gtkrc"
# include '/usr/share/themes/Zenburn/gtk-2.0/gtkrc'
include '/home/gregor/.themes/zenfoo/gtkrc'
#!/bin/bash
CMD=
if [ ! x$DISPLAY == x ]; then
CMD="urxvtc -name urxvt.cmus -e"
fi
if [ $(screen -ls | grep cmus | wc -l) -gt 0 ]; then
$CMD screen -raAd cmus
else