Re: dminiwm snapwm & bipolarbar

stlarch wrote:

I wasn't sure about the dots at first, but I kind of like it now. I was just wondering if you ever figured out why my colors changed? And like I said, I noticed a slight increase in cpu usage. It's not much but it seems to be slightly higher than before and than in dwm with a similar setup. I'm not sure how to test it exactly. Running top, it seems to be causing X to use more? Anybody else have the color change? Here's my config.h if you want to test it and see if you notice something I'm missing. https://docs.google.com/file/d/0ByfkpBn … edit?pli=1Thanks. Sorry, all out of ten dollar notes.

I can change SHOWNUMOPEN back to using a number and a : if that's prefered, I don't use it here, I was just trying different things. Any suggestion for an alternative to try would be appreciated, I can't find many wm's that show the number of open windows in a bar. WebsearchI had made a change to how the colours worked and stopped &0 from working while I was at it, so see if a git pull fixes that for you. Thanks for reminding me it needed looking at. I keep swapping conky's around with the different things I work on so the colours keep changing around here. It's one of the reasons I changed some_sorta_bar to take input from a pipe.It could be drawing little rectangles for SHOWNUMOPEN that adds a bit to the resources used. It seems pretty much the same here. Maybe, now there's a buffer, XDrawImageString isn't the lightest way to go. As time permits I'll see if I can lighten the load. It's the first time I've built one of these and to be honest I'm a bit suprised it works as well as it does. It's been in slow evolution for a while

Re: dminiwm snapwm & bipolarbar

I use monocle quite a bit on this netbook, so I like having the number of open windows. I personally like the dots better but whatever you decide is ok for me. I can't think of anything better. The colors are back to where they were too. Thanks for that and everything else. I think you're doing a great job on this. It's awesome.

Re: dminiwm snapwm & bipolarbar

There was a problem with some_sorta_bar reported on github. I don't know if I've fixed it yet but I did find that if a colour was marked right before the right aligned texte.g &3&Rthe right aligned text would be added to the centered text and nothing would be shown on the right, so I fixed that [edit: for both centered and right aligned text]. If right alignment was not working as advertised a git pull should fix it.

Re: dminiwm snapwm & bipolarbar

I think I've sorted the github issue for some_sorta_bar, if anyone using it has a problem with text not showing or segfaults can you let me know. It displays one line of text, so if you have a newline in your text what's after that won't show.I have taken advantage of the buffer in some_sorta_bar and snapwm so they both should be lighter on resources now, less of a cpu spike when they update the text.

Re: dminiwm snapwm & bipolarbar

There were a couple of confusing comments on github, turns out they weren't about a real issue afaict, so that's all good. The real issues were some text on the far right not showing and having a non marking & in the right aligned text ending the text that was shown. They've been sorted now and I changed how it watches for X events so now when the bar is covered/uncovered by a window the text always shows.I always thought doing something twice would naturally add to the resources used but it turns out the double buffer drops the cpu use. Who'd've thunk it.

Re: dminiwm snapwm & bipolarbar

Been trying this for a few days and I may switch over from DWM for a while as I'm really liking it. I do have one question though about the Window title in the bar, is it meant to be aligned right and not left? Just seems weird for short titled windows to have the title near the middle of the bar, then have long ones max it out and look like they're left aligned again.

Re: dminiwm snapwm & bipolarbar

Shrak wrote:

Been trying this for a few days and I may switch over from DWM for a while as I'm really liking it. I do have one question though about the Window title in the bar, is it meant to be aligned right and not left? Just seems weird for short titled windows to have the title near the middle of the bar, then have long ones max it out and look like they're left aligned again.

Yep it's right aligned. I tried a few different ways to show the current windows' name and never found something that I thought worked well 100% of the time. I settled on having it right aligned 'cause here most of the time the windows' name is shortish and except for stlarch not wanting to show it at all no ones commented on it. I'll see if I can find a practical way of offering an option to left align it.

Re: dminiwm snapwm & bipolarbar

Re: dminiwm snapwm & bipolarbar

I was trying to make a PKGBUILD for snapwm. I'm using the one for monsterwm made by ivoarch and I just modified it a bit. I got it to work but I'm getting a warning during the build that I wasn't getting before. I'm not sure what it means exactly (I'm not a programmer). I was wondering if you could take a look at it and see what you think. I'm not sure if you want or need to modify the makefile or if something is wrong with the PKGBUILD? Monster's makefile is quite a bit different. If you would rather do it and submit it, that's fine or I can. It doesn't matter to me. Just let me know, see ya.

I wasn't real clear how to do the pkgver or md5sums for a git package? I just used todays date for the pkgver and left the md5sums like he had it ('')? And I just put 'custom' for the license.

edit:I added the line to install the README.md to /usr/share/doc/snapwm-git.

edit:hmmm, I forgot about the .snapwmrc too. I'm not sure how to handle that. If you use the default config.h., it will build and install but probably won't start because of the path (/home/pnewm/.snapwmrc)?

It almost seems more convoluted using a PKGBUILD here? I thought some might want it though? Anyway, whatever you think is best.

And could a mod please change my post count to 1,000,000 (just for a day)?

Re: dminiwm snapwm & bipolarbar

A thousand posts in a year and a half! That's showing community spirit, well done stlarch.

A PKGBUILD could be a good idea, but I'd have to change how I use github and from what I know I'll have to hard code the path for snapwmrc to something like the users home dir instead of having it as something each user can define for themselves. That shouldn't be hard to do.Anybody not happy with ~/.snapwmrc for the rc path? Maybe ~/.config/snapwmrc ?I think, since the makefile is still pretty much the same as catwm's, starting from this PKGBUILD might be best.

Re: dminiwm snapwm & bipolarbar

I changed the RC FILE from being a path declared in the config.h to $HOME/.config/snapwm/rc.conf and put a generic config.h.def file in github instead of having it as I use config.h. That should help with a PKGBUILD I think.

I'm not sure if what they mean or if it's important.I made a few changes to the PKGBUILD too. The || return 1 part isn't needed anymore so I removed that, and added PREFIX=/usr to the make install line (I think that's the way it should be) and just cleaned up a few things to make it more consistent. I changed the description just to maybe help people find it easier when searching? And I added the line to install the README to /usr/share/doc/snapwm. I'll go ahead and submit it to the aur. If you would rather take it over, just let me know and I'll hand it over.

I was trying to figure out how to cp the rc.conf to $HOME/.config/snapwm if one doesn't exist already. I was trying to use an install.snapwm-git but I can't seem to get it right. I'll keep trying and see if I can come up with something. But I think it's ok for now. It starts ok, you just get a warning. I think it's pretty self explanatory.

Re: dminiwm snapwm & bipolarbar

@stlarch the PKGBUILD works fine, cheers for that, keep up the good work About the rc.conf, I know nothing about makepkg but if the Readme can be installed somewhere why not copy the sample.rc.conf to ~/.config/snapwm and have a msg line about it? That won't mess with an existing rc.conf and creates the snapwm directory in .config if it's not already there.About the errors, I backed of the gcc optimizations in the makefile and that removed the [-Warray-bounds] warnings. The [-Wmaybe-uninitialized] warning is ok as I've set things up so 'c' doesn't get initilized if it already exists. I'll see if I can find a different method maybe. I guess the compiler doesn't check all the calls to the function and who can blame it... I dunno what's different between make and makepkg with the gcc options I'm just rolling with it for now.

Re: dminiwm snapwm & bipolarbar

^ You need snapwm-git.install. AFAIK you can't directly copy it, but just give the user a hint on how to. That's how most packages do it

Yeah, I meant snapwm-git.install not install.snapwm-git (it was late when I wrote that )

moetunes wrote:

About the rc.conf, I know nothing about makepkg but if the Readme can be installed somewhere why not copy the sample.rc.conf to ~/.config/snapwm and have a msg line about it? That won't mess with an existing rc.conf and creates the snapwm directory in .config if it's not already there.

Yeah, I thought of that but it would actually create ~/.config/snapwm-git/ instead of ~/.config/snapwm if I used something like

.So, I think the right thing to do for now is install the sample.rc.conf to /usr/share/snapwm-git and let the user create the directory and copy the file. I included an install with a nice message telling the user what to do. I'll try to add something to the wiki later reflecting the changes. Cheers

Re: dminiwm snapwm & bipolarbar

I seem to have a problem with moving windows to a new tag, it always crashes X. But only started recently on my laptop, desktop is still working perfectly as it should.

You used the PKGBUILD?Here if it is built with make it works like it always has but with makepkg there's that problem with

snapwm.c:335:21: warning: ‘c’ may be used uninitialized in this function [-Wmaybe-uninitialized]

which I thought was ok but seems to lead to the crash when moving windows between desktops.Moving down a couple of directories and running make clean && make then moving back up a couple of directories and running makepkg -f and then installing has it working fine.Don't use makepkg to make the binary atm.

Re: dminiwm snapwm & bipolarbar

Crunch wrote:

Used Git and Make as per the wiki, didn't know there was a pkgbuild made for it yet.

I just cloned the repo and built and ran it and it was fine here, but since it is inconsistant I'll change the approach for that function. You said "But only started recently on my laptop", when roughly was recently?