You are not logged in.

#176 2012-04-02 22:44:02

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

Re: dminiwm snapwm & bipolarbar

I've pushed a couple of fixes for dminiwm.multiview. The tiling mode wasn't sticking and if there was an open window on the first desktop change it was getting unmapped. It should be fine now wink

Edit: I figured out how to take a proper screenshot for the web.
tZDhxMQ

Cheers

Last edited by moetunes (2012-04-03 08:54:33)


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

Offline

#177 2012-04-06 09:27:38

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

Re: dminiwm snapwm & bipolarbar

Some snapwm news.
Here's a pic of a nearly functioning snapwm with multi monitor capabilities:
tZDl6Nw
it's buggier than a bug catchers' favorite haunt but I wanted to show compositing worked on irc so I took a shot.

Cheers


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

Offline

#178 2012-04-07 03:56:34

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

Re: dminiwm snapwm & bipolarbar

I had a firefox customize toolbar window draw the close button off the screen so I've fixed that and pushed it for both dminiwms and snapwm.

Cheers


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

Offline

#179 2012-04-12 03:50:17

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

Re: dminiwm snapwm & bipolarbar

hey moetunes, I just found out that the dwm status bar comes also by itself.
maybe you want to look into the code, for your some_sorta_bar wink 
http://dwm.suckless.org/dwmstatus/ -- dwmstatus-1.1.tar.gz


.:[ git me! ] :.

Offline

#180 2012-04-12 19:55:02

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

Re: dminiwm snapwm & bipolarbar

Thanks for the heads up c00kiemon5ter, I'll take a look at it soon. smile

I swapped the grid tiling mode for a floating one in dminiwm here. New windows start out centered, can be moved/resized with Alt + left/right button + drag and their size and position is remembered when switching between modes. Here's a pic:
tZGNxcQ
I haven't pushed it to git yet but will if it is something that could be useful.

Cheers


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

Offline

#181 2012-04-12 22:57:49

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

Re: dminiwm snapwm & bipolarbar

I put dminiwm with a stacking mode on git as larrythewindowmanager. It uses the same config.h as dminiwm with two more functions for moving the window left or right in the stacking mode and two functions are slightly changed.

    {  MOD1|ShiftMask,   XK_j,          move_up,           {.i = -10}},//Changed from {NULL}}
    {  MOD1|ShiftMask,   XK_k,          move_down,         {.i = 10}},//Changed from {NULL}}
    {  MOD1|ShiftMask,   XK_o,          move_left,         {.i = -10}},
    {  MOD1|ShiftMask,   XK_p,          move_right,        {.i = 10}},

In the stacking mode Alt+h/l changes the windows width and Alt+o/p changes the windows height, Shift+Alt+j/k moves the window up/down and Shift+Alt+o/p moves the window left/right. Or you can use Alt+mouse buttons. The shortcuts work the same in the tiling modes as they always have.

Cheers

Last edited by moetunes (2012-04-13 06:35:04)


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

Offline

#182 2012-04-12 23:48:09

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

Re: dminiwm snapwm & bipolarbar

I just have to say: best name ever!

Offline

#183 2012-04-13 06:36:59

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

Re: dminiwm snapwm & bipolarbar

Cheers. I've added it to snapwm too now. There's still a bug to work out though...
edit: if you try snapwm make sure you add a fifth modename to either the config.h or snapwmrc.
Here's a pic:
tZGN4eA

Last edited by moetunes (2012-04-13 08:05:28)


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

Offline

#184 2012-04-13 17:37:15

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

Re: dminiwm snapwm & bipolarbar

Everything seems ok here so far. Here's another screenshot of snapwm:
tZGQ0aA
It actually works really nicely! Thanks.
@larrythewindowmanager lol

Last edited by stlarch (2012-04-13 17:39:57)

Offline

#185 2012-04-15 05:52:22

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

Re: dminiwm snapwm & bipolarbar

c00kiemon5ter wrote:

hey moetunes, I just found out that the dwm status bar comes also by itself.
maybe you want to look into the code, for your some_sorta_bar wink 
http://dwm.suckless.org/dwmstatus/ -- dwmstatus-1.1.tar.gz

I had a look at this and it's a bar that doesn't have positional options from what I could see. I don't understand why you linked it. I thought it had something extra that you wanted in some_sorta_bar but it doesn't seem to do much at all... Let me know what you had in mind for it.


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

Offline

#186 2012-04-15 10:06:10

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

Re: dminiwm snapwm & bipolarbar

nothing in particular really. just a similar project. thought I'd mention it, and maybe you could reuse or w/e anything you found interesting, wink


.:[ git me! ] :.

Offline

#187 2012-04-15 22:35:44

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

Re: dminiwm snapwm & bipolarbar

Some snapwm news.

I've added the option to have a window open at a set size and position, when in stacking mode, to config.h.

static const Positional positional[] = { \
    /* class  x  y  width  height */
    { "Thunar", 100,100,800,400 },
    { "URxvt", 100,400,570,270 },
    { "Xchat", 320,60,950,500 }
};

edit: If you don't want to set a position for any window just leave positional blank

static const Positional positional[] = { };

Cheers

Last edited by moetunes (2012-04-15 22:40:55)


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

Offline

#188 2012-04-16 15:36:12

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

Re: dminiwm snapwm & bipolarbar

Hey moe. With the new update, it built fine and the wm starts up but then crashes when I try to open an app (urxvt or firefox). The only change I made to my config.h is adding:

static const Positional positional[] = { };

Offline

#189 2012-04-16 18:26:57

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

Re: dminiwm snapwm & bipolarbar

stlarch wrote:

Hey moe. With the new update, it built fine and the wm starts up but then crashes when I try to open an app (urxvt or firefox). The only change I made to my config.h is adding:

static const Positional positional[] = { };

Before I posted that line and again just now I built and ran snapwm with that line and it worked as expected. Can you paste your config.h here in code tags? There would be an error during make if there is a typo, if there isn't it shouldn't affect any app. But maybe you have a combination of options I haven't checked yet that doesn't work together now.


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

Offline

#190 2012-04-16 19:08:23

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

Re: dminiwm snapwm & bipolarbar

Sure. My keys are considerably different, but they seemed to be working fine before. Anyway, here it is:

 /* config.h for snapwm.c [ 0.4.4 ]
 *
 *  Started from catwm 31/12/10
 *  Permission is hereby granted, free of charge, to any person obtaining a
 *  copy of this software and associated documentation files (the "Software"),
 *  to deal in the Software without restriction, including without limitation
 *  the rights to use, copy, modify, merge, publish, distribute, sublicense,
 *  and/or sell copies of the Software, and to permit persons to whom the
 *  Software is furnished to do so, subject to the following conditions:
 *
 *  The above copyright notice and this permission notice shall be included in
 *  all copies or substantial portions of the Software.
 *
 *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 *  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 *  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 *  DEALINGS IN THE SOFTWARE.
 *
 */

#ifndef CONFIG_H
#define CONFIG_H

#define RCFILE "/home/dave/.snapwmrc"
#define STATUS_BAR      0  /* 1=Don't 0=Make the bar */

/* Mod (Mod1 == alt) (Mod4 == Super/windows) */
#define MOD1            Mod1Mask
#define MOD4            Mod4Mask
#define DESKTOPS        6  /* Must edit DESKTOPCHANGE keys to suit */

// The settings from here to defaultfont[] are in the rc file, which has precedence,
// so if the rc file all has these 15 options they don't have to be changed.

#define UF_ALPHA        75 /* Percentage transparency for unfocused windows - 100 to turn off */
#define MASTER_SIZE     55
#define BORDER_WIDTH    1
#define ATTACH_ASIDE    1  /* 1=Don't 0=Place new window in the stack */
#define TOP_STACK       1  /* 1=Don't 0=Place new window at the top of the stack when using ATTACH_ASIDE*/
#define DEFAULT_MODE    0  /* 0=Vertical, 1=Fullscreen 2=Horizontal 3=Grid 4=Stacking*/
#define FOLLOW_MOUSE    0  /* 1=Don't 0=Focus the window the mouse just entered */
#define CLICK_TO_FOCUS  1  /* 1=Don't 0=Focus an unfocused window when clicked */
#define TOP_BAR         0  /* 1=Don't 0=Have the bar at the top instead of the bottom */
#define SHOW_BAR        0  /* 1=Don't 0=Have the bar shown at startup */
#define SHOW_NUM_OPEN   0  /* 1=Dont' 0=Show the number of open windows in the switcher */
#define WINDOW_NAME_LENGTH 0 /* Character length for the current window's name in the bar */

static const char *defaultdesktopnames[] = { "one", "two", "three", "four", "five", "six", };
static const char *defaultcolor[] = { "#555555", "#2a2a2a", "#444444", "#000000", "#999999", "#7f7f7f", "#b3b3b3", "#666666", "#ff950e", };
static const char *defaultmodename[] = { "[T]", "[M]", "[b]", "[G]", "[F]", };
static const char defaultfont[] = "-*-terminusmodx.icons-medium-r-normal-*-12-*-*-*-*-*-*-*";

// Applications to a specific desktop
static const Convenience convenience[] = {};

static const Positional positional[] = {};

const char* dmenucmd[]      = {"dmenu_run","-b","-i","-nb","#2a2a2a","-nf","#7f7f7f","-sb","#2a2a2a","-sf","#b3b3b3","-fn","-*-terminusmodx-medium-r-normal-*-12-*-*-*-*-$
const char* urxvtcmd[]      = {"urxvt",NULL};
const char* webcmd[]        = {"firefox",NULL};
const char* scrotcmd[]      = {"scrot",NULL};

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

// Shortcuts
static key keys[] = {
    // MOD               KEY             FUNCTION            ARGS
// Alt + shortcut
    {  MOD1,             XK_h,          resize_master,     {.i = -10}},
    {  MOD1,             XK_l,          resize_master,     {.i = 10}},
    {  MOD1,             XK_c,          kill_client,       {NULL}},
    {  MOD1,             XK_j,          next_win,          {NULL}},
    {  MOD1,             XK_k,          prev_win,          {NULL}},
    {  MOD1,             XK_v,          spawn,             {.com = dmenucmd}},
    {  MOD1,             XK_p,          resize_stack,      {.i = 10}},
    {  MOD1,             XK_o,          resize_stack,      {.i = -10}},
    {  MOD1,             XK_u,          update_config,     {NULL}},
    {  MOD1,             XK_Tab,        last_desktop,      {NULL}},
    {  MOD1,             XK_Return,     spawn,             {.com = urxvtcmd}},
    {  MOD1,             XK_w,          spawn,             {.com = webcmd}},
    {  MOD1,             XK_f,          switch_mode,       {.i = 4}}, // stacking
    {  MOD1,             XK_g,          switch_mode,       {.i = 3}}, // grid
    {  MOD1,             XK_b,          switch_mode,       {.i = 2}}, // bstack
    {  MOD1,             XK_m,          switch_mode,       {.i = 1}}, // monocle
    {  MOD1,             XK_t,          switch_mode,       {.i = 0}}, // tile
    {  MOD1,             XK_Left,       move_left,         {.i = -10}},
    {  MOD1,             XK_Right,      move_right,        {.i = 10}},
    {  MOD1,             XK_Up,         move_up,           {.i = -10}},
    {  MOD1,             XK_Down,       move_down,         {.i = 10}},
    {  MOD1,             XK_s,          swap_master,       {NULL}},
    {  MOD1,             XK_q,          quit,              {NULL}},
// Control + shortcut
    {  MOD4,             XK_b,          toggle_bar,        {NULL}},
    {  MOD4,             XK_Left,       rotate_desktop,    {.i = -1}},
    {  MOD4,             XK_Right,      rotate_desktop,    {.i = 1}},
    {  MOD4,             XK_s,          spawn,             {.com = scrotcmd}},
       DESKTOPCHANGE(   XK_1,                              0)
       DESKTOPCHANGE(   XK_2,                              1)
       DESKTOPCHANGE(   XK_3,                              2)
       DESKTOPCHANGE(   XK_4,                              3)
       DESKTOPCHANGE(   XK_5,                              4)
       DESKTOPCHANGE(   XK_6,                              5)
};

#endif

Offline

#191 2012-04-16 20:40:57

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

Re: dminiwm snapwm & bipolarbar

@stlarch
   After trying a few different things with your config.h, cause the wm kept crashing, I added a printf to snapwm.c where positional[] is used to find out how many entries are in there and with my config.h and an empty positional[] it returns 0, with your config.h and an empty positional it returns 3381555 ! yikes
    I'm still trying to figure out why that would be. What do you use to edit the file? If I copy the top part of my config.h (down to the end of positional[]) to your config.h and have an empty positional[] it works fine... so I'm thinking some sort of text encoding difference but I know nothing about that.

Last edited by moetunes (2012-04-16 20:51:59)


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

Offline

#192 2012-04-16 21:47:48

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

Re: dminiwm snapwm & bipolarbar

I use either nano or mcedit since I'm in mc a lot already. I tried changing that part of it to:

static const Positional positional[] = { \
    /*class  x  y  width  height */
    { "URxvt", 100,100,600,350 },
};

and everything seems fine again. I can just leave that for now. I'll probably end up using some of that anyway. I'll play around with it more when I get home later. Thanks

Offline

#193 2012-04-16 21:57:19

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

Re: dminiwm snapwm & bipolarbar

@ stlarch
    Disregard above post. I have found a fix which makes your config.h work ok here. You can remove the word   static   from the start of line 251 in snapwm.c and rebuild or do a git pull. Thanks for speaking up smile
edit: I should check for new posts and not just page down ...

Last edited by moetunes (2012-04-17 18:48:53)


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

Offline

#194 2012-04-19 06:38:54

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

Re: dminiwm snapwm & bipolarbar

Thank again. I added an entry for snapwm to the window manager wiki page too. wink

Last edited by stlarch (2012-04-19 06:39:38)

Offline

#195 2012-04-19 19:18:33

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

Re: dminiwm snapwm & bipolarbar

hey, i just discovered this wonderfull wm due to the screenshots thread.
i am playing with it now and like it very much.
One question, is there a way to use a keyboard shortcut to cycle through the layouts?
Would be handy,
thanks

Offline

#196 2012-04-19 21:16:43

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

Re: dminiwm snapwm & bipolarbar

@ stlarch
   Thanks for that Dave smile Love your work.

@ skrite
   There wasn't one but it wasn't hard to add. After a git pull you can use a new keyboard shortcut for it.

    {  MOD1,             XK_a,          rotate_mode,       {.i = 1}},

You can go both ways through the modes if you like, just add another keyboard shortcut with
{.i = -1}

Cheers


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

Offline

#197 2012-04-19 21:20:02

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

Re: dminiwm snapwm & bipolarbar

moetunes wrote:

   There wasn't one but it wasn't hard to add.

dang, you awesome !
thanks much.

Offline

#198 2012-04-20 04:33:09

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

Re: dminiwm snapwm & bipolarbar

another question !
what is the config that lets me change which button i use with the mouse to resize and drag a floating window?
thanks

Offline

#199 2012-04-20 05:29:32

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

Re: dminiwm snapwm & bipolarbar

Some snapwm news.

In stacking mode, sometimes when there was two windows mostly covering each other, the focus would change quickly between the two over and over again and I've found a fix so I'd recommend a git pull.  wink

skrite wrote:

another question !
what is the config that lets me change which button i use with the mouse to resize and drag a floating window?
thanks

There's nothing in the config at this stage for that. It is hard coded in snapwm.c lines 1027-1030 and lines 810-816. What are you looking to change them to?


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

Offline

#200 2012-04-20 05:52:43

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

Re: dminiwm snapwm & bipolarbar

moetunes wrote:

What are you looking to change them to?

i would like to use the windows key (mod4)

and while we are here, can i change the theme or default font to a bitmap font?

Great work on this, by the way. the wm is very fast and light. no crashes yet either. Feels like everything i wanted wmfs to be, but wasn't

Offline

Board footer

Powered by FluxBB