Popup status bar support

Proper support for a popup statusbar has been added -- a whole 1 line needed rewriting :-) Assuming you have something like dzen[1] running, say as: while true ; do date ; sleep 30 ; done \ | dzen2 -ta r -fg '#a8a3f7' -bg '#3f3c6d' -p & Which displays a 15 pixel high status bar at the top of the screen, you'd edit your Config.hs, change defaultStatusGap from 0 to 15, and reload. mod-b will then toggle on or off the status bar. Screenshots: http://www.cse.unsw.edu.au/~dons/code/xmonad-web/images/screen-rob-status-sp... http://www.cse.unsw.edu.au/~dons/code/xmonad-web/images/screen-dons-status.p... The 'gap' is just a pixel gap, so you could put any permanent (or pop up) content in that gap. Any client that ignores the window manager would be suitable to use as a 'status bar'. By the way, the 'gap' height for a given font is calculable using the script in utils/gapcalc.c, courtesy of Rob, dzen's creator. -- Don 1. http://gotmor.googlepages.com/dzen

On 27/05/07, Donald Bruce Stewart

* Joe Thornber (joe.thornber@gmail.com) wrote:
On 27/05/07, Donald Bruce Stewart
wrote: http://www.cse.unsw.edu.au/~dons/code/xmonad-web/images/screen-rob-status-sp... This is a really nice setup.
Thanks :).
Which editor is that ? I presume it's
It's vim.
running in a 256 colour xterm ? If so would it be possible to give me
It's running in rxvt-unicode (urxvt) with the Zsh.
the colour config please ?
Sure, no problem. Here it comes: --[ Go ] ---[ .Xdefaults ] !! Greenish theme urxvt*color0: #000000 urxvt*color8: #666666 urxvt*color1: #b45151 urxvt*color9: #fe8686 urxvt*color2: #aece92 urxvt*color10: #97fa97 urxvt*color3: Khaki3 urxvt*color11: #efe58b urxvt*color4: #2797d8 urxvt*color12: #86cdea urxvt*color5: #aa6eaf urxvt*color13: #cb96ce urxvt*color6: #418179 urxvt*color14: #71bebe urxvt*color7: #bebebe urxvt*color15: #ffffff ---[ urxvt commandline ] urxvt -is +sb -fg '#5FBF77' -bg '#323232' -fn 'xft:DejaVu Sans Mono:pixelsize=11:antialias=false:autohinting=true' "$@" ---[ .vimrc ] " ~/.vimrc - (c) 1996-2007 by Robert Manea " General settings set nocp set digraph ek hidden ruler sc vb wmnu set noeb noet nosol set bs=2 fo=cqrt ls=2 shm=at tw=72 ww=<,>,h,l set viminfo=%,'50,\"100,:100,n~/.viminfo syn on sync fromstart set tabstop=4 softtabstop=4 shiftwidth=4 expandtab set statusline=%<%f\ %y[%{&ff}]%m%r%w%a\ %=%l/%L,%c%V\ %P set lcs=eol:·,tab:>-,trail:·,extends:>,precedes:< set cmdheight=2 set showmode set showcmd set showmatch set visualbell filetype plugin indent on set grepprg=grep\ -nH\ $* "set background=light set background=dark set cursorline "Modelines set modeline modelines=2 "------------------------------------------------------------------------ " Autocommands " vim -b : edit binary using xxd-format! " " *** USE bvi instead! " "augroup Binary " au! " au BufReadPre *.bin let &bin=1 " au BufReadPost *.bin if &bin | %!xxd " au BufReadPost *.bin set ft=xxd | endif " au BufWritePre *.bin if &bin | %!xxd -r " au BufWritePre *.bin endif " au BufWritePost *.bin if &bin | %!xxd " au BufWritePost *.bin set nomod | endif "augroup END " C and C++ prefs. augroup C-Files au! au BufNewFile,BufRead *.c,*.C,*.cc set cindent number au BufNewFile *.c 0r ~/.vim/skeleton/skel.c au FileType cpp,c,h set foldenable foldmethod=syntax au FileType cpp,c,h set comments=sl:/*,mb:**,elx:* au FileType cpp,c,h set foldcolumn=2 au FileType cpp,c,h set shiftwidth=4 "au FileType cpp,c,h syn region Block start="{" end="}" transparent fold " Abbreviations ab #d #define ab #i #include< augroup END " Turbo Assembler " augroup Assembler " au BufNewFile,BufRead *.asm,*.ASM set smartindent number " au BufNewFile *.asm,*.ASM 0r ~/.vim/skeleton/skel.asm " "au Syntax asm source $VIMRUNTIME/syntax/tasm.vim " augroup END " Latex prefs. augroup Tex-Files au! au BufNewFile,BufRead *.tex set tabstop=4 smartindent au BufNewFile *.tex 0r ~/.vim/skeleton/skel.tex au FileType tex ia fr \dst\frac au Filetype tex ia fb \fboxsep=.2in \framebox{ augroup END " Mail and News augroup Messages au! au BufRead mutt*[0-9],snd.*,.letter,.followup,.article,.article[0-9] set tw=72 formatoptions=2tcq comments=n:>,n::,n:#,n:% digraph augroup END " Perl augroup Perl au! au BufNewFile,BufRead *.pl,*.pm set smartindent number augroup END " ------------------------------------------------------------------------ " Mappings map <F3> :set paste! <Bar> set paste?<CR> imap <F3> <ESC> :set paste!<CR>i map <F4> :set number! <Bar> set number?<CR> imap <F4> <ESC>:set number!<CR>i map <F7> :set list! <bar> set list?<CR> imap <F7> <ESC>:set list!<CR>i map <F11> :set hlsearch! <Bar> set hlsearch?<CR> vmap üx s,----[]<CR>`----<ESC>Pv`]:s/^/\| /<CR>'[k$i --[ End ] Greets, Rob.

dons:
Proper support for a popup statusbar has been added -- a whole 1 line needed rewriting :-)
Another, and hopefully final, patch has landed for this, generalising the top-of-screen gap for statusbar support to arbitrary sides of the screen, and for arbitrary physical screens. You can thus have several different statusbars/docks on any edge of the screen, and on any physical screen. -- Don
participants (3)
-
dons@cse.unsw.edu.au
-
Joe Thornber
-
Robert Manea