Marco Peereboom [Sat, 24 Jan 2009 23:49:58 +0000 (23:49 +0000)]
Remove files for real
Marco Peereboom [Sat, 24 Jan 2009 23:38:36 +0000 (23:38 +0000)]
Remove html so that we can move it to it's own dir.
Ryan McBride [Sat, 24 Jan 2009 17:57:26 +0000 (17:57 +0000)]
Add support for passing variables up to X11 via window properties; done by
hooking XCreateWindow and friends via LD_PRELOAD. Used now to make sure that
windows come up in the workspace they were spawn()'d from, but more soon.
Code to do the nasty borrowed with thanks from Enlightenment.
Marco Peereboom [Fri, 23 Jan 2009 22:51:39 +0000 (22:51 +0000)]
Remove stray SWM_DEBUG
Marco Peereboom [Fri, 23 Jan 2009 22:50:38 +0000 (22:50 +0000)]
Add bar delay
Marco Peereboom [Fri, 23 Jan 2009 22:11:06 +0000 (22:11 +0000)]
New
Marco Peereboom [Fri, 23 Jan 2009 22:04:58 +0000 (22:04 +0000)]
Better man
Ryan McBride [Fri, 23 Jan 2009 08:51:56 +0000 (08:51 +0000)]
Add commented-out support for printing CPU stats to the bar.
Ryan McBride [Fri, 23 Jan 2009 08:30:03 +0000 (08:30 +0000)]
I want to know if I'm on AC, might as well make it pretty while we're here.
Also try to make it shut up on systems without battery.
Marco Peereboom [Fri, 23 Jan 2009 04:20:34 +0000 (04:20 +0000)]
Add man in html too
Marco Peereboom [Fri, 23 Jan 2009 04:14:40 +0000 (04:14 +0000)]
Make man
Marco Peereboom [Fri, 23 Jan 2009 04:05:04 +0000 (04:05 +0000)]
Add rudimentary man with the key bindings.
Marco Peereboom [Fri, 23 Jan 2009 02:38:30 +0000 (02:38 +0000)]
Use full path
Ryan McBride [Fri, 23 Jan 2009 01:01:48 +0000 (01:01 +0000)]
Remember which workspace we assign windows to via window properties.
Marco Peereboom [Thu, 22 Jan 2009 23:12:27 +0000 (23:12 +0000)]
Add linux goo; from NicM
Marco Peereboom [Thu, 22 Jan 2009 23:06:45 +0000 (23:06 +0000)]
Fix segfault on linux; from nicm
Marco Peereboom [Thu, 22 Jan 2009 22:57:30 +0000 (22:57 +0000)]
No idea how this new = 1 bug snuck in but make it 0 so that windows draw
properly. Since I am still hounding a positioning bug with respect to
dialog windows leave some shitty debug in here albeit disabled.
Marco Peereboom [Thu, 22 Jan 2009 18:29:46 +0000 (18:29 +0000)]
remove some stray carriage returns
Marco Peereboom [Thu, 22 Jan 2009 18:16:35 +0000 (18:16 +0000)]
update every 59 seconds instead of 1
Marco Peereboom [Thu, 22 Jan 2009 18:13:43 +0000 (18:13 +0000)]
Done with one more item
Marco Peereboom [Thu, 22 Jan 2009 18:11:52 +0000 (18:11 +0000)]
Add kill window fro pirofti
Marco Peereboom [Thu, 22 Jan 2009 18:04:02 +0000 (18:04 +0000)]
*sigh* stupid debug still enabled
Marco Peereboom [Thu, 22 Jan 2009 18:00:16 +0000 (18:00 +0000)]
Fix first of 2 new mecbride bugs; colors can be read from conf file again
Marco Peereboom [Thu, 22 Jan 2009 17:50:16 +0000 (17:50 +0000)]
Add baraction script for batter and stuff.
bad mcbride broke colors in config file; need to go fix that now.
Ryan McBride [Thu, 22 Jan 2009 06:21:23 +0000 (06:21 +0000)]
Set colors and font for dmenu based on bar; make these independently
configurable later.
To do this, we store color names as well as values; This will help us later
to suppport dynamic screen changes. Also, clean up the config parser by
storing colors in an indexed array so they can be set with a generic function.
Marco Peereboom [Thu, 22 Jan 2009 03:58:20 +0000 (03:58 +0000)]
geez, wonder why this never bombed; zero it man!
Marco Peereboom [Thu, 22 Jan 2009 03:48:17 +0000 (03:48 +0000)]
Teh mouze
Marco Peereboom [Thu, 22 Jan 2009 03:46:13 +0000 (03:46 +0000)]
Add mouse button actions. One example handler that does nothing and we
have copy and paste and click-to-focus
Marco Peereboom [Thu, 22 Jan 2009 01:45:22 +0000 (01:45 +0000)]
We want screen shots
Marco Peereboom [Thu, 22 Jan 2009 01:44:32 +0000 (01:44 +0000)]
Some items were done
Ryan McBride [Thu, 22 Jan 2009 01:22:09 +0000 (01:22 +0000)]
Simplify selection of the current region; just always track the cursor.
Marco Peereboom [Thu, 22 Jan 2009 00:08:19 +0000 (00:08 +0000)]
More focus simplicfication
Marco Peereboom [Wed, 21 Jan 2009 23:12:54 +0000 (23:12 +0000)]
Collapse focus and unfocus and brute force unfocs. This way we don't lose
track of what we are really trying to do. Tested on multi and single screen
Marco Peereboom [Wed, 21 Jan 2009 15:08:55 +0000 (15:08 +0000)]
oops stray if sneaked in
Marco Peereboom [Wed, 21 Jan 2009 15:02:57 +0000 (15:02 +0000)]
Revert latest McBride commit. Doesn't work on single screen and I am not
sure how to fix it.
Ryan McBride [Wed, 21 Jan 2009 08:45:36 +0000 (08:45 +0000)]
Fix some workspace switching nits:
- Don't XMapRaised windows if they need to be moved/resized first.
- Keep focus in the current region if possible.
Ryan McBride [Wed, 21 Jan 2009 01:26:56 +0000 (01:26 +0000)]
Cycle workspaces in region with alt-leftarrow and alt-rightarrow.
By default skips empty and already visible workspaces, set
cycle_empty or cycle_visible to change this behaviour.
Marco Peereboom [Tue, 20 Jan 2009 06:46:37 +0000 (06:46 +0000)]
Update todo
Marco Peereboom [Tue, 20 Jan 2009 06:23:18 +0000 (06:23 +0000)]
ugh > 80 cols
Marco Peereboom [Tue, 20 Jan 2009 06:16:05 +0000 (06:16 +0000)]
Make bar configurable using [x] notation in .conf file. Originally from dwc
Debug and make it work from me
ClearWindow instead of overwriting text on bar
shoten variable names that made the parser even more unreadable
Ryan McBride [Tue, 20 Jan 2009 06:05:47 +0000 (06:05 +0000)]
one. last. off-by-2.
Ryan McBride [Tue, 20 Jan 2009 05:57:18 +0000 (05:57 +0000)]
Duh, math is hard.
Ryan McBride [Tue, 20 Jan 2009 05:45:49 +0000 (05:45 +0000)]
Oops, take the window borders correctly into account.
Ryan McBride [Tue, 20 Jan 2009 05:37:45 +0000 (05:37 +0000)]
Add alt-comma and alt-period keybindings, which increase and decrease the
number of windows in the master area.
kill the *_init and *_resize stacker hooks in favour of a single *_config.
Marco Peereboom [Tue, 20 Jan 2009 04:28:22 +0000 (04:28 +0000)]
Let it beknown where we are
Marco Peereboom [Tue, 20 Jan 2009 03:50:50 +0000 (03:50 +0000)]
Add screen identifier. This doesn't do workspaces just yet.
Ryan McBride [Tue, 20 Jan 2009 02:22:50 +0000 (02:22 +0000)]
Load config file AFTER screens are initialized. Bug pointed out by dwc.
Ryan McBride [Mon, 19 Jan 2009 23:19:08 +0000 (23:19 +0000)]
Multihead is mostly working now, remove from todo.
Marco Peereboom [Mon, 19 Jan 2009 21:11:46 +0000 (21:11 +0000)]
Simplify bar updates.
Marco Peereboom [Mon, 19 Jan 2009 19:40:26 +0000 (19:40 +0000)]
width is no longer -2 by default so adjust bar width
Marco Peereboom [Mon, 19 Jan 2009 19:33:38 +0000 (19:33 +0000)]
I want to be able to look at cores for now.
Marco Peereboom [Mon, 19 Jan 2009 19:27:36 +0000 (19:27 +0000)]
Unfuck signal handler.
Make all screens have their own bars.
Print screen number in bar.
Fix "Alarm clock" issue due to a race between restart and alarm.
Marco Peereboom [Mon, 19 Jan 2009 15:11:47 +0000 (15:11 +0000)]
Stray debug
Marco Peereboom [Mon, 19 Jan 2009 15:09:04 +0000 (15:09 +0000)]
simplify and shrink code in setup some more
Marco Peereboom [Mon, 19 Jan 2009 14:59:29 +0000 (14:59 +0000)]
Shorten some variable names.
Don't leak memory and resources in setup.
Marco Peereboom [Mon, 19 Jan 2009 14:15:31 +0000 (14:15 +0000)]
Fix overlapping region on my fancy laptop with a big screen
Spacing
C89 variables (yes I am that old)
Ryan McBride [Mon, 19 Jan 2009 09:05:02 +0000 (09:05 +0000)]
Cleanup; get rid of crufty cur_ws and cur_region and replace with
root_to_reginon, which will always give a non-crufty result. Pass the
region to all keystroke handlers.
To allow for workspace commands in empty workspaces without full-force
focus-follows-mouse, track mouse-clicks on root windows and make them
override cur_focus in root_to_region().
Also, examples of more descriptive debug output for some handlers.
Ryan McBride [Mon, 19 Jan 2009 05:48:11 +0000 (05:48 +0000)]
Major churn for multi-headed support (Xrandr and plain multi-screen).
- workspaces now per-screen (X does not let you migrate windows)
- a screen has 1 or more regions (now mapped by Xrandr, later configurable)
- current_ws is dead, long live cur_focus
- only one window has real focus, but workspaces keep track ws->focus
- lots of places (especially event handlers) use cur_focus but should
identify the correct source of the event instead
- festival of pointer management to keep track of all this.
Marco Peereboom [Mon, 19 Jan 2009 04:27:28 +0000 (04:27 +0000)]
More blah blah and some screenshots
Marco Peereboom [Mon, 19 Jan 2009 03:30:39 +0000 (03:30 +0000)]
Kill some braces and shorten code a bit
Marco Peereboom [Mon, 19 Jan 2009 03:19:35 +0000 (03:19 +0000)]
Verbiage
Marco Peereboom [Sun, 18 Jan 2009 23:53:03 +0000 (23:53 +0000)]
Unscrew colors on machines that use 16 bit color. I am talking to you
zaurus and sparc!
from dwc
Marco Peereboom [Sun, 18 Jan 2009 17:37:50 +0000 (17:37 +0000)]
Add tags
Marco Peereboom [Sun, 18 Jan 2009 17:35:24 +0000 (17:35 +0000)]
Add some html files to start doco.
Marco Peereboom [Sun, 18 Jan 2009 04:48:04 +0000 (04:48 +0000)]
Stop farting around with dialog box potential sizes and make it a ratio.
This ratio can be configured in the .conf file.
Marco Peereboom [Sun, 18 Jan 2009 03:30:51 +0000 (03:30 +0000)]
Make floaters work right. This fixes the remaining issues.
Note: firefox sucks for having that retarded "download complete" window
use "Download Statusbar" to disable that. Really you want to.
Marco Peereboom [Sun, 18 Jan 2009 01:19:01 +0000 (01:19 +0000)]
Correct XInput for managed windows so that mplayer syops whining about the
mouse mask.
Marco Peereboom [Sun, 18 Jan 2009 00:28:20 +0000 (00:28 +0000)]
First attempt at doing pr0n! Mplayer now sort of works; switching between
ws while having floaters screws up. Some more nits need to be resolved but
this is promissing enough.
Marco Peereboom [Sat, 17 Jan 2009 21:39:22 +0000 (21:39 +0000)]
somehow if( and for( remained in the code borrowed from dwm. Kill that dead.
Marco Peereboom [Sat, 17 Jan 2009 19:57:48 +0000 (19:57 +0000)]
Fix fucking phantom windows for real this time.
Marco Peereboom [Sat, 17 Jan 2009 17:48:37 +0000 (17:48 +0000)]
Fix phantom windows better by keeping transients; fixes mozilla restart
with dialog open.
Marco Peereboom [Sat, 17 Jan 2009 17:44:10 +0000 (17:44 +0000)]
Fix stupid phantom windows during restart.
Marco Peereboom [Sat, 17 Jan 2009 17:23:52 +0000 (17:23 +0000)]
Silly mcbride restarting the wm expecting it to be in the path.
Be more paranoid about managing windows.
Marco Peereboom [Sat, 17 Jan 2009 14:32:56 +0000 (14:32 +0000)]
Keep focus on right window when cycling stack order. This does flicker
ugly when going to max stack.
Marco Peereboom [Sat, 17 Jan 2009 14:17:09 +0000 (14:17 +0000)]
When switching stacking keep focus on current win; from joris with tweaks.
This needs to be extended for all stack swtiches however the others are
being screwed up by autofocus events. Those need to be eaten.
Marco Peereboom [Fri, 16 Jan 2009 23:40:01 +0000 (23:40 +0000)]
This only took 2 days to debug :-(
But now we draw x-apps correctly like emacs, xpdf and gvim etc
Floaters need more love and mplayer is still unhappy (it worked at some
point!); getting it in so that others can get used to this.
Marco Peereboom [Fri, 16 Jan 2009 19:13:36 +0000 (19:13 +0000)]
Cleanup and move some code to a more appropriate place.
Ryan McBride [Fri, 16 Jan 2009 10:02:13 +0000 (10:02 +0000)]
Make max (maximized single window) layout handler mostly work.
Ryan McBride [Fri, 16 Jan 2009 07:27:26 +0000 (07:27 +0000)]
Allow resizing (alt-h / alt-l) the master area and resetting (alt-shift-space)
the layout to it's defaults, with per-workspace, per-layout persistence.
Also switch layout cycling to the "correct" key: alt-space
Ryan McBride [Fri, 16 Jan 2009 05:25:13 +0000 (05:25 +0000)]
Partly un-globalize workspace geometry.
Mostly mechanical work towards multi-head support and other goodies.
Marco Peereboom [Thu, 15 Jan 2009 19:21:55 +0000 (19:21 +0000)]
Use hints to position and size floating windows. This is really a best
effort since a lot of these apps are a total clusterfuck.
Marco Peereboom [Thu, 15 Jan 2009 17:27:34 +0000 (17:27 +0000)]
When moving windows to an empty workspace make sure we focus on the window
that just moved there.
Marco Peereboom [Thu, 15 Jan 2009 17:23:04 +0000 (17:23 +0000)]
Forgot to remove debug.
Marco Peereboom [Thu, 15 Jan 2009 17:22:05 +0000 (17:22 +0000)]
Off by one pixel in horizontal stack. Some spacing.
Ryan McBride [Thu, 15 Jan 2009 13:59:58 +0000 (13:59 +0000)]
Initial bits of support for different layouts, needs more splitting out of
common code.
Use alt-c to cycle for now, will change to alt-space once I figure that out.
Marco Peereboom [Thu, 15 Jan 2009 13:44:52 +0000 (13:44 +0000)]
Probably a fat finger from mr McBride
Ryan McBride [Thu, 15 Jan 2009 08:27:56 +0000 (08:27 +0000)]
next/prev window swap logic that sucks less.
Ryan McBride [Thu, 15 Jan 2009 06:41:06 +0000 (06:41 +0000)]
alt-j/alt-k = move focus to next/prev
alt-shift-j/alt-shift-k = swap focus window with next/prev
Marco Peereboom [Thu, 15 Jan 2009 03:50:26 +0000 (03:50 +0000)]
Yay fix old x apps that send events in different order. This fixes like
xclock & xcalc etc.
Ryan McBride [Thu, 15 Jan 2009 02:14:08 +0000 (02:14 +0000)]
Reexec scrotwm on alt-q, also enumerate and manage all existing windows when
scrotwm starts.
Marco Peereboom [Wed, 14 Jan 2009 22:21:52 +0000 (22:21 +0000)]
center floaters
Marco Peereboom [Wed, 14 Jan 2009 22:06:48 +0000 (22:06 +0000)]
Add initial floating support and a forgotten makefile...
Marco Peereboom [Wed, 14 Jan 2009 19:38:24 +0000 (19:38 +0000)]
Add unobscure event so that we can rebuild the bar after dmenu exits.
Marco Peereboom [Wed, 14 Jan 2009 19:23:16 +0000 (19:23 +0000)]
Add initial dmenu support with alt-p
Marco Peereboom [Wed, 14 Jan 2009 19:08:56 +0000 (19:08 +0000)]
Some X apps work now such as gvim and firefox
Marco Peereboom [Wed, 14 Jan 2009 17:14:05 +0000 (17:14 +0000)]
Spacing
Marco Peereboom [Wed, 14 Jan 2009 17:10:52 +0000 (17:10 +0000)]
Add .conf file support
Marco Peereboom [Wed, 14 Jan 2009 14:25:19 +0000 (14:25 +0000)]
Fix last switchws bugglet where the bar appeared empty.
Ryan McBride [Wed, 14 Jan 2009 07:24:05 +0000 (07:24 +0000)]
Make sure all workspaces get restacked after the bar is toggled.
Marco Peereboom [Wed, 14 Jan 2009 07:00:38 +0000 (07:00 +0000)]
Add alt-b for toggling tool bar. One little bug leftover when switching
between ws and toggling the bar.