You are not logged in.
@skrite
There's now a new option in the config to select which key to use when moving/resizing windows.
#define RESIZEMOVEKEY MOD4
All my screenshots show terminusmod.icons being used in the bar, which is a bitmap font from stlarch. Which one are you trying to use? The font can be changed in .snapwmrc and the wm updated on the run to use it.
You're just jealous because the voices only talk to me.
Offline
awesome, thanks
Offline
Is there any way to maybe bind the unfocused window border to the third color instead of the second? It's just that if you want the bar background to be black (which is what I prefer), it makes the unfocused window borders black too which doesn't work very well. I also like my terminal background to be black. Here's a screenshot:
I'm not sure if that would screw things up or if you can come up with a better solution maybe? Anyway, thanks for everything.
Offline
hi again, since my last pull, every time i start snapwm i get an error about stack smashing..
sounds fun, but will not let me start.
any ideas? i tried with the default config.h and snapwmrc (changing location of the snapwmrc file only before compile)
thanks
Offline
@ stlarch
Sure. It's about time I made setting colours a bit easier.
@ skrite
The last change on git that you would have was just the addition of the define for the key to use when resizing/moving windows which shouldn't be causing a buffer overflow issue. I've had 3 builds on two different computers here and they've worked fine, but I'm slowly learning that that isn't difinitive at all.
Can you try a git pull in a clean/new directory, copy your config.h there and then make?
You're just jealous because the voices only talk to me.
Offline
ok, tried that. new clone.
copied the config.h.def to config.h
edited the location of the snapwmrc in config.h
cp sample.snapwmrc.file ~/.snapwmrc
make
sudo make install
make clean
startx and same crash..
i will be home soon and will try it on my computer there too.
Thanks for checking in to this.
Last edited by skrite (2012-04-20 20:40:38)
Offline
update..... must have been my computer at work, tried everything here at home and it worked.
thanks
Offline
I've seperated the colours for the bar and windows in the config.h and the rc file for snapwm.
In config.h defaultcolor[] can be changed to defaultbarcolor[] 'cause the nine colours still are used the same for the bar and a new line is added for the window border colours.
static const char *defaultbarcolor[] = { "#ff0000", "#00ff00", "#0000ff", "#000000", "#ffffff", "#ffff00", "#ff00ff", "#f0f0f0", "#0f0f0f", };
static const char *defaultwincolor[] = { "#ff0000", "#00ff00", };
In the rc file THEME can be changed to BARTHEME and a new line is added for the window colours.
# lines starting with a hash are ignored
# bartheme colours are : focused desktop in switcher
# unfocused desktop in switcher and bar background
# unfocused desktop in switcher with opened windows
# the bars border
# the focused window name font in the status bar/also for external text
# the desktop switcher font/also for external text
# three more colours for the external text
# windowtheme colours are : focused window border and unfocused window border
BARTHEME #443311,#002030,#004050,#001020,#999999,#777755,#339933,#aa6644,#ffffff,
WINDOWTHEME #443311,#002030,
That should make things a little easier
@ skrite
It might still be something up with my code that your work computer being a bit more "sensitive" fails with. It'd be handy to know if something similar to snapwm builds and starts ok on that.
Cheers
You're just jealous because the voices only talk to me.
Offline
Thank you! That'll work.
Offline
Some snapwm news.
I've added a check for random and spurious ampersands in the external text that is displayed in the bar.
Probably should've done that earlier but I am slack
Cheers
You're just jealous because the voices only talk to me.
Offline
Some snapwm news.
I've seperated the font colours from the bar in the config.h and rc files.
In config.h the first four colours in defaultbarcolor[] still work the same but there's only the four of them now. There's a new line with seven colours for the text.
static const char *defaultbarcolor[] = { "#ff0000", "#00ff00", "#0000ff", "#000000", };
static const char *defaulttextcolor[] = { "#000000", "#ffffff", "#ffffff", "#ffff00", "#ff00ff", "#f0f0f0", "#0f0f0f", };
static const char *defaultwincolor[] = { "#ff0000", "#00ff00", };
Similar thing in the rc file.
# bartheme colours are :
# focused desktop in switcher
# unfocused desktop in switcher and bar background
# unfocused desktop in switcher with opened windows
# the bars border
# texttheme colours are :
# focused desktop font in switcher
# unfocused desktop font in switcher
# unfocused desktop with opened windows font in switcher
# the focused window name font in the status bar/also for external text
# three more colours for the external text
# windowtheme colours are :
# focused window border and unfocused window border
BARTHEME #443311,#002030,#004060,#001020,
TEXTTHEME #000000,#ffffff,#999999,#777755,#339933,#aa6644,#ffffff,
WINDOWTHEME #443311,#002030,
Any of the colours for the text can be used for the external text shown in the bar
so to use the first and last colours in some text would look like
&0 some text &6 some more text
Here's a pic :
Cheers
You're just jealous because the voices only talk to me.
Offline
@Ypnose, I don't mean to speak for moetunes, but yes dminiwm is maintained too. Snapwm is basically dmini with the bar. I don't know if it's exactly the same (I haven't used dmini in a while), but I think it is. The bar is pretty good in snap and adds some functionality.
Last edited by stlarch (2012-04-22 17:17:02)
Offline
Yes, snapwm is dminiwm with a bar and reloadable rc file + some extra features, since dminiwm was about staying under 1000sloc...
Snapwm e.g. has floating mode, and btw, there's also another branch of dminiwm which has floating support named larrythewindowmanager, and a dminiwm.multiview branch for dualhead...
Standard dminiwm though still floats transient windows...
Offline
Well said gentlemen.
Generally now I will add something useful to snapwm, make sure it works ok then add it to dminiwm. If I'm a bit slow with something just let me know. There was an issue with stacking mode having two windows overlapping and the mouse cursor landing where they overlap, the focus would keep swapping between the two windows very quickly. Now that is sorted it is worthwhile adding the stacking mode to dminiwm.
larrythewindowmanager came about from me starting from tinywm and having a hack, not because adding the floating mode to dminiwm would take it past 1000 loc or anything. It's unrefined and I probably won't do any more work on it.
dminiwm is also about keeping the code syntax simple and noob friendly, like it is in catwm. I know bugger all about programming and less about programming in c so I wouldn't have been able to do much with the catwm code if it wasn't noob friendly.
You're just jealous because the voices only talk to me.
Offline
I've added the stacking mode to dminiwm and fixed a couple of little things. I also have fixed click to focus in snapwm and a couple of other little things in there too.
Cheers
You're just jealous because the voices only talk to me.
Offline
One thing I've noticed is that, with SHOWNUMOPEN enabled in fullscreen mode, the popup windows in firefox don't get removed (from the number of open windows) after they're closed. If I switch desktops and come back it will show the correct number of open windows.
Last edited by stlarch (2012-04-27 15:39:13)
Offline
I tried with the pirate bay's popup ad window, firefox's save as and preference popups and the number of open windows shown worked as it should here, it showed 2 windows open in the switcher when the ad window was up and updated when the ad window was killed. If you can you tell me a website and the sort of popup it shouldn't be too hard to sort out.
Cheers
You're just jealous because the voices only talk to me.
Offline
Sorry, I should have been more specific. It happens when downloading. It's the show Downloads window that seems to be causing it. I unchecked it in firefox preferences and that seems to fix it but would be nice to keep that enabled if possible. Thanks for looking into it.
Last edited by stlarch (2012-04-28 03:21:38)
Offline
I pushed a fix to github. I just needed to move one line. It works if I use firefox's Ctrl+w to close the downloads window or snapwm's Alt+c to kill it. Let me know if it doesn't work like it should for you
Cheers
You're just jealous because the voices only talk to me.
Offline
Why soitenly! For some reason I always start talking in my Curly voice when I respond to this thread. But anyway, thanks moe once again, that fixed it. I think it's the "moe" part that triggers it.
Offline
Hey, I made a new font with just icons. It's called stlarch_font and it's in the aur. It uses the Unicode Private Use area (U+E000 - U+F8FF). I kind of made it with dwm in mind. Sunaku came up with a way to use 2 fonts in the config.h, like:
static const char font[] = "-*-terminusmodx-medium-r-*-*-12-*-*-*-*-*-*-*" "," "-*-stlarch-medium-r-*-*-13-*-*-*-*-*-*-*";
a while back. Is something like this possible in snapwm or some_sorta_bar? I've been trying a few things without success. It's a better solution, as it doesn't conflict with the original font and I can make some of the icons look a little better since they're wider. And most importantly, you can use it with any other font. For dwm, you can
echo -e '\uE015'
for a clock for example. It shows up as a block in urxvt for me but if you paste it into script, it works and shows the correct glyph. Here's a screenshot:
Anybody have any ideas? Thanks
Last edited by stlarch (2012-05-02 14:13:56)
Offline
I used the simplest way to set the the font up so it is pretty limited. The only way to show unicode characters is to print them out which can only be done in the external text. e.g. printf "\u00b0" . Improving the font handling has been on the todo list for a while and shouldn't be too hard so I can probably have it done today.
You're just jealous because the voices only talk to me.
Offline