xaizek / euclid-wm (License: BSD 3-Clause) (since 2018-12-07)
A minimalist, tiling window manager for X11 that seeks to allow easy management of numerous windows entirely from the keyboard.
Commit 3d90b1398cd6e368dcbf455c6170f9b80e393f45

stacks should hide now, even if screens are stacked
Author: wmdiem
Author date (UTC): 2010-08-01 20:14
Committer name: wmdiem
Committer date (UTC): 2010-08-01 20:14
Parent(s): 328f6399165001af1ed4f87810e85f6cbe71a28b
Signing key:
Tree: 285ad2f744f8e7109d796f27b1c9d890358b60a5
File Lines added Lines deleted
euclid-wm.c 8 7
File euclid-wm.c changed (mode: 100644) (index 1c30abf..b2516ce)
... ... unsigned short res_bot = 0;
214 214 unsigned short res_left = 0; unsigned short res_left = 0;
215 215 unsigned short res_right = 0; unsigned short res_right = 0;
216 216 unsigned short resize_inc = 15; unsigned short resize_inc = 15;
217 unsigned short offscreen = 0;
217 218
218 219 //records the keycode in appropriate array //records the keycode in appropriate array
219 220 void bind_key(char s[12], unsigned int *m, struct binding *b) { void bind_key(char s[12], unsigned int *m, struct binding *b) {
 
... ... void layout() {
1598 1599 i += 20; i += 20;
1599 1600 }; };
1600 1601 } else { //hide stack } else { //hide stack
1601 XMoveResizeWindow(dpy,s->stackid,0,(s->h ),s->w,10);
1602 XMoveResizeWindow(dpy,s->stackid,0,offscreen,s->w,10);
1602 1603 }; };
1603 1604 XSync(dpy,false); XSync(dpy,false);
1604 1605 if (s->v->mfocus == NULL) { if (s->v->mfocus == NULL) {
 
... ... int main() {
2359 2360 color.green = 0; color.green = 0;
2360 2361 color.blue = 65500; color.blue = 65500;
2361 2362 color.flags = DoRed | DoGreen | DoBlue; color.flags = DoRed | DoGreen | DoBlue;
2362 XAllocColor(dpy,DefaultColormap(dpy,0),&color);
2363 XAllocColor(dpy,DefaultColormap(dpy,DefaultScreen(dpy)),&color);
2363 2364 focus_pix = color.pixel; focus_pix = color.pixel;
2364 2365 //unfocus color //unfocus color
2365 2366 color.red = 5000; color.red = 5000;
2366 2367 color.green = 5000; color.green = 5000;
2367 2368 color.blue = 5000; color.blue = 5000;
2368 2369 color.flags = DoRed | DoGreen | DoBlue; color.flags = DoRed | DoGreen | DoBlue;
2369 XAllocColor(dpy,DefaultColormap(dpy,0),&color);
2370 XAllocColor(dpy,DefaultColormap(dpy,DefaultScreen(dpy)),&color);
2370 2371 unfocus_pix = color.pixel; unfocus_pix = color.pixel;
2371 2372 //stack background: //stack background:
2372 2373 color.red = 100; color.red = 100;
2373 2374 color.green = 100; color.green = 100;
2374 2375 color.blue = 200; color.blue = 200;
2375 2376 color.flags = DoRed | DoGreen | DoBlue; color.flags = DoRed | DoGreen | DoBlue;
2376 XAllocColor(dpy,DefaultColormap(dpy,0),&color);
2377 XAllocColor(dpy,DefaultColormap(dpy,DefaultScreen(dpy)),&color);
2377 2378 stack_background_pix = color.pixel; stack_background_pix = color.pixel;
2378 2379 //stack unfocus text: //stack unfocus text:
2379 2380 color.red = 60000; color.red = 60000;
2380 2381 color.green = 60000; color.green = 60000;
2381 2382 color.blue = 60000; color.blue = 60000;
2382 2383 color.flags = DoRed | DoGreen | DoBlue; color.flags = DoRed | DoGreen | DoBlue;
2383 XAllocColor(dpy,DefaultColormap(dpy,0),&color);
2384 XAllocColor(dpy,DefaultColormap(dpy,DefaultScreen(dpy)),&color);
2384 2385 stack_unfocus_pix = color.pixel; stack_unfocus_pix = color.pixel;
2385 2386 //stack focus text: //stack focus text:
2386 2387 color.red = 0; color.red = 0;
2387 2388 color.green = 0; color.green = 0;
2388 2389 color.blue = 65500; color.blue = 65500;
2389 2390 color.flags = DoRed | DoGreen | DoBlue; color.flags = DoRed | DoGreen | DoBlue;
2390 XAllocColor(dpy,DefaultColormap(dpy,0),&color);
2391 XAllocColor(dpy,DefaultColormap(dpy,DefaultScreen(dpy)),&color);
2391 2392 stack_focus_pix = color.pixel; stack_focus_pix = color.pixel;
2392 2393
2393 2394 //we have to do this after we get root //we have to do this after we get root
 
... ... int main() {
2414 2415 }; };
2415 2416 }; };
2416 2417 XFree(scrn_info); XFree(scrn_info);
2417
2418 offscreen = DisplayHeight(dpy,DefaultScreen(dpy));
2418 2419 // cs->v = make_view(); // cs->v = make_view();
2419 2420 // fv = cs->v; // fv = cs->v;
2420 2421 // cs->v->idx = 1; // cs->v->idx = 1;
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/euclid-wm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/euclid-wm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master