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/mksh | |
[ -z "$PS1" ] && return | |
# {{{ prompt | |
# {{{ is_scm_dir | |
is_scm_dir() | |
{ | |
if [ -d $2/.$1 ]; then | |
return 0 | |
elif [ $2 == "/" ]; 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
#!/bin/sh | |
usage(){ | |
cat <<EOF | |
Usage: $0 [add|del] [-n] pkg | |
add add pkg to the system | |
-n don't update already installed pkg | |
del remove pkg from the system |
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
# {{{ misc settings | |
set realname="Gregor Best" | |
set from="[email protected]" | |
set sendmail="/usr/bin/msmtp" | |
set sort=threads | |
set mailcap_path="~/.mailcap" | |
set beep_new | |
set edit_headers | |
set pager_stop | |
set pager_index_lines=10 |
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
text/html; /usr/bin/lynx -dump -nomargins -force_html -stdin; copiousoutput; description=HTML Text | |
image/*; geeqie '%s'; test=test "$DISPLAY" != "" | |
application/pdf; evince '%s'; test=test "$DISPLAY" != "" | |
*/*; less '%s'; needsterminal |
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
\" Compile with | |
\" | |
\" groff -e -p -me -mden -dpaper=a4 | |
\" | |
.color | |
.in 1em | |
.ef "`%```" | |
.of "```%`" | |
.nr si 0.125i |
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
#!/usr/bin/python | |
# Kindle Firmware Update tool v0.11 | |
# Copyright (c) 2009-2010 Igor Skochinsky & Jean-Yves Avenard | |
# $Id: kindle_update_tool.py 6761 2010-09-18 20:39:24Z NiLuJe $ | |
# History: | |
# 2009-03-10 Initial release | |
# 2009-10-22 Update for K2 International support | |
# 2009-10-30 Add conversion from gzip tar to OTA update file, add signature of files for K2 International | |
# 2009-11-01 Use hashlib instead of obsolete md5 | |
# Add ability to install package without first installing the freekindle-k2i package. |
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
QlpoOTFBWSZTWWRg6y4AA0d/hOxQAQB6/f/PB+2PT//v3/oAAQAIUAPMNq9tnZLK6pwkiRpU9oSe | |
0KfqYaT1J5R+hE0PUaDQ09QPU9QaY1BoRqPSTT1TymhmoD1ADIAHlAABoACREVTxtTKRp6jygzU2 | |
kGQMgABiBmoGmOMmTRiGmhgJoYmjTJiBkYTRpphBkwkiJM0amp6CZTaMkDNTeqNB6mgDQA0/UgDc | |
cNvxxE+8lSE8wkg5eV4labk5BnCS+mTJJmEMSThtgGrnbNscZ++WpRzuGHPVDUVmCcahyomskVpE | |
odNNDE2hoqHSylkIXWGgEVEK5oDihJ/7fJ5CHRmIjO+TFQMHf03eXWVOVTMeayDW/w9q+nETN9cg | |
XKwma/vs4Hj/RjcxMrJsxmNQ2BpFU4/DnOTHDhil2NrOqhTSxvsMrqoQ6tQFpcZYZrLNOKrc5aR5 | |
oOrFwZMyuwtTM6sbC2B3zaXolJceW9G3BNeaUSKs2sZYGjN9zXJKrEsws6XIlRqEqNmg4TivcAyQ | |
Tslxc+oVc1yui6xcllpIYGkhlvppL7dnE5h1Nlbs1X36FxhpXRmONlA9hnS7XIRTseSILunVg4QK | |
hxyhjEBeR7YjW4QxkGgDcgMabgvMkoeonEjrTnJ6ieAQWiSKaeiL7RKaDEdvSJaZ+byZrM7Idg0M | |
RLeiBzyUoNzDM3S4HAg693Pr+wVhTkOqgSvGxBgFIQBXHfeAfUKw6w/AsAiETa1sKt4tKhYBFarg |
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
for s = 1, screen.count() do | |
awful.tag.attached_add_signal(s, "property::selected", function(tag) | |
local idx = nil | |
for i, v in pairs(screen[s]:tags()) do | |
if v == tag then | |
idx = i | |
break | |
end | |
end | |
if not idx then return 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
for s = 1, screen.count() do | |
awful.tag.attached_add_signal(s, "property::selected", function(tag) | |
if not tag.selected then return end | |
local idx = nil | |
for i, v in pairs(screen[s]:tags()) do | |
if v == tag then | |
idx = i | |
break | |
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
function run_target(promptbox) | |
return awful.prompt.run({ prompt = promptbox.prompt }, | |
promptbox.widget, | |
function (...) | |
local result = awful.util.spawn(...) | |
if type(result) == "string" then | |
promptbox.widget:set_text(result) | |
elseif type(result) == "number" then | |
client_destination[result] = { mouse.screen, awful.tag.selected() } | |
end |