Re: [dev] wmii status bar config
Also, you can comment out the status() {} stuff in wmiirc_local or wmii.rc, and put a status command somewhere in $PATH, for easier editing. On 3/17/11, Le Tian wrote: > thanks a lot, that is better, cause my wmiirc_local is empty) > I use xbindkeys for hotkeying - didn't want to mess with my wmii > scattered-all-over-the-place files. > I'll try it out. >
Re: [dev] [wmii] Chromium always starts as a floating window
Thanks! That works like a charm - it's always the simple things... Out of curiosity, what is it about that setting that causes wmii to make it float initially? It seems as though wmii ignores the "Hide system title bar and use compact borders" setting and surrounds it with the wmii border regardless, so why isn't wmii also consistent with the floating behavior? -Aaron On Thu, Mar 17, 2011 at 7:12 PM, Le Tian wrote: > its quite simple, > 1. start chromium > 2. goto preferences > 3. goto personal stuff > 4. in appearance choose use GTK-theme or "use system title bar and borders". > 5. thats it > that will make chromium start with system borders that are managed by wmii, > so browser will not start in a floating window.
Re: [dev] wmii status bar config
thanks a lot, that is better, cause my wmiirc_local is empty) I use xbindkeys for hotkeying - didn't want to mess with my wmii scattered-all-over-the-place files. I'll try it out.
Re: [dev] [wmii] Chromium always starts as a floating window
On Fri, Mar 18, 2011 at 01:12:04AM +0200, Le Tian wrote: its quite simple, 1. start chromium 2. goto preferences 3. goto personal stuff 4. in appearance choose use GTK-theme or "use system title bar and borders". 5. thats it that will make chromium start with system borders that are managed by wmii, so browser will not start in a floating window. Ah, I knew there was a reason it didn't try to start floating for me. -- Kris Maglione Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. --Rich Cook
Re: [dev] wmii status bar config
On Thu, 17 Mar 2011, Benjamin R. Haskell wrote: On Thu, 17 Mar 2011, Le Tian wrote: Hi again, I'm trying to find out how to make a custom status bar in wmii. I have found "status()" lines in /home/wmii.rc file(hmmm what is it doing here?!) Maybe your '$HOME' env var was unset or improperly set at some point? these is what I found: status() { Action status if wmiir remove /rbar/status 2>/dev/null; then echo "$WMII_NORMCOLORS" | wmiir create /rbar/status while status | wmiir write /rbar/status; do Action status & I can barely understand it. Posting a 'grep' without context is pretty worthless. The only section you should care about is the part starting at 'status() {'. So if anyone had an experience in setting up his custom bar, could you please tip me how to do it, cause I don't know where to look else. Look in the actual file, not the grep, and you should see something like: # Status Bar Info status() { echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date) } (I think that's the default for some version or another...) The point is that whatever's in the function is what gets run each time the status is updated. If the custom script you mentioned in the first post is called do-the-thing, and it's in your $PATH and executable, just change those four lines to: # Status Bar Info status() { do-the-thing } -- Best, Ben Tian, Here is a copy of my wmiirc_local including the status bar detail (the variables at the top refer to key-bindings I set in the main wmiirc so that all users get access to them and can customise the apps they use, I also have autocutsel launch when I login so that parcellite and the term clipboards are kept in sync # MODKEY=Mod4 WEB_BROWSER=jumanji IRC_CLIENT="uxterm-256color" -e weechat-curses EMAIL_CLIENT="uxterm-256color" -e alpine #IRC_CLIENT="xterm +bdc -ai -vb +dc -bg black -fg green -e weechat-curses" #EMAIL_CLIENT="xterm +bdc -ai -vb +dc -bg black -fg green -e alpine" eval volti & eval net_applet & eval parcellite & # Personised Colour export WMII_NORMCOLORS='#bbc5ff #010101 #285577' export WMII_FOCUSCOLORS='#a0ff00 #010101 #00' export WMII_BACKGROUND='#00' #export WMII_BACKGROUND='#010101' #export WMII_FONT='-*-Sans-medium-r-*-*-9-*-*-*-*-*-*-*' export WMII_FONT='-*-liberation sans-medium-r-*-*-10-*-*-*-*-*-iso10646-*' export WMII_TERM="uxterm -bg black -fg green" #export WMII_TERM=st # Status Bar Info for thinkpad status() { echo -n label ' Wlan0:' $(/sbin/iwconfig wlan0 | sed 's/ /\n/g' | grep Quality) 'IP:' $(/sbin/ifconfig wlan0 | grep 'inet addr' | sed 's/\s*inet addr://' | sed 's/ .*$//') '|' 'Bat:' $(acpi -b | sed 's/\s*Battery 0:\s*[a-zA-Z]*, //' | sed 's/,.*$//')' |' ' CPU:' $(cat /proc/cpuinfo | grep 'cpu MHz' | sed 's/.*: //g; s/\..*//g;')'MHz ''Temp:'$(awk '{print $2}' /proc/acpi/ibm/thermal)C' | ''Vol:' $(aumix-text -q | grep vol | sed 's/vol [0-9]*, //' | sed 's/, P//')' | ' $(date +"%A %d %B %H:%M ") } #-- Which looks like this: http://postimage.org/image/2o9ibfu5g/ I hope this helps you out. Jase
Re: [dev] [wmii] Chromium always starts as a floating window
its quite simple, 1. start chromium 2. goto preferences 3. goto personal stuff 4. in appearance choose use GTK-theme or "use system title bar and borders". 5. thats it that will make chromium start with system borders that are managed by wmii, so browser will not start in a floating window.
Re: [dev] [wmii] Chromium always starts as a floating window
On Thu, Mar 17, 2011 at 05:39:03PM -0400, Aaron Lindsay wrote: Hi all, I'm using wmii under Arch, and have found that whenever I start Chromium (version 10.0.648.133) (whether by Mod-p or by command line) it is spawned as a floating window in wmii. I have installed both the default from the Arch package repository as well as the latest version from mercurial, and double- and triple-checked that none of my tag rules could be setting it to be a floating window. Every other application starts normally as a stacked window. I cannot find a way to explicitly set a window as non-floating via tag rules (i.e., the inverse of ~). I assume this is by design because windows should start as non-floating by default. Has anyone else encountered this problem, or have any insight into it? I suspect that on 3.9, you'd want: /^chrom/ -> -~ In tip, it'd be: /^chrom/ floating=off -- Kris Maglione Good judgement comes from experience, and experience comes from bad judgement. --Fred Brooks
[dev] [wmii] Chromium always starts as a floating window
Hi all, I'm using wmii under Arch, and have found that whenever I start Chromium (version 10.0.648.133) (whether by Mod-p or by command line) it is spawned as a floating window in wmii. I have installed both the default from the Arch package repository as well as the latest version from mercurial, and double- and triple-checked that none of my tag rules could be setting it to be a floating window. Every other application starts normally as a stacked window. I cannot find a way to explicitly set a window as non-floating via tag rules (i.e., the inverse of ~). I assume this is by design because windows should start as non-floating by default. Has anyone else encountered this problem, or have any insight into it? Some info about my setup (let me know if more would be helpful to diagnose the problem): $ wmiir read /rules /.*/ -> sel $ wmii -v wmii-3.9.2, ©2010 Kris Maglione Thanks! -Aaron
Re: [dev] wmii status bar config
On Thu, 17 Mar 2011, Le Tian wrote: Hi again, I'm trying to find out how to make a custom status bar in wmii. I have found "status()" lines in /home/wmii.rc file(hmmm what is it doing here?!) Maybe your '$HOME' env var was unset or improperly set at some point? these is what I found: status() { Action status if wmiir remove /rbar/status 2>/dev/null; then echo "$WMII_NORMCOLORS" | wmiir create /rbar/status while status | wmiir write /rbar/status; do Action status & I can barely understand it. Posting a 'grep' without context is pretty worthless. The only section you should care about is the part starting at 'status() {'. So if anyone had an experience in setting up his custom bar, could you please tip me how to do it, cause I don't know where to look else. Look in the actual file, not the grep, and you should see something like: # Status Bar Info status() { echo -n $(uptime | sed 's/.*://; s/,//g') '|' $(date) } (I think that's the default for some version or another...) The point is that whatever's in the function is what gets run each time the status is updated. If the custom script you mentioned in the first post is called do-the-thing, and it's in your $PATH and executable, just change those four lines to: # Status Bar Info status() { do-the-thing } -- Best, Ben
Re: [dev] wmii status bar config
Hi again, I'm trying to find out how to make a custom status bar in wmii. I have found "status()" lines in /home/wmii.rc file(hmmm what is it doing here?!) these is what I found: status() { Action status if wmiir remove /rbar/status 2>/dev/null; then echo "$WMII_NORMCOLORS" | wmiir create /rbar/status while status | wmiir write /rbar/status; do Action status & I can barely understand it. So if anyone had an experience in setting up his custom bar, could you please tip me how to do it, cause I don't know where to look else.