[dev] wmii - how to put bar on top

2011-01-15 Thread Michal Hajek
Hello, 

I am using wmii and now I need to place bar on top instead of bottom of 
my screen. How do I do that? 


Best regards




Re: [dev] [bug] wmii segfaults on sudo wireshark

2011-01-15 Thread Tom Kazimiers
Hi,

On Fri, Jan 14, 2011 at 04:29:00PM +0100, Marc Weber wrote:
> Excerpts from dtk's message of Fri Jan 14 16:13:34 +0100 2011:
> > Can anybody confirm this behaviour?
> No.

Me neither, here it works fine. I am running Arch 64bit, wireshark
1.4.3, Lua 5.1.4 and Simple as display manager (if of interest).

> Putting wmii into a loop:
> while :; do
>   wmii
> done
> helps not loosing state somehow. Here it recovers tags etc.

I use sth. similar from Sunaku's wmiirc readme file:

while true; do
ck-launch-session dbus-launch wmii
xmessage 'Restart the Window Manager?' \
 -buttons 'Yes:1,No:0' -center \
 -default 'Yes' -timeout 30\
&& break
done

This doesn't force an automatic restart upon quitting (you can select
"No").

But anyhow, from time to time I encounter a crash of which I don't
know from where it comes, too. I should look out for a backtrace, too.

Bye,
Tom


pgpnGzR8MmwBg.pgp
Description: PGP signature


Re: [dev] wmii - how to put bar on top

2011-01-15 Thread Julien Jehannet
2011/1/15 Michal Hajek :
> I am using wmii and now I need to place bar on top instead of bottom of my
> screen. How do I do that?

It depends on your wmii version but try:

   wmiir xwrite /ctl bar on top

Or just give a second change to the project homepage...

http://hg.suckless.org/wmii/raw-file/tip/doc/wmii.pdf
"Archival wmii documentation

 Here, for archival purposes, are the guides to historical releases of wmii.
 They have been superseded by doc/wmii.pdf in the standard distribution."
 http://hg.suckless.org/wmii/raw-file/tip/doc/wmii.pdf>

Yes, text could be more visible indeed.

Best regards,



Re: [dev] wmii - how to put bar on top - SOLVED

2011-01-15 Thread Michal Hajek


* Julien Jehannet (jul...@smaf.org) [110115 18:00]:

  wmiir xwrite /ctl bar on top


works like a charm, thanks!




[dev] write to 9p mount problem

2011-01-15 Thread Michal Hajek
Hi, 


I have mounted wmii dir using 9p on gentoo machine, so mount shows:

/tmp/ns.michal.:0/wmii on /mnt/wmii type 9p 
(rw,trans=unix,uname=root,noextend,dfltgid=0,dfltuid=0)

and I can see the mount:
# ls -la /mnt/wmii
total 2
dr-x-- 1 root root   0 Jan 15 20:04 client
-rw--- 1 root root  48 Jan 15 20:04 colrules
-rw--- 1 root root   0 Jan 15 20:04 ctl
-rw--- 1 root root   0 Jan 15 20:04 event
-rw--- 1 root root 441 Jan 15 20:04 keys
drwx-- 1 root root   0 Jan 15 20:04 lbar
drwx-- 1 root root   0 Jan 15 20:04 rbar
dr-x-- 1 root root   0 Jan 15 20:04 tag
-rw--- 1 root root  19 Jan 15 20:04 tagrules

or 
# cat /mnt/wmii/ctl

bar on bottom
border 1
colmode stack
focuscolors #00 #81654f #00
font -*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*
fontpad 0 0 0 0
grabmod Mod1
incmode squeeze
normcolors #00 #c1c48b #81654f
view 3

However, when I want to write to ctl to change something, I cannot. 

For example if I do 
# cat test > /mnt/wmii/ctl 
bash: /mnt/wmii/ctl: Unknown error 526


And dmesg shows: 
p9_errstr2errno: server reported unknown error function not implemented


So how I am supposed to work with 9p mounts? Did I do something wrong? 





Re: [dev] write to 9p mount problem

2011-01-15 Thread Kris Maglione

On Sat, Jan 15, 2011 at 08:10:46PM +0100, Michal Hajek wrote:
Hi, 


I have mounted wmii dir using 9p on gentoo machine, so mount shows:

/tmp/ns.michal.:0/wmii on /mnt/wmii type 9p 
(rw,trans=unix,uname=root,noextend,dfltgid=0,dfltuid=0)

and I can see the mount:
# ls -la /mnt/wmii
total 2
dr-x-- 1 root root   0 Jan 15 20:04 client
-rw--- 1 root root  48 Jan 15 20:04 colrules
-rw--- 1 root root   0 Jan 15 20:04 ctl
-rw--- 1 root root   0 Jan 15 20:04 event
-rw--- 1 root root 441 Jan 15 20:04 keys
drwx-- 1 root root   0 Jan 15 20:04 lbar
drwx-- 1 root root   0 Jan 15 20:04 rbar
dr-x-- 1 root root   0 Jan 15 20:04 tag
-rw--- 1 root root  19 Jan 15 20:04 tagrules

or # cat /mnt/wmii/ctl
bar on bottom
border 1
colmode stack
focuscolors #00 #81654f #00
font -*-fixed-medium-r-*-*-13-*-*-*-*-*-*-*
fontpad 0 0 0 0
grabmod Mod1
incmode squeeze
normcolors #00 #c1c48b #81654f
view 3

However, when I want to write to ctl to change something, I cannot. 

For example if I do # cat test > /mnt/wmii/ctl bash: /mnt/wmii/ctl: 
Unknown error 526


And dmesg shows: p9_errstr2errno: server reported unknown error function 
not implemented


So how I am supposed to work with 9p mounts? Did I do something wrong? 


Use >> rather than >. The virtual files don't support 
truncation, which > tries to do.


--
Kris Maglione

I have always found that plans are useless, but planning is
indispensable.
--Dwight Eisenhower




Re: [dev] write to 9p mount problem - SOLVED

2011-01-15 Thread Michal Hajek

* Kris Maglione (maglion...@gmail.com) [110115 20:47]:

Use >> rather than >. The virtual files don't support 
truncation, which > tries to do.


oh, I see. You are right, ">>" works fine. Thank you!