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
From a9b8acbca19583bb671f65ab481b2a8bc0595491 Mon Sep 17 00:00:00 2001
From: Gregor Best <[email protected]>
Date: Sun, 3 May 2009 18:55:40 +0200
Subject: [PATCH] allow starting with multiple windows
Signed-off-by: Gregor Best <[email protected]>
---
main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
awful.key({ config.global.modkey, "Mod4" }, "Return", function()
awful.prompt.run({ prompt = " > " },
tb_prompt,
function (s)
local txt = awful.util.escape(awful.util.pread(s.." 2>&1"))
naughty.notify({ text = txt, timeout = 0, screen = mouse.screen })
end,
awful.completion.shell,
os.getenv("HOME") .. "/.cache/awesome/history_commands"
)
awful.key({ config.global.modkey, "Mod4" }, "Return", function()
awful.prompt.run({ prompt = "HTTP: " },
tb_prompt,
function (s)
awful.util.spawn("firefox " .. s)
end,
awful.completion.shell,
os.getenv("HOME") .. "/.cache/awesome/history_commands"
)
end),
From 52a82ad04be34e6f18f3b40c4f2778213d59df9c Mon Sep 17 00:00:00 2001
From: Gregor Best <[email protected]>
Date: Sun, 3 May 2009 22:20:51 +0200
Subject: [PATCH] fix compiler warning
Signed-off-by: Gregor Best <[email protected]>
---
main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
clear lock
add mod4 = Caps_Lock
#!/bin/bash
TUNNEL="ssh -NL3334:localhost:3334 [email protected]"
CMD=
if [ ! x$DISPLAY == x ]; then
CMD="urxvtc -name urxvt.irssi -e"
fi
if [ `screen -ls | grep -c Dead` -gt 0 ]; then
screen -wipe
awful.key({ }, "XF86PowerOff", function ()
local c = client.get()
for _, v in ipairs(c) do
if v.name == "Quick-settings" then
v:kill()
return
end
end
awful.util.spawn("phoneui-quick-settings")
end)
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">
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">
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