Permalink
Browse files

Buggered up adding desktops when adding multi monitor support

  • Loading branch information...
1 parent 24e262c commit 1407148b8c260f470457946473f5bc600b73c9d9 @moetunes committed Oct 10, 2012
Showing with 15 additions and 7 deletions.
  1. +7 −6 sample.key.conf
  2. +7 −1 sample.rc.conf
  3. +1 −0 snapwm.c
View
@@ -15,6 +15,9 @@ KEY Alt;8;change_desktop;7;
KEY Alt;9;change_desktop;8;
KEY Alt;F10;change_desktop;9;
+KEY Super;Right;rotate_desktop;1;
+KEY Super;Left;rotate_desktop;-1;
+
# Send an app to another desktop and follow it
KEY ShftAlt;1;follow_client_to_desktop;0;
KEY ShftAlt;2;follow_client_to_desktop;1;
@@ -25,7 +28,7 @@ KEY ShftAlt;6;follow_client_to_desktop;5;
KEY ShftAlt;7;follow_client_to_desktop;6;
KEY ShftAlt;8;follow_client_to_desktop;7;
KEY ShftAlt;9;follow_client_to_desktop;8;
-KEY ShftAlt;F10;follow_client_to_desktop;9;
+KEY ShftAlt;0;follow_client_to_desktop;9;
# Send an app to another desktop but dont't follow it
KEY ShftSuper;1;client_to_desktop;0;
@@ -37,7 +40,7 @@ KEY ShftSuper;6;client_to_desktop;5;
KEY ShftSuper;7;client_to_desktop;6;
KEY ShftSuper;8;client_to_desktop;7;
KEY ShftSuper;9;client_to_desktop;8;
-KEY ShftSuper;F10;client_to_desktop;9;
+KEY ShftSuper;0;client_to_desktop;9;
KEY Alt;a;rotate_mode;1;
KEY Alt;c;kill_client;
@@ -53,10 +56,11 @@ KEY Alt;Tab;last_desktop;
# Shortcut for dmenu_run
KEY Alt;v;spawn;dmenucmd;
-# Add a window to the master area in vertical/horizontal mode
+# Add/remove a window to/from the master area in vertical/horizontal mode
KEY ShftAlt;m;more_master;1;
KEY ShftAlt;l;more_master;-1;
+# move windows
KEY ShftAlt;k;move_down;10;
KEY ShftAlt;j;move_up;-10;
KEY ShftAlt;o;move_left;-10;
@@ -76,9 +80,6 @@ KEY ShftAlt;c;switch_mode;4;
# Show/hide the bar
KEY Super;b;toggle_bar;
-KEY Super;Right;rotate_desktop;1;
-KEY Super;Left;rotate_desktop;-1;
-
# Shortcut for xterm
KEY Super;t;spawn;xtermcmd;
View
@@ -21,18 +21,24 @@ STATUSTHEME #002030;#000000;#ffffff;#999999;#777755;#339933;#aa6644;#ffffff;#ddd
WINDOWTHEME #443311;#002030;
BORDERWIDTH 2
+# percentage of the desktop for the main window
MASTERSIZE 52
+# open new windows in the stack?
ATTACHASIDE 1
+# if new window is in the stack add it at the top
TOPSTACK 1
+# default tiling mode: 0=vert,1=fullscreen,2=horiz,3=grid,4=stacking
DEFAULTMODE 0
# For semi transparent unfocused windows if using a compositor e.g. compton
UF_WIN_ALPHA 65
-# only one of FOLLOWMOUSE and CLICKTOFOCUS should be zero
+# only one of FOLLOWMOUSE and CLICKTOFOCUS should be zero, but none have to be
FOLLOWMOUSE 1
CLICKTOFOCUS 0
# Background colour for the focused window's name
WNAMEBG 7
+# left align the focused window's name in the bar
LEFT_WINDOWNAME 0
+# max length for the window's name
WINDOWNAMELENGTH 35
TOPBAR 0
SHOW_BAR 0
View
@@ -1289,6 +1289,7 @@ void init_desks() {
for (i = 0; i < num_screens; i++) {
for(j=i;j<DESKTOPS;j+=num_screens) {
+ if(desktops[j].w > 0) continue;
//printf("**screen is %d - desktop is %d **\n", i, j);
desktops[j].x = info[i].x_org + last_width;
desktops[j].y = info[i].y_org;

0 comments on commit 1407148

Please sign in to comment.