Just cleared a huge item from my TODO
Name:
Anonymous
2009-06-18 13:51
export ZLE_SPACE_SUFFIX_CHARS=$'&|'
Name:
Anonymous
2009-06-18 13:59
Just cleared a huge item from my TODO
Shit was so cash!
Name:
Anonymous
2009-06-18 14:04
text related: it's my todo
Name:
Anonymous
2009-06-18 14:21
Just cleared a huge item from my TODO
echo > TODO
Name:
Anonymous
2009-06-18 14:29
What's it do?
Name:
Anonymous
2009-06-18 14:42
___
{o,o}
|)__)
_"_"_
O RLY?
Name:
Anonymous
2009-06-18 14:45
>>5
It turns
haxm<tab>&& from
haxmyanus&& to
haxmyanus &&.
Name:
Anonymous
2009-06-18 16:57
todo() {
if [ -z "$EDITOR" ]; then
echo 'Script only works if you have EDITOR set.'
return 1
fi
local tdir twhat tfile tcmd topts
tdir="$HOME/.TODO"
if [ ! -d $tdir ]; then
echo "Installing todo..."
mkdir $tdir
if [ "$?" -ne 0 ]; then
echo "Failed installing."
exit 1
fi
echo "Made directory $tdir"
fi
case "$1"; in
"-h")
echo -e "Use: $0 [ed|rm|cat|ls] [<what>]\n First option defaults to cat,\n"\
" second to default"
return 0
;;
ed)
tcmd=$EDITOR
shift
;;
rm)
tcmd=rm
topts="-i"
shift
;;
cat)
tcmd=cat
shift
;;
ls)
ls $tdir
return 0
;;
*)
tcmd=cat
;;
esac
if [ "a$1" = "a" ]; then
twhat=default
else
twhat="$1"
fi
tfile="$tdir/$twhat"
if [ ! -f $tfile ]; then
touch $tfile
fi
if [ "$tcmd" = "cat" ] && [ "`wc -l <$tfile`" -gt "24" ]; then
tcmd=less
fi
$tcmd $topts $tfile
return 0
}
Name:
Anonymous
2009-06-18 16:59
All right, next up on my TODO is ``Volume OSD.''
Any alternatives to xosd? That shit is old. Especially the font handling pissed me off when I last touched it.
Name:
Anonymous
2009-06-18 17:31
Name:
Anonymous
2009-06-18 17:34
Name:
Anonymous
2009-06-18 17:40
>>11
What's the point of using a script to handle a simple file? Just use Vim.
Name:
Anonymous
2009-06-18 17:53
>>12
Yeah, but instead of writing
% vim ~/.TODO/hitlist, it's
% todo ed hitlist, something that's way faster, at least with my muscle memory.
Name:
Anonymous
2009-06-18 17:57
>>13
% vim ~/TODO
Keep it all in one file.
Name:
Anonymous
2009-06-18 22:25
ITT: We've never heard of org-mode.
Name:
Anonymous
2009-06-18 23:20
I use Textmate to edit a Markdown file on my Dropbox, which I keep on my Dock. 70's freewares don't do it for me.
___________
Sent from my iPhone.
Name:
Anonymous
2009-06-19 0:04
>>16
What's the matter, too powerful and easy to use for you?
Name:
Anonymous
2009-06-19 1:03
Name:
Anonymous
2009-06-19 4:45
>>15
emacs
oh you
Anyway, I'll be starting work on OSD shit now.
Name:
Anonymous
2009-06-19 5:23
This should do, but man, xosd sucks hard. I'm not sure I need to invoke sh there, it should be possible to use two Execute actions instead.
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>sh -c "amixer set Master 2%-; exec ~/bin/volume-osd"</command>
</action>
</keybind>
#!/bin/sh
pkill osd_cat
exec osd_cat -A center -d 1 -b percentage -P `amixer get Master | tail -n1 | cut -d ' ' -f 5`
Name:
Anonymous
2009-06-19 5:24
>>19
oh you
Wait, what? Surely you can't be objecting to Emacs or org-mode. Watch the screencast.
http://www.youtube.com/watch?v=oJTwQvgfgMM
Name:
Anonymous
2009-06-19 5:50
>>21
Sorry, I can't hear you over the sound of the YouTube buffering.
Name:
Anonymous
2009-06-19 16:43
>>22
That's why I posted text?
Name:
Anonymous
2009-06-19 16:50
>>23
No it isn't. You know very well why you posted text, and you should feel bad about it.
Name:
Anonymous
2009-06-19 16:53
>>24
Because I'm on a text board. :(
But you still don't need to hear text
!
Name:
Anonymous
2009-06-19 16:54
>>25
Exactly!, and that's when you poisoned Mrs. Sussman's drink!
Name:
Anonymous
2009-06-19 16:56
>>26
Back to /clue/ with
thee.
Name:
Anonymous
2009-06-19 19:05
>>27
Back to /b/ with ye.
Name:
Anonymous
2010-11-13 23:03