You are not logged in.

#201 2012-04-20 06:37:07

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,013

Re: dminiwm snapwm & bipolarbar

@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

#202 2012-04-20 06:38:26

skrite
Member
Registered: 2009-09-07
Posts: 160

Re: dminiwm snapwm & bipolarbar

awesome, thanks

Offline

#203 2012-04-20 17:17:07

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: dminiwm snapwm & bipolarbar

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:
tZGc0dQ
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

#204 2012-04-20 19:40:14

skrite
Member
Registered: 2009-09-07
Posts: 160

Re: dminiwm snapwm & bipolarbar

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

#205 2012-04-20 20:20:18

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,013

Re: dminiwm snapwm & bipolarbar

@ 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

#206 2012-04-20 20:40:06

skrite
Member
Registered: 2009-09-07
Posts: 160

Re: dminiwm snapwm & bipolarbar

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

#207 2012-04-20 21:35:10

skrite
Member
Registered: 2009-09-07
Posts: 160

Re: dminiwm snapwm & bipolarbar

update..... must have been my computer at work, tried everything here at home and it worked.
thanks

Offline

#208 2012-04-20 22:25:03

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,013

Re: dminiwm snapwm & bipolarbar

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 wink

@ 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. smile

Cheers


You're just jealous because the voices only talk to me.

Offline

#209 2012-04-21 03:31:22

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: dminiwm snapwm & bipolarbar

Thank you! That'll work.

Offline

#210 2012-04-21 21:02:23

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,013

Re: dminiwm snapwm & bipolarbar

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 tongue

Cheers


You're just jealous because the voices only talk to me.

Offline

#211 2012-04-22 00:10:54

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,013

Re: dminiwm snapwm & bipolarbar

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 :
tZGdwZA

Cheers


You're just jealous because the voices only talk to me.

Offline

#212 2012-04-22 03:39:00

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: dminiwm snapwm & bipolarbar

Awesome. It's pretty slick now. smile

Here's a screenshot:    tZGdyMw

Last edited by stlarch (2012-04-22 04:09:15)

Offline

#213 2012-04-22 15:47:43

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: dminiwm snapwm & bipolarbar

Hi there,
dminiwm is still updated with new things or I have to use snapwm instead?


Github -- My terminal font Envypn

Offline

#214 2012-04-22 17:16:25

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: dminiwm snapwm & bipolarbar

@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

#215 2012-04-22 17:43:14

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 664

Re: dminiwm snapwm & bipolarbar

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

#216 2012-04-24 20:30:39

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,013

Re: dminiwm snapwm & bipolarbar

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

#217 2012-04-27 08:35:43

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,013

Re: dminiwm snapwm & bipolarbar

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

#218 2012-04-27 15:29:20

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: dminiwm snapwm & bipolarbar

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

#219 2012-04-27 20:37:20

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,013

Re: dminiwm snapwm & bipolarbar

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

#220 2012-04-28 03:19:48

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: dminiwm snapwm & bipolarbar

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

#221 2012-04-28 10:12:33

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,013

Re: dminiwm snapwm & bipolarbar

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 smile

Cheers


You're just jealous because the voices only talk to me.

Offline

#222 2012-04-28 14:09:01

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: dminiwm snapwm & bipolarbar

Thanks for you infos, guys. Glad to see there is kind people.


Github -- My terminal font Envypn

Offline

#223 2012-04-28 16:03:37

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: dminiwm snapwm & bipolarbar

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. tongue

Offline

#224 2012-05-02 01:16:20

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,250

Re: dminiwm snapwm & bipolarbar

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:
tZGxhNw
Anybody have any ideas? Thanks

Last edited by stlarch (2012-05-02 14:13:56)

Offline

#225 2012-05-02 20:00:09

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,013

Re: dminiwm snapwm & bipolarbar

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

Board footer

Powered by FluxBB