This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do | |
awesome | |
sleep 1 | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
import "rand" | |
import "math" | |
import "flag" | |
func main() { | |
var hit int64 | |
var total int64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------- | |
-- foo theme for Awesome -- | |
--------------------------- | |
return { | |
-- font = "Terminus 8", | |
font = "Fixed 8", | |
bg_normal = "#333333", | |
bg_focus = "#1279bf", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(20:43:18) gregor:~ $ grep theme .config/awesome/rc.lua | |
["theme"] = awful.util.getdir("config") .. "/themes/foo/foo.lua", | |
beautiful.init(config.global.theme) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |