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
--------------------------- | |
-- 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
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
#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
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
-- 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
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
/* | |
* 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
function split(str) | |
local values = { } | |
local idx_s = 0 | |
local idx_e = 0 | |
while idx_e ~= nil do | |
idx_s = idx_e + 1 | |
idx_e = str:find("[ \n]", idx_s) | |
local sub = str:sub(idx_s, idx_e and idx_e - 1 or nil) | |
if sub ~= "" then |
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
Content-Type: text/html | |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title> users - login</title> | |
<link rel="stylesheet" href="/pub/style/style.css" type="text/css" media="screen, handheld" title="default"> | |
<link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon"> |