Re: [dwm] uzbl. A browser that adheres to the unix philosophy.

2009-04-23 Thread Ian Daniher
Awesome, awesome idea but horrendous implementation.
I'm sending this email from inside uzbl, but it's choking horribly on
rendering gmail's ajax chat. Uzbl is much slower than /firefox/ with ten
tabs.
I'll be interested to see how this project progresses.
--
Ian

On Thu, Apr 23, 2009 at 11:45 AM, hiro 23h...@googlemail.com wrote:

 Thanks, that sounds great!
 Now we only need a working flash replacement:(
 But I'm eager to try this out at home this evening.

 On Thu, Apr 23, 2009 at 5:21 PM, Dusan ef_...@yahoo.com wrote:
  Just to notify community:
 
  http://bbs.archlinux.org/viewtopic.php?id=70700p=1
 
  Web kit minimal browser, you will find it very interesting.
 
 
 




Re: [dwm] Font recomendation to get unicode in statusbar?

2009-04-18 Thread Ian Daniher
The Fixed font is superb. For unicode I've had great luck with
-misc-fixed-medium-r-normal-*-13-*-*-*-*-*-iso10646-* which has flawless
greek support as well as support for a variety of arrows, miscellaneous and
technical glyphs. I discovered the fixed font after I decided I wanted to
take notes for physics class on my laptop. I have also written a handy
script that utalizes dmenu and a hierarchical file format to browse, select,
and copy unicode charecters to the keyboard. I'll post the script to the
list in the near future.
Best,
--
IT Daniher

On Sat, Apr 18, 2009 at 6:00 AM, Szabolcs Nagy nszabo...@gmail.com wrote:

 On 4/17/09, Preben Randhol rand...@pvv.org wrote:
  Problem is that fixed font in xterm looks nice, but in the status bar
  it looks ugly for Greek language. the letters are both bold and italic.
  How do you define font[] ?

 you are right greek looks ugly here as well
 maybe the XCreateFontSet() + XmbDrawString() approach is not optimal
 and XLoadQueryFont() + XDrawString16() should be used..
 someone should figure out how fonts, encodings and locales work in X




Re: [dwm] Suckess Code Management

2009-03-12 Thread Ian Daniher
Window Manager = dwm(heavily patched and edited by me, nearing a fork)
File Manager = bash
Text Editor = nano
Calendar / Todo = paper
File search = find | grep | good directory structure
E-Mail = gmail
Music = ncmpc + mpd + sshfs
Chat = irssi+bitlbee, soon swapping irssi for something lighter
Terminal = uxterm
Terminal wm = gnu screen
Browser = firefox
p2p = deluge
rss = igoogle
Multimedia player = mplayer
Image = feh  gimp  inkscape
Distro = Arch Linux
VCS = Rsync + python
#I have a python script which allows incremental, timestamped, hardlinked
backups to be made to a remote server over sftp. It's quite nice.

As for coding, I have a screen session shared between all my xterm windows.
I have nano(with syntax highlighting) open in one or two of them, a terminal
for make / configure, and a terminal for testing the executable.
I use either monocle or a column-modified grid mode as my primary layout.

Best,
--
Ian Daniher

On Thu, Mar 12, 2009 at 10:23 AM, Leandro Chescotta 
lchesco...@banelco.com.ar wrote:

 Window Manager = dwm
 File Manager = mc - thunar
 Text Editor = vim - gvim
 Calendar / Todo = my samsung cellphone calendar
 File search = locate
 E-Mail = gmail - sylpheed
 Music = cplay-mplayer - mc+mplayer
 Chat = irssi+bitlbee - centerim - pebrot - pidgin
 Terminal = urxvtd/c
 Terminal wm = gnu screen
 Browser = swiftweasel - links -g - elinks
 p2p = rtorrent - amule
 rss = google reader
 Multimedia player = mplayer
 Image = feh - geeqie - gimp
 Distro = Arch Linux


 La información del presente documento es clasificada como Confidencial.




[dwm] CLI color/font override patch

2009-02-24 Thread Ian Daniher
Hi All,
Eager to avoid the excessive recompiling of dwm on a 433mhz proc(takes
~25seconds), I sought to patch dwm to support -fn and other appearance
changes.
I've attached two patches, one for dwm.c and one for config.def.h.
The code I put together is based heavily off dmenu's arg processing and adds


Re: [dwm] dmenu filename tab-completion patch

2009-01-27 Thread Ian Daniher
Great feature! Something I've been looking for in dmenu for a long time.
Thanks,
--
Ian


On 1/27/09, Antoni Grzymala ant...@chopin.edu.pl wrote:
 Jeremy Jay dixit (2009-01-27, 16:48):

 I always try to do this and get frustrated when I remember it doesn't
 work, but today I actually looked up the man pages and found out how
 easy it is to get dmenu to support filename tab-completion.  This patch
 adds a small function that completes a filename argument as far as
 possible.  If you'd rather complete to the first match, just comment
 or delete the block specified.  With this patch it is now possible to
 type 'ooctab ~/bigtab' and get:
   'oocalc /home/user/big\ filename\ i\ dont\ want\ to\ type.xls'

 Hope others find it as useful!

 Way cool. Had always wished someone would write this patch :).

 --
 [a]




Re: [dwm] last.fm + youtube downloader scripts

2009-01-06 Thread Ian Daniher
Using the external browser is a great hack, especially since w3m
supports three of them.

For mplayer scripting, I use the following command:
mplayer -really-quiet $URL /dev/null

When I want high-quality videos, I manually edit the script to add
fmt=18 to the end of line starting URL=. This will increase
web traffic, but will give a much better picture.



On 1/6/09, bill lam cbill@gmail.com wrote:
 On Tue, 06 Jan 2009, Ian Daniher wrote:
 As for setting up a hotkey in w3m, I got distracted from
 the manpage by my bugfix but I'll post to the mailing
 list as soon as I have it figured out.

 Thanks. I can view youtube from w3m with a simple script to call mplayer
 and your revised scripts. I use 2M (external browser) hotkey.

 --
 regards,
 
 GPG key 1024D/4434BAB3 2008-08-24
 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
 唐詩180 王維  積雨輞川莊作
 積雨空林煙火遲  蒸藜炊黍餉東菑  漠漠水田飛白鷺  陰陰夏木囀黃鸝
 山中習靜觀朝槿  松下清齋折露葵  野老與人爭席罷  海鷗何事更相疑




Re: [dwm] bash script for managing wireless connections

2009-01-06 Thread Ian Daniher
I realized this earlier and resent the tarball without the symlink.
However, I attached it to the email about the youtubedl and
last.fmdownloader scripts.
Here it is again.
Best,
--
Ian Daniher
On Tue, Jan 6, 2009 at 10:56 AM, pmarin pacog...@gmail.com wrote:

 wifi seems a just a simbolic link:

 edw...@casa:~/Desktop/WIFI$ ls -l wifi
 lrwxrwxrwx 1 edward edward 4 2009-01-06 16:51 wifi - wifi



 On Tue, Jan 6, 2009 at 12:45 AM, Ian Daniher it.dani...@gmail.com wrote:
  Hello dwm community!
  In the honor of the recent plethora of code hitting the mailing
  list, including the helpful dclip, I decided to share my wifi manager.
 
  Passionately disliking network manager but still needing some way
  of juggling WEP and WPA keys as well as multiple access points for
  multiple locations, I wrote a script that allows for the use of CSV
  profiles as well as all commonly used forms of encryption.
 
  This wifi script is the culmination of several revisions and
  pieces of code. Designed to provide an easy way to handle wifi
  connections, it can use either dmenu or arguments to select a
  profile. Profiles are stored in csv(comma-seperated value)
  format in $HOME/.wifi. An example profile file is included for
  reference. The code is very easy to read and is fairly solid,
  but as I'm a new coder, there may be areas that are slightly
  less elegant than they could be. Suggestions, comments, and
  questions are appreciated!
 
  To use the dmenu interface, execute the script with no args.
  If the first argument is the name of a profile, the script
  will use the information and attempt to associate to the AP.
  If the first argument is not the name of a profile but is
  present,the script will try and use that for the name of an AP.
  Enjoy,
  Ian Daniher
 




wifi.tar
Description: Unix tar archive


[dwm] bash script for managing wireless connections

2009-01-05 Thread Ian Daniher
Hello dwm community!
In the honor of the recent plethora of code hitting the mailing
list, including the helpful dclip, I decided to share my wifi manager.

Passionately disliking network manager but still needing some way
of juggling WEP and WPA keys as well as multiple access points for
multiple locations, I wrote a script that allows for the use of CSV
profiles as well as all commonly used forms of encryption.

This wifi script is the culmination of several revisions and
pieces of code. Designed to provide an easy way to handle wifi
connections, it can use either dmenu or arguments to select a
profile. Profiles are stored in csv(comma-seperated value)
format in $HOME/.wifi. An example profile file is included for
reference. The code is very easy to read and is fairly solid,
but as I'm a new coder, there may be areas that are slightly
less elegant than they could be. Suggestions, comments, and
questions are appreciated!

To use the dmenu interface, execute the script with no args.
If the first argument is the name of a profile, the script
will use the information and attempt to associate to the AP.
If the first argument is not the name of a profile but is
present,the script will try and use that for the name of an AP.
Enjoy,
Ian Daniher


wifi.tar
Description: Unix tar archive


[dwm] last.fm + youtube downloader scripts

2009-01-05 Thread Ian Daniher
Hello again,
While I'm at it, I might as well share a pair of my media scripts
which are extremely helpful when it comes to handling web A/V from
command line browsers.

These two files are various bash scripts I've written [or adjusted]
for CLI media-related activities. mcfmod is a heavy modification
of a last.fm mpd player which allows a user to play specific
songs, artists, genres, or songs via mpd and the command line.
mcf --help details syntax. The script as I have it now will
download and label a single mp3 file from a specified genre,
artist, or etc. The script depends on id3, xmlstarlet, and misc.
other the standard GNU-linux tools. youtubedl is a fairly short
bash script which, given a youtube URL, provides an mplayer-able or
wget'able download URL. While this is definitely not the shortest
of youtube download scripts, it is extremely readable and sends
the minimum required information to the youtube servers. This
script can be used as a basis for other, similar scripts.

I run mcfmod in a while [ True ] loop on my server, slowly filling
up the 300gb sata drive I have in there with assorted house and techno
music. youtubedl I am currently working on binding to a hotkey in w3m
to allow near-seamless viewing of youtube videos from a command line
browser.

Enjoy!
--
Ian Daniher


media.tar
Description: Unix tar archive


Re: [dwm] last.fm + youtube downloader scripts

2009-01-05 Thread Ian Daniher
Ooops, epic fail on my part.
--
Take 2

On 1/5/09, bill lam cbill@gmail.com wrote:
 On Mon, 05 Jan 2009, Ian Daniher wrote:
 music. youtubedl I am currently working on binding to a hotkey in w3m
 to allow near-seamless viewing of youtube videos from a command line
 browser.

 I also use w3m and interested in how to do download and view youtube.

 As pointed out, there are only symlink in the attachments.

 --
 regards,
 
 GPG key 1024D/4434BAB3 2008-08-24
 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
 288





media.tar
Description: Unix tar archive


wifi.tar
Description: Unix tar archive


Re: [dwm] last.fm + youtube downloader scripts

2009-01-05 Thread Ian Daniher
Hi All,
Perhaps my first 'release' was premature. In testing I found
a rather atrocious bug which rendered my script useless with some
youtube videos.
I just completed a partial rewrite and have tested it with great success.

##CODE##
UGETURL=$(curl -s $1 |grep fullscreenUrl)
URLPARAMS=${UGETURL#*/watch_fullscreen}
SPLIT=`echo $URLPARAMS | sed -e 's//\n/g'`
video_id=`echo $SPLIT | grep video_id=`
t=`echo $SPLIT | grep t=`
URL=http://www.youtube.com/get_video?$video_id$t;
echo $URL
##/CODE##

The bug came from having the positions or t and video_id hardcoded via awk.
By splitting URLPARAMS and grepping for t and video_id, the script can
extract the information necessary no matter where it is located.

As for setting up a hotkey in w3m, I got distracted from
the manpage by my bugfix but I'll post to the mailing
list as soon as I have it figured out.

Best,
--
Ian Daniher


On 1/6/09, bill lam cbill@gmail.com wrote:
 How to configure w3m to use this youtube-dl ? That is not mentioned in
 README.

 --
 regards,
 
 GPG key 1024D/4434BAB3 2008-08-24
 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
 唐詩253 崔顥  長干行二首之一
 君家何處住  妾住在橫塘  停船暫借問  或恐是同鄉




Re: [dwm] [Offtopic] minimalistic filesystem ncurses viewer

2008-12-27 Thread Ian Daniher
Hey All,
What's wrong with midnight commander? It's an oldy but a goody. Two pane
file interface, has a boatload of features. Is it the bloat of these other
features that you're trying to avoid?

Personally, I don't use a file manager. A straight bash prompt with cd, ls,
tree etc is fine for day to day use.
Instead of the binary tree program, I found this bash-oneliner replacement:
find . -print | sed -e 's;[^/]*/;|;g;s;|; |;g'
It's about the same speed as the regular program and more suckless then a
dedicated binary.(IMO)
--
Ian Daniher

On Sat, Dec 27, 2008 at 10:54 AM, Jack Woehr j...@well.com wrote:

 Ricardo Catalinas Jiménez wrote:

 I tried it after vifm but what I really wanted was a very minimal
 filesystem viewer with vim-like commands, that's why I wrote fm.



 Cute, from screenshot and description, fm reminds me of FULIST on z/VM.

 But it doesn't build on OpenBSD:

   $ gmake CC=gcc
   ctags fm.c fs.c ui.c cmd.c fm.h
   gcc -g -Wall -pedantic -ansi $(pkg-config --cflags glib-2.0)   -c -o
   fm.o fm.c
   fm.c: In function `set_sighandlers':
   fm.c:60: error: `SIGWINCH' undeclared (first use in this function)
   fm.c:60: error: (Each undeclared identifier is reported only once
   fm.c:60: error: for each function it appears in.)
   fm.c: In function `unset_sighandlers':
   fm.c:73: error: `SIGWINCH' undeclared (first use in this function)
   gmake: *** [fm.o] Error 1

 which is kind of weird because even if I specifically #include
 sys/signal.h
 in which `SIGWINCH' is declared it doesn't find it. Haven't had time yet
 to dig in deep.

 --
 Jack J. Woehr# I run for public office from time to time. It's
 like
 http://www.well.com/~jax http://www.well.com/%7Ejax # working out at the
 gym, you sweat a lot, don't get
 http://www.softwoehr.com # anywhere, and you fall asleep easily
 afterwards.



[dwm] subnotebooks take two

2008-11-15 Thread Ian Daniher
Hi all,
Paralleling the dwm-on-subnotebook discussion of a few months back, I have
two things to share.
First off:
I've spun a dwm/debian build for the OLPC XO.
The XO is a tiny, durable, water resistant laptop with an amazing 1200x900
7.5 display. More details on the hardware can be found here:
http://wiki.laptop.org/go/Hardware_specification
I use my XO as my day-to-day computer, irregardless of it's florescent green
colors.
With DWM, the two display modes I use most often are monocole and reversed
gridmode(columns instead of rows).
I find that its screen, while comparitively tiny, is sufficient for reading
ebooks, browsing the web on w3m or a remote firefox session, and for editing
documents on a remote OpenOffice session or with nano.
I also, shamefully enough, use the device as a thinclient for my school's
remote desktop server.
DWM is particularlly conducive to the above actions due to its small size,
hotkeys, and incredibly efficient use of screen realestate. The STDIN
functionality of the menu bar is also useful as it allows me to display my
battery level on a system which most battery monitoring applets choke due to
it's disues of ACPI.
Another often-used suckless app on my XO is dmenu, which I use with a custom
script to rotate the screen, suspend the laptop, change the backlight, and
so on.
Thanks for all the awesome software you all have put together!
Second off:
The HP2133 mininote is on sale on amazon. Running linux out of the box, the
thing packs a 1280x768 8.9 screen, this thing isn't affected by the most
significant limitation of most subnotebooks, the puny screen.
The advert can be found here: *http://tinyurl.com/hp2133dwm.
Enjoy,*
-- 
Ian Daniher
--
OLPC Support Volunteer
OLPCinci Repair Center Coordinator
--
[EMAIL PROTECTED]
Skype : it.daniher
irc.freenode.net: Ian_Daniher


Re: [dwm] Purpose of Monocle Layout

2008-08-03 Thread Ian Daniher
I'd like second that - I didn't ask for that as a change of defaults, but I
was unaware that the feature was already instituted. Thanks!

On Sun, Aug 3, 2008 at 9:35 AM, Matthias-Christian Ott [EMAIL PROTECTED]wrote:

 Matthias-Christian Ott [EMAIL PROTECTED] wrote:

  Anselm R Garbe [EMAIL PROTECTED] wrote:
 
   2008/8/2 Ian Daniher [EMAIL PROTECTED]:
BTW, a friend and I came up with the idea, that it would be useful to
have some visual hint of how many windows you are actually viewing in
monocle. Say, there are five windows with currently viewed tag and
you're viewing the third window in the stack; then there could be an
indicator like: [3/5] or [..*..]. What do you guys think about that?
  
   This idea is rather old and it was implemented once in some official
   version of dwm. However, because it is only interesting for 1
   particular layout, namely monocle, it has been removed again. AFAIR
   the solution to the problem was a change to the Layout struct, instead
   of defining a simple symbol string for the layout, I used some
   function pointer which returned the layout symbol string.
  
   When using this indicator for some time, I concluded that it wasn't
   obvious enough to be useful, especially because the information nth
   client of X clients doesn't give you much -- you rarely remember the
   client order anyways.
  
   Because of the fact that dwm is a dynamic window manager, my
   recommended solution is to switch to some appropriate layout before
   you focus the particular client you are looking for, and then
   switching to monocle again.
  
   So, the way I use monocle is usually only on a client basis or on very
   few clients -- there is the powerful tagging concept for grouping the
   clients you work on.
  
   With this in mind, this idea won't go mainstream again ;)
  
Also, implementing the alt-tab to switch between the windows on that
 tab
would seem to make sense.
  
   The philosophy behind dwm and all other less suckish projects I'm
   involved in follows the idea that there should be only 1 distinct
   operation to perform a certain function. If any feature of some
   software can only and always be performed in using 1 distinct
   operation (which never changes), then it is easier to remember and to
   use. Hence one indicator of bad software design is if there are plenty
   ways performing the same operation (e.g. having an icon to click on, a
   shortcut, a menu entry, a context menu entry, another shortcut, etc).
   This indication applies to vim unfortunately -- there is :wq and ZZ
   and what not for instance -- it basically performs the same
   operations, polluting your command space unnecessarily and making you
   think a lot which is the fastest way to perform a certain operation in
   a certain situation, that sucks).
  
   The only exception regarding the 1 distinct operation paradigm is to
   allow only 1 distinct different way in performing it, if there is a
   different input device, like the mouse.
  
   Having two key bindings for the same thing also makes the usage less
   consistent, because Mod1-Tab (in default setup) has a totally
   different meaning. So IMHO Mod1-j/Mod1-k are the navigation shortcuts
   in all layouts (at least in default setup).
  
   And if you are unhappy with this, feel free to change it in config.h.
  
   Kind regards,
   --Anselm
  :q!

 Sorry just thought that I was in vi ;). Just wanted to add that I didn't
 know about Mod1-j and Mod1-k in monocle. Thanks for the explaination -
 now it makes sense to me.

 Regards
 Matthias-Christian
 Regards
 Matthias-Christian




-- 
Ian Daniher


Re: [dwm] Border hater, border lover

2008-08-02 Thread Ian Daniher
On Sat, Aug 2, 2008 at 9:41 AM, Sunnan [EMAIL PROTECTED] wrote:

 I didn't want to set border size to 0 because I do like them when I
 have more then one client on the screen at the same time, but I don't
 want them when I just have one.

 So I suggest something like this:

 in monocle:
 resize(c, wx-c-bw, wy-c-bw, ww, wh, False);

 (as per Alexander Polakov's suggestion that I found in this list's
 archives.)

 in tile:
 if(n==1)
  resize(c, wx-c-bw, wy-c-bw, ww, wh, False);
 else
  resize(c, wx, wy, mw - 2 * c-bw, wh - 2 * c-bw, resizehints);

 in bstack:
 (I love bstack (maybe because I hate widescreen) and I hardly ever use the
 regular tile mode.)

 if(n==1)
  resize(c, wx-c-bw, wy-c-bw, ww, wh, False);
 else
  resize(c, wx, wy, ww - 2 * c-bw, mh - 2 * c-bw, resizehints);

 Ugh, I'd rather fold those if/elses back into one with ternaries, but
 then we'd need three conditionals instead of one. (Which the compiler
 would probably catch, anyway...)

 So, in closing:
 I love dwm (just switched to the main branch from good old
 dwm-4.6-rfigura once I realized that bstack was available as a patch) and
 this is my first post to this list.

 I hope that this functionality can go into main; it doesn't increase
 the mental load on the user (like toggleborders or a config option
 would) since it happens automatically, but if you don't like it, I'll
 understand.

 Sunnan






-- 
Ian Daniher
--
OLPC Support Volunteer
OLPCinci Repair Center Coordinator
--
[EMAIL PROTECTED]
Skype : it.daniher
irc.freenode.com: Ian_Daniher
--
c: 513.290.4942


Re: [dwm] Purpose of Monocle Layout

2008-08-02 Thread Ian Daniher
Hi All,
I use Monocle it often on my 12 portable.

BTW, a friend and I came up with the idea, that it would be useful to
have some visual hint of how many windows you are actually viewing in
monocle. Say, there are five windows with currently viewed tag and
you're viewing the third window in the stack; then there could be an
indicator like: [3/5] or [..*..]. What do you guys think about that?

I definitely think that an indicator of how many windows are on the tab
would be helpful.

Also, implementing the alt-tab to switch between the windows on that tab
would seem to make sense.

Not being a C coder, I can't offer assistance in the creation of a patch or
in the addition of code, but I'd greatly appreciate the aforementioned
functionality.

Thanks!
-- 
Ian Daniher
--
OLPC Support Volunteer
OLPCinci Repair Center Coordinator
--
[EMAIL PROTECTED]
Skype : it.daniher
irc.freenode.com: Ian_Daniher