You are not logged in.

#51 2011-12-02 09:10:20

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

Re: dminiwm snapwm & bipolarbar

It's not suprising, with me being me, that I've been working on everything except what I said I would. If there is an open window on an unfocused desktop then in the desktop switcher that desktop gets a # and the text in the statusbar is now right aligned.
Here's a pic :
tYmpzdQ

I've worked through the newly added code and crossed some i's and dotted some t's so the whole experience should be smoother. wink

Cheers

Last edited by moetunes (2012-02-16 19:25:39)


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

Offline

#52 2011-12-04 03:53:04

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

Re: dminiwm snapwm & bipolarbar

Minor addition: The desktops in the desktop switcher can be labeled in the config file.

static const char *desktop_label[] = { ".", ":", ".:", "::", ".::", ":::", };
// static const char *desktop_label[] = { "1", "2", "3", "4", "5", "6", };

Here's a pic :
tYmt0Nw
When I get a bit of free time I'll shift them to the rc file.

edit: Forgot to mention there's a bit of an animation effect when you mouse over the desktop switcher.

Cheers

Last edited by moetunes (2012-02-16 19:26:08)


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

Offline

#53 2011-12-06 02:24:18

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

Re: dminiwm snapwm & bipolarbar

I've moved the desktop labels to the rc file and simplified the code for it a bit. The rc file now looks like

THEME #664422,#003040,#006070,#555555,#ffffff,
DESKTOP_NAMES .,:,.:,::,.::,:::,
FONTNAME "-*-clean-*-*-*-*-14-*-*-*-*-*-*-*"

Cheers


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

Offline

#54 2011-12-07 02:47:53

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

Re: dminiwm snapwm & bipolarbar

There's a sixth colour now, it's for the font in the desktop switcher. I've added some error checking and fixed up how the fonts get displayed, so it works fine here using dina or terminus or... smile

Cheers


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

Offline

#55 2011-12-07 05:40:07

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: dminiwm snapwm & bipolarbar

I am having a problem with dminiwm where is I am in monocle mode, have multiple urxvt windows open, switch to another workspace and then switch back, I sometimes get a nasty flashing effect where all the open windows seem to take turns getting focused. I can only get out of it by switching to another layout mode.

Is this likely to be fixed? I'm not sure if you are done with dminiwm, but I think I prefer it to snapwm for its minimalism.

Offline

#56 2011-12-07 08:38:06

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

Re: dminiwm snapwm & bipolarbar

hellomynameisphil wrote:

I am having a problem with dminiwm where is I am in monocle mode, have multiple urxvt windows open, switch to another workspace and then switch back, I sometimes get a nasty flashing effect where all the open windows seem to take turns getting focused. I can only get out of it by switching to another layout mode.

Is this likely to be fixed? I'm not sure if you are done with dminiwm, but I think I prefer it to snapwm for its minimalism.

Snapwm is experimental; just something to play with and make noise about at this stage. I'll see what's up with urxvt in monocle/fullscreen mode. Are you using urxvtd/urxvtc or just urxvt windows?

Cheers


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

Offline

#57 2011-12-07 09:08:18

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

Re: dminiwm snapwm & bipolarbar

@ hellomynameisphil
I couldn't reproduce you're problem and I tried a couple of different ways. With the urxvtd daemon running I opened nine urxvtc's in fullscreen mode and changed to various desktops opening different windows along the way and changing back to the desktop with the urxvtc's worked fine. Same when I commented out the line in .xinitrc that starts the urxvtd daemon and booted into dminiwm and did it all again. Here's a little bit about my setup starting with urxvt's .Xdefaults settings.

URxvt*termName: rxvt-256color
!URxvt*termName: rxvt-unicode

!--[trans and fg/bg]--!
URxvt*fadeColor: black
URxvt*transparent: true
!URxvt*shading: 102
URxvt*depth:24
URxvt*background: #000000
URxvt*foreground: #dadada
URxvt*borderless: 0

!--[font]--! 
!URxvt*font: -*-clean-*-*-*-*-12-*-*-*-*-*-*-u
URxvt*font: xft:Liberation Mono:pixelsize=10:autohint=true
!URxvt*boldFont: -*-terminus-bold-*-*-*-12-*-*-*-*-*-*-u
!URxvt*font:			xft:DejaVu Sans Mono:pixelsize=8:autohint=true
!URxvt*boldFont:			xft:DejaVu Sans Mono:pixelsize=8:bold:autohint=true
!URxvt*italicFont:		xft:DejaVu Sans Mono:pixelsize=8:italic:autohint=true
!URxvt*boldItalicFont:		xft:DejaVu Sans Mono:pixelsize=8:bold:italic:autohint=true

!--[scrolling]--! 
URxvt*scrollBar: false
URxvt*saveLines: 500

!--[tabs]--! 
!URxvt*perl-ext-common: default,tabbed

!--[cursor]--!
URxvt*cursorBlink: true

!--[Colours]--! 
URxvt*cursorColor: #FFAF00

!--[urls]--!
urxvt*perl-lib:        /usr/lib/urxvt/perl/
urxvt*perl-ext-common: default,matcher,searchable-scrollback
urxvt*urlLauncher:     /usr/bin/firefox
urxvt*matcher.button:  1
! Catch ugly URLs
urxvt*cutchars:        '"'()*<>[]{|}

!black
 URxvt.color0:  #111111
 URxvt.color8:  #666666
!red
 URxvt.color1:  #cb4344
 URxvt.color9:  #ED6975
!green
 URxvt.color2:  #43Af49
 URxvt.color10: #B8ED69
!yellow
 URxvt.color3:  #AfcF42
 URxvt.color11: #EDE169
!blue
 URxvt.color4:  #5755a8
 URxvt.color12: #69B8ED
!magenta
 URxvt.color5:  #A94983
 URxvt.color13: #ED69B8
!cyan
 URxvt.color6:  #49A99F
 URxvt.color14: #69EDE1
!white
 URxvt.color7:  #AAAAAA
 URxvt.color15: #ffffff

In .xinitrc I have

urxvtd -q -f -o

to start the daemon and I'm using onboard intel graphics

 7:01:48 pm
 [ ~ ]$ lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)

I don't know how that compares with what you have but if you try some of that or let me know what you're working with we should be able to sort it out.

Cheers


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

Offline

#58 2011-12-07 12:12:42

rich_o
Member
Registered: 2008-07-28
Posts: 49

Re: dminiwm snapwm & bipolarbar

@hellomynameisphil

I usually use a lot of urxvt windows (plain urxvt, no daemons) in fullscreen mode, but i never had your problem. Do you have any idea, under which exact curcumstances this occures, "sometimes" is rather vague.

Offline

#59 2011-12-07 15:57:08

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: dminiwm snapwm & bipolarbar

I am trying to reproduce the bug now too, and as Murphy's law of bug reporting would have it, I can't isolate this bug anymore! I will do some more work on trying to figure out the specific conditions under which it happens for me.

Offline

#60 2011-12-07 19:48:24

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

Re: dminiwm snapwm & bipolarbar

I follow a general rule that if a problem is intermittent it's hardware related 'cause software doesn't change unless you change it.

Cheers


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

Offline

#61 2011-12-07 21:55:03

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

Re: dminiwm snapwm & bipolarbar

In the maprequest function I had XFree(temp) after the return so of course it did nothing....
I've fixed that now wink and memory use is a little bit better over time.

Cheers


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

Offline

#62 2011-12-07 22:59:34

stalphonzo
Member
Registered: 2009-10-01
Posts: 8

Re: dminiwm snapwm & bipolarbar

Hey moetunes,
you really did a great job.
Unfortunately I have the same issue hellomynameisphil reported.
How to produce the flickering:
In monocle layout
1. open any application (xterm, urxvt, dwb, gvim,...) on workspace 1
2. open a second application on ws 1
3. focus the first opened application
4. switch to ws 2
5. switch to ws 1
watch the flickering.

Here the issue occurs with snapwm and dminiwm.
PS: I'm also using the onboard ntel graphics

Offline

#63 2011-12-07 23:06:15

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

Re: dminiwm snapwm & bipolarbar

stalphonzo wrote:

Hey moetunes,
you really did a great job.
Unfortunately I have the same issue hellomynameisphil reported.
How to produce the flickering:
In monocle layout
1. open any application (xterm, urxvt, dwb, gvim,...) on workspace 1
2. open a second application on ws 1
3. focus the first opened application
4. switch to ws 2
5. switch to ws 1
watch the flickering.

Here the issue occurs with snapwm and dminiwm.
PS: I'm also using the onboard ntel graphics

I had the flickering too doing that. Looking into it now.

Cheers


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

Offline

#64 2011-12-08 00:40:40

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

Re: dminiwm snapwm & bipolarbar

I found a fix for the flickering windows. I added a check in change_desktop() to not map the windows if mode == 1 and in tile() if mode == 1 it finds the current window and only maps that fullscreen. It's not perfect though. If you send a window to another desktop when only two windows are open in fullscreen mode, when you change back to the desktop with only the one window in fullscreen mode it doesn't get mapped. Haven't found out how to fix that yet.

Cheers


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

Offline

#65 2011-12-08 03:49:15

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

Re: dminiwm snapwm & bipolarbar

Just pushed a proper fix to github. If there is an issue with it or anything else feel free to let me know smile

edit: Proper fix = as best as I can test things, doing things in fullscreen mode or going into/out off fullscreen mode works fine but I wouldn't have covered all use cases...
I also fixed up fullscreen mplayer when there's a top panel/bar.

Cheers

Last edited by moetunes (2011-12-08 04:37:17)


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

Offline

#66 2011-12-08 18:41:22

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: dminiwm snapwm & bipolarbar

Thanks for fixing that bug. Unfortunately, killing that first bug seems to have created a second one. Under certain conditions, windows are placed so that they appear on all workspaces, but unfocused, and they only seem to accept input if there is no other window in the workspace. Other windows in the workspace tile around these phantom windows, but the phantom windows aren't actually where the other windows think they are in the layout.

Here is a use case with which I seem to be able to reproduce it reliably:

switch to vertical mode
have two terminal windows open
use feh to open an image (I do this by typing 'feh [name of image]' in one of my terminal windows)
switch to monocle mode
focus feh window if not focused
press q to close feh window
switch back to vertical mode

If you don't have feh installed or don't want to install it, I'll see if there's another app which produces this behaviour.

Offline

#67 2011-12-08 20:18:31

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

Re: dminiwm snapwm & bipolarbar

hellomynameisphil wrote:

Thanks for fixing that bug. Unfortunately, killing that first bug seems to have created a second one. Under certain conditions, windows are placed so that they appear on all workspaces, but unfocused, and they only seem to accept input if there is no other window in the workspace. Other windows in the workspace tile around these phantom windows, but the phantom windows aren't actually where the other windows think they are in the layout.

Here is a use case with which I seem to be able to reproduce it reliably:

switch to vertical mode
have two terminal windows open
use feh to open an image (I do this by typing 'feh [name of image]' in one of my terminal windows)
switch to monocle mode
focus feh window if not focused
press q to close feh window
switch back to vertical mode

If you don't have feh installed or don't want to install it, I'll see if there's another app which produces this behaviour.

I installed feh to see what the problem was and try and fix the issue but I couldn't reproduce it. I first tried with your use case, then any other use case I could think of with feh involved but things always happened as expected here. Can anybody else reproduce this? Just because I can't reproduce it doesn't mean I don't think it happens, it just makes it hard for me to try and fix it. I worked hard to not have ghost windows appear and I'd like to make sure they don't smile . Feh has some config files, could a setting you have in them have something to do with this? If you post your feh configs I could see what happens when I use them.

Cheers


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

Offline

#68 2011-12-08 21:20:08

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

Re: dminiwm snapwm & bipolarbar

I never normally use fullscreen mode so it never caused me any grief so I left it as it was in catwm. Apologies for that. I had no idea anyone else was using it either tongue so I'll spend a few days using it to make sure it works as well as the rest of dminiwm wink
After the latest fix, in fullscreen mode if the second last app was closed the last app wasn't getting mapped. I've fixed that and pushed it to github.

Cheers


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

Offline

#69 2011-12-09 02:26:09

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: dminiwm snapwm & bipolarbar

Fullscreen is my default layout as I am on a netbook.

I just cloned 0.2.3 from github and the problem seems to be fixed now. Thanks!

I suspect my previous use case might not have been working for you because I use attach aside and I'm guessing you don't. But happily, that's a moot point now.

Offline

#70 2011-12-09 04:04:03

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

Re: dminiwm snapwm & bipolarbar

hellomynameisphil wrote:

Fullscreen is my default layout as I am on a netbook.

I just cloned 0.2.3 from github and the problem seems to be fixed now. Thanks!

I suspect my previous use case might not have been working for you because I use attach aside and I'm guessing you don't. But happily, that's a moot point now.

I'm glad it's been sorted then smile

Cheers


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

Offline

#71 2011-12-11 22:54:39

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

Re: dminiwm snapwm & bipolarbar

I've used fullscreen mode for a few days now and it seems to be working as advertised, let me know if it isn't smile
I did something, I haven't found what yet, to make snapwm crash after rereading the rc file then opening another window. The changes to the rc file are updated fine so you can see what your edits do but if you try it just be aware of that. It's holiday time here so it might be a little while before I get that sorted wink

Cheers


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

Offline

#72 2011-12-13 09:39:01

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: dminiwm snapwm & bipolarbar

Hi everyone, I've been working on dminiwm lately on my own repo.
I've been pushing many changes and fixes. If you're interested I can list them here or just take a look at the commits.

Currently:

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C                                1             91             40            661
C/C++ Header                     1              8             22             57
-------------------------------------------------------------------------------
SUM:                             2             99             62            718
-------------------------------------------------------------------------------

I'd be fun if one would try it. However you may need to start with the a new config.
Take a look at config.def.h , config.h is my personal configuration.

thanks pyknite for catw,
thanks suckless for dwm
thanks moetunes for dminiwm
and cookies to me xD

PS: I see moetunes got switch_mode already wink


EDIT: renamed to monsterwm

Last edited by c00kiemon5ter (2011-12-14 09:26:44)


.:[ git me! ] :.

Offline

#73 2011-12-13 20:41:35

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

Re: dminiwm snapwm & bipolarbar

@ c00kiemon5ter
Looks like you've saved a few lines there, well done smile I didn't know you were working so hard on this. In fixing up the fullscreen mode I used the same 5 lines of code in three out of four mode switching functions which I didn't like so I fixed it. It had nothing to do with your work wink
dminiwm ships with the same license as catwm so should be treated the same at the top of your files.

edit: @ c00kiemon5ter again smile If you are going to have your own release it might save some confusion if you rename it.

Cheers

Last edited by moetunes (2011-12-13 21:13:04)


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

Offline

#74 2011-12-14 05:28:24

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: dminiwm snapwm & bipolarbar

The new switch_mode functions are crashing dminiwm for me. Here is my config.h, which is based on my config from older versions.

 /* config.h for dminiwm.c [ 0.2.3 ]
 *
 *  Started from catwm 31/12/10
 *  Bad window error checking and numlock checking used from
 *  2wm at http://hg.suckless.org/2wm/
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef CONFIG_H
#define CONFIG_H

#define CLEANMASK(mask) (mask & ~(numlockmask | LockMask))

/* Mod (Mod1 == alt) (Mod4 == Super/windows) */
#define MOD1            Mod1Mask
#define MOD4            Mod4Mask
#define MASTER_SIZE     0.5
#define TOP_PANEL       0  /* 1=Don't 0=Have the panel at the top instead of the bottom */
#define PANEL_HEIGHT	0  /* 0 for no space for a panel */
#define BORDER_WIDTH    1
#define ATTACH_ASIDE    0  /* 0=TRUE, 1=New window is master */
#define DEFAULT_MODE    1  /* 0=Vertical, 1=Fullscreen 2=Horizontal 3=grid*/
#define FOLLOW_MOUSE    0  /* 1=Don't 0=Focus the window the mouse just entered */
#define FOLLOW_WINDOW   0  /* 1=Don't 0=Follow the window when moved to a different desktop */
#define CLICK_TO_FOCUS  0  /* 1=Don't 0=Focus an unfocused window when clicked */
#define DESKTOPS        4  /* Must edit DESKTOPCHANGE keys to suit */

// Colors
#define FOCUS           "#ff0000"
#define UNFOCUS         "#555555"

// Applications to a specific desktop
static const Convenience convenience[] = { \
    /*  class     desktop follow */
    { "firefox",  2,      1 },
    { "luakit",   2,      1 },
};

const char* dmenucmd[]      = {"dmenu_run","-fn","Ohsnap-8","-i","-nb","#000000","-nf","#ff0000","-sb","#ff0000","-sf","#000000",NULL};
const char* urxvtcmd[]      = {"x-terminal-emulator","-e","tmauto",NULL};
const char* firefoxcmd[]    = {"ff",NULL};
const char* luakitcmd[]     = {"lk",NULL};

// Avoid multiple paste
#define DESKTOPCHANGE(K,N) \
    {  MOD4,             K,              change_desktop, {.i = N}}, \
    {  MOD4|ShiftMask,   K,              client_to_desktop, {.i = N}},

// Shortcuts
static key keys[] = {
    // MOD               KEY             FUNCTION            ARGS
    {  MOD4,             XK_g,          resize_master,     {.i = 10}},
    {  MOD4,             XK_s,          resize_master,     {.i = -10}},
    {  MOD4|ShiftMask,   XK_c,          kill_client,       {NULL}},
    {  MOD4,             XK_Tab,        next_win,          {NULL}},
    {  MOD4|ShiftMask,   XK_Tab,        prev_win,          {NULL}},
    {  MOD4,             XK_x,          spawn,             {.com = dmenucmd}},
    {  MOD4|ControlMask, XK_s,          resize_stack,      {.i = 10}},
    {  MOD4|ControlMask, XK_g,          resize_stack,      {.i = -10}},
    {  MOD4|ControlMask, XK_Tab,        last_desktop,      {NULL}},
    {  MOD4,             XK_t,          spawn,             {.com = urxvtcmd}},
    {  MOD4|ShiftMask,   XK_Up,         move_up,           {NULL}},
    {  MOD4|ShiftMask,   XK_Down,       move_down,         {NULL}},
    {  MOD4,             XK_Return,     swap_master,       {NULL}},
    {  MOD4|ShiftMask,   XK_g,          switch_mode,       {.i = 3}},
    {  MOD4|ShiftMask,   XK_h,          switch_mode,       {.i = 2}},
    {  MOD4|ShiftMask,   XK_m,          switch_mode,       {.i = 1}},
    {  MOD4|ShiftMask,   XK_v,          switch_mode,       {.i = 0}},
    {  MOD4|ControlMask, XK_q,          quit,              {NULL}},
    {  MOD4,             XK_Right,      rotate_desktop,    {.i = 1}},
    {  MOD4,             XK_Left,       rotate_desktop,    {.i = -1}},
    {  MOD4,             XK_f,          spawn,             {.com = firefoxcmd}},
    {  MOD4,             XK_b,          spawn,             {.com = luakitcmd}},
       DESKTOPCHANGE(   XK_1,                              0)
       DESKTOPCHANGE(   XK_2,                              1)
       DESKTOPCHANGE(   XK_3,                              2)
       DESKTOPCHANGE(   XK_4,                              3)
};

#endif

Offline

#75 2011-12-14 06:27:28

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: dminiwm snapwm & bipolarbar

c00kiemon5ter wrote:

Hi everyone, I've been working on dminiwm lately on my own repo.

Fun! I have changed its name to monsterwm so it doesn't conflict with dminiwm.

Small typo: I think you mean 'MONOCLE' rather than 'MONOCYCLE'. Although monocycles are pretty cool:

http://upload.wikimedia.org/wikipedia/c … G_0161.JPG

Offline

Board footer

Powered by FluxBB