Re: [dwm] Eagerly awaiting st
2007/12/11, John A. Grahor [EMAIL PROTECTED]: Anselm, I'm eagerly awaiting the advent of st. I wonder if you would entertain the concept of local line editing? I ssh to many hosts at the far end of very slow satellite links and it is excruciating to type commands, etc because ssh doesn't have a line mode like telnet does. It would be nice if the terminal would support local line editing so that a line is collected up locally on the terminal and sent to the pty only when carriage return is hit. Any chance?? Regards, John Instead of local line editing, I would suggest a hold mode ala 9term, with some copy-paste and mouse editing it turns your terminal with ed into a full blown visual text editor. But once st is released I plan to do a lot of experiments with that source and some of the 9term features (like this one) are in my todo list. Greetins, -- - yiyus || JGL .
[dwm] [ANNOUNCE] cmarkdown-0.3
Hi! I wrote an markdown interpreter in C. It should support most of the features markdown.pl has (hopefully). Please report any bugs. It would be a good idea if you could test the interpreter with you're own documents and report any differences to markdown.pl Mercurial: hg clone http://s01.de/~gottox/hg/cmarkdown/ Tarball: http://s01.de/~gottox/files/cmarkdown-0.3.tar.gz regards Gottox -- http://www.gnuffy.org - Real Community Distro http://www.gnuffy.org/index.php/GnuEm - Gnuffy on Ipaq (Codename Peggy)
Re: [dwm] dwm new message notification
On Mon, Dec 10, 2007 at 03:32:14PM -0500, Jeremy O'Brien wrote: Is there a way to get new mail notifications from IMAP that would be suitable for the bar? Thank you! I don't know what you are thinking of exactly, but I used to use fetchmail -c | sed -e 's/[^0-9 (]//g' -e 's/(/-/'|bc` ~/.mailcheck in a cronjob (shows the number of new messages). Then I switched to offlineimap to sync the mail to my computer, you can then count the new messages in your Maildir or sed the output of offlineimap. Greets Martin
Re: [dwm] Xinerama support
Why not just keep it simple and store a seltags[] for each monitor and a single variable indicating which is the current monitor selected? This way you can achieve any of the possibilities (show the same client in both monitors, move a window from one to another, etc.. For me this approach looks the simpler one and fits all my needs. which situations are not handled by this approach? On Sun, 9 Dec 2007 23:10:14 +0100 Antoni Grzymala [EMAIL PROTECTED] wrote: Anselm R. Garbe dixit (2007-12-09, 18:27): [snip] One idea I was playing in my mind with for a while was assigning some of the tags to the other display and move between the displays seamlessly as if moving between the tags - I guess I'll still have the problem of not being able to move the programs between other-display-tags but it'd look more natural and I won't have to invoke switchscreen separately. For my taste, treating different displays as different tag sets is a better solution than defining a very large display where one tag spreads over both of the screens. But of course the ability to move program windows between the displays is quite handy, too. One problem with using a subset of your tags for a different screen occures, if a window is tagged with a tag from one screen and with another tag from a different screen. We cannot display a window on two screens, at least not mirrored (Xinerama allows to display portions of windows on different screens however) ;) I think this discussion is going in the right direction. My suggestion to marry those two contradicting views would be like this: - in normal circumstances two heads act like two separate dwm instances (the way I guess most people are doing now), you can jump between them the usual way (ie. sh -c 'DISPLAY=:0.1 swarp 512 384'); - both heads have their own freely settable sets of tags (like two separate dwm instances); - add another property to a client (called head, for example), signifying which head a client should appear on (mutually exclusive, so that we don't try do display a client on both heads; - allow changing the head property for a client with a keyboard-bound function while preserving other attributes of the client (tagset, float/non-float); Do you think this makes sense? Regards, -- [a] --pancake
Re: [dwm] Xinerama support
pancake [EMAIL PROTECTED] writes: This way you can achieve any of the possibilities (show the same client in both monitors, move a window from one to another, etc.. X doesn't give you a mechanism for showing the same client on both monitors. Best wishes, Chris.
Re: [dwm] dwm new message notification
I just check the size of the mail file to see if it is non-zero. And then I print an 'M' to my status bar like this: mail_file=/var/mail/tola if [ -s $mail_file ] then mail=M else mail='' fi Martin Sander [EMAIL PROTECTED] writes: On Mon, Dec 10, 2007 at 03:32:14PM -0500, Jeremy O'Brien wrote: Is there a way to get new mail notifications from IMAP that would be suitable for the bar? Thank you! I don't know what you are thinking of exactly, but I used to use fetchmail -c | sed -e 's/[^0-9 (]//g' -e 's/(/-/'|bc` ~/.mailcheck in a cronjob (shows the number of new messages). Then I switched to offlineimap to sync the mail to my computer, you can then count the new messages in your Maildir or sed the output of offlineimap. Greets Martin -- engin tola - http://cvlab.epfl.ch/~tola emacs - http://www.gnu.org/software/emacs/tour
Re: [dwm] Xinerama support
Chris Webb dixit (2007-12-11, 13:11): This way you can achieve any of the possibilities (show the same client in both monitors, move a window from one to another, etc.. X doesn't give you a mechanism for showing the same client on both monitors. Ah, that solves my dilemma. I thought so, too. -- [a] signature.asc Description: Podpis cyfrowy :: Digital signature
Re: [dwm] dwm new message notification
On Tue, Dec 11, 2007 at 03:53:20PM +0100, Antoni Grzymala wrote: Engin Tola dixit (2007-12-11, 14:46): I just check the size of the mail file to see if it is non-zero. And then I print an 'M' to my status bar like this: mail_file=/var/mail/tola if [ -s $mail_file ] then mail=M else mail='' fi I have a background fetchmail (via postfix and procmail) fetching my e-mails to my maildirs (most of the mail gets into the INBOX, while the mailing lists (like dwm) are sorted out into specific folders. Here's the bit of my statusbar script for displaying the number of unread messages in respective maildirs: # Maildir UNREAD messages (deforked, pure bash version) for dir in /var/spool/mail/antoni/new/ /home/antoni/mail/*/new/; do count=0 for k in ${dir}/*; do [[ -f ${k} ]] ((count++)) done if [[ ${count} -ne 0 ]]; then dir=${dir/\/var\/spool\/mail\/antoni\/new\//Spool} dir=${dir/\/home\/antoni\/mail\//} dir=${dir/\/new\//} MAIL=${dir}: ${count} ยท ${MAIL} fi done Best, -- [a] Haha. You gave me this script before, and it was the one that I was previously using. Worked like a charm! Unfortunately, IMAP works differently and doesn't populate my ~/.maildir directory anymore :( Thank you though! :) -- Jeremy O'Brien aka neutral_insomniac GPG key: 0xB1140FDB http://pohl.ececs.uc.edu/~jeremy/jeremy.asc Linux ambelina 2.6.22.9 #1 Zilog(R) Z80 processor 4MHz GNU/Linux signature.asc Description: Digital signature
Re: [dwm] dwm new message notification
Jeremy O'Brien dixit (2007-12-11, 12:37): Haha. You gave me this script before, and it was the one that I was previously using. Worked like a charm! Unfortunately, IMAP works differently and doesn't populate my ~/.maildir directory anymore :( Thank you though! :) LOL, excuse my Alzheimer. Do you need to access Gmail via IMAP? I fetchmail my mail the usual way with POP3. Obviously it does not presever the mailbox layout in Gmail. Not really sure, what your needs are. Best, -- [a] signature.asc Description: Podpis cyfrowy :: Digital signature
Re: [dwm] dwm new message notification
On Tue, Dec 11, 2007 at 06:47:00PM +0100, Antoni Grzymala wrote: Jeremy O'Brien dixit (2007-12-11, 12:37): Haha. You gave me this script before, and it was the one that I was previously using. Worked like a charm! Unfortunately, IMAP works differently and doesn't populate my ~/.maildir directory anymore :( Thank you though! :) LOL, excuse my Alzheimer. Do you need to access Gmail via IMAP? I fetchmail my mail the usual way with POP3. Obviously it does not presever the mailbox layout in Gmail. Not really sure, what your needs are. Best, -- [a] Heh, no problem. :) I am accessing Gmail just fine using mutt and IMAP. The problem I have now is finding a way to show the number of new emails in my status bar like your script did so wonderfully before. The solution that Martin Sander gave seemed adequate, but the script failed. I'm assuming it was a typo somewhere :( I would like to start using offlineimap too, as this seems to be the best of both worlds (offline mail reading + supercool synchronization), but my net connection at my house right now is crap, and downloading 500MB+ of email is out of the question. So for now I think I'll just rely on peeking at mutt every so often to see if I have no email. I can cope. :) -- Jeremy O'Brien aka neutral_insomniac GPG key: 0xB1140FDB http://pohl.ececs.uc.edu/~jeremy/jeremy.asc Linux ambelina 2.6.22.9 #1 Zilog(R) Z80 processor 4MHz GNU/Linux signature.asc Description: Digital signature
Re: [dwm] dwm new message notification
I think gmail supports RSS for getting unread mail. I clicked on the little feed icon in my firefox urlbar and I got an RSS page. I guess a little grep over that should do the trick. Do tell us if that works! Ritesh On Dec 11, 2007 1:05 PM, Jeremy O'Brien [EMAIL PROTECTED] wrote: On Tue, Dec 11, 2007 at 06:47:00PM +0100, Antoni Grzymala wrote: Jeremy O'Brien dixit (2007-12-11, 12:37): Haha. You gave me this script before, and it was the one that I was previously using. Worked like a charm! Unfortunately, IMAP works differently and doesn't populate my ~/.maildir directory anymore :( Thank you though! :) LOL, excuse my Alzheimer. Do you need to access Gmail via IMAP? I fetchmail my mail the usual way with POP3. Obviously it does not presever the mailbox layout in Gmail. Not really sure, what your needs are. Best, -- [a] Heh, no problem. :) I am accessing Gmail just fine using mutt and IMAP. The problem I have now is finding a way to show the number of new emails in my status bar like your script did so wonderfully before. The solution that Martin Sander gave seemed adequate, but the script failed. I'm assuming it was a typo somewhere :( I would like to start using offlineimap too, as this seems to be the best of both worlds (offline mail reading + supercool synchronization), but my net connection at my house right now is crap, and downloading 500MB+ of email is out of the question. So for now I think I'll just rely on peeking at mutt every so often to see if I have no email. I can cope. :) -- Jeremy O'Brien aka neutral_insomniac GPG key: 0xB1140FDB http://pohl.ececs.uc.edu/~jeremy/jeremy.aschttp://pohl.ececs.uc.edu/%7Ejeremy/jeremy.asc Linux ambelina 2.6.22.9 #1 Zilog(R) Z80 processor 4MHz GNU/Linux -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHXtFtJUoJkLEUD9sRAhGJAJ9/wLHYinNV7dJsVc81PpyE2zj7xgCgh4sp xafLvQhi71rSCx1FbEzM/i0= =55kj -END PGP SIGNATURE-