Marco Peereboom [Thu, 12 Feb 2009 17:48:05 +0000 (17:48 +0000)]
Add pcb quirk. From Mark Peoples <marco@tuppy.intrepidhosting.net>
Ryan McBride [Wed, 11 Feb 2009 07:24:02 +0000 (07:24 +0000)]
Reset xterm font sizes on startup in case we restarted with scaled fonts.
Ryan McBride [Wed, 11 Feb 2009 07:17:06 +0000 (07:17 +0000)]
Rework the sample baraction.sh to use iostat -C rather than the sleep
as its timer, printing CPU stats as well as APM status.
Marco Peereboom [Wed, 11 Feb 2009 06:02:24 +0000 (06:02 +0000)]
Add full screen quirk and make mplayer and xine use it.
Marco Peereboom [Tue, 10 Feb 2009 20:32:53 +0000 (20:32 +0000)]
Add new options
Marco Peereboom [Tue, 10 Feb 2009 20:29:55 +0000 (20:29 +0000)]
Bump version for snap.
Marco Peereboom [Tue, 10 Feb 2009 18:16:10 +0000 (18:16 +0000)]
Add delete window as requested by beck
Marco Peereboom [Tue, 10 Feb 2009 05:02:17 +0000 (05:02 +0000)]
Put some lower bounds on resize; from Alexander Hall
Marco Peereboom [Tue, 10 Feb 2009 04:40:29 +0000 (04:40 +0000)]
Fix all kinds of chicken and egg problems with the bar as reported by
various people
Ryan McBride [Mon, 9 Feb 2009 04:40:11 +0000 (04:40 +0000)]
Fix another horizontal calculation bug. Both this and the previous from
over-zealous cut-n-paste.
Ryan McBride [Mon, 9 Feb 2009 04:12:09 +0000 (04:12 +0000)]
Don't use an uninitialised variable when calculating the width of the master
area; while we're here, handle the case where the first window is floating,
or there are no tiled windows at all. Sizing issue reported by azmarco.
Marco Peereboom [Sun, 8 Feb 2009 04:10:00 +0000 (04:10 +0000)]
Not sure if this works but at least has a fighting chance.
Ryan McBride [Sat, 7 Feb 2009 19:49:58 +0000 (19:49 +0000)]
Let scrotwm adjust the font size on xterms as it squishes them in tiling
mode to keep the terminal width above a certan size (set with 'term_width'
in the config file.
We do this by sending the default font size change keystrokes to the xterm
in question. Because xterm does not accept 'synthetic' keystroke events by
default, and we don't want to force users to enable acceptSendEvents for
security reasons, hook XtAppNextEvent in the LD_PRELOAD hack, and clear
the send_event flag on the events in question. CAVEAT: Only works if xterm
is not setuid/setgid.
Ryan McBride [Sat, 7 Feb 2009 19:21:00 +0000 (19:21 +0000)]
Try to keep track of the previous focus in each workspace, and do something
more intuitive when the user does M-enter twice: swap the windows back.
Ryan McBride [Wed, 4 Feb 2009 08:58:54 +0000 (08:58 +0000)]
More stacking cleanup, and fix the divide-by-zero reported by pyr.
Marco Peereboom [Tue, 3 Feb 2009 22:27:41 +0000 (22:27 +0000)]
Remove fixed bug
Marco Peereboom [Tue, 3 Feb 2009 22:25:35 +0000 (22:25 +0000)]
New man
Marco Peereboom [Tue, 3 Feb 2009 22:19:40 +0000 (22:19 +0000)]
Bump version for snap
Marco Peereboom [Tue, 3 Feb 2009 22:04:50 +0000 (22:04 +0000)]
*sigh* fix corner case where windows were being mapped from a different
workspace after alt-q.
Marco Peereboom [Tue, 3 Feb 2009 21:50:16 +0000 (21:50 +0000)]
Add gimp as a full floating app and fix missing floaters.
Marco Peereboom [Tue, 3 Feb 2009 16:42:39 +0000 (16:42 +0000)]
Add M-S-i
Marco Peereboom [Tue, 3 Feb 2009 16:37:56 +0000 (16:37 +0000)]
Add M-S-i for windows-envy multiscreen support. This calls an external
script that does the xrandr magic.
Ryan McBride [Tue, 3 Feb 2009 14:49:40 +0000 (14:49 +0000)]
Better, hopefully math-exception-free logic for multi-column stacker, and
fix off-by-two error in stack width calculations.
Marco Peereboom [Tue, 3 Feb 2009 13:32:36 +0000 (13:32 +0000)]
mcbride knocked 2 more out
Ryan McBride [Tue, 3 Feb 2009 13:13:30 +0000 (13:13 +0000)]
Add M-S-, and M-S-. keybindings to add and remove columns (vertical stack)
or rows (horizontal stack) from the stacking (non-master) area.
Ryan McBride [Tue, 3 Feb 2009 06:45:53 +0000 (06:45 +0000)]
More cleanup found while debugging my last silly mistake.
- don't ask for Xrandr events until we've set up the screens
- don't use an iterator for more than one thing at a time
- we don't need to handle RRNotify messages
- Move some bits around to fix compile on certain non-OpenBSD platforms
- Other cleanup and de-obfuscation
Marco Peereboom [Tue, 3 Feb 2009 06:38:25 +0000 (06:38 +0000)]
Oops from mcbride and some style and a comment.
Ryan McBride [Tue, 3 Feb 2009 05:08:27 +0000 (05:08 +0000)]
Subscribe to xrandr events, and update our regions dynamically.
Keep a list of old regions around to reuse the region to ws mapping (and
other parameters later)
Marco Peereboom [Tue, 3 Feb 2009 02:21:01 +0000 (02:21 +0000)]
Check if we are changing workspaces and only unmanage the window if we
are not.
Marco Peereboom [Tue, 3 Feb 2009 00:54:35 +0000 (00:54 +0000)]
Oops do some focus magic just as before. Note this is still hosed due to
enternotify but that is an older issue.
Marco Peereboom [Tue, 3 Feb 2009 00:50:01 +0000 (00:50 +0000)]
Add quirk for retarded dialog window sizes and make firefox use it.
Do not resize dialogs unless retarded.
Add unmanager_window so that windows that are unmapped and are transient
are no longer managed; xpdf needs this and other apps dont seem to care.
Ryan McBride [Sun, 1 Feb 2009 11:59:40 +0000 (11:59 +0000)]
Support user-defined regions. Lets you split monster monitors into multiple
regions, or override scrotwm's multi-head autodetection (such as on video
drivers that do multihead without telling X).
Also a big step towards dynamic Xrandr support.
Ryan McBride [Sun, 1 Feb 2009 10:05:25 +0000 (10:05 +0000)]
Silence format string warnings with debug enabled;
"Window" is not int (%d), it's unsigned long (%lu).
Ryan McBride [Sun, 1 Feb 2009 07:42:12 +0000 (07:42 +0000)]
We have more than one file now, and the licenses are not exactly the same,
update to reflect this. Also mention & link to license.template, and remove
epitome remenants from <title>.
Marco Peereboom [Sun, 1 Feb 2009 05:29:43 +0000 (05:29 +0000)]
Add lock screen
Marco Peereboom [Sun, 1 Feb 2009 05:01:16 +0000 (05:01 +0000)]
Add some features and more screenshots
Marco Peereboom [Sun, 1 Feb 2009 04:16:58 +0000 (04:16 +0000)]
New man
Marco Peereboom [Sun, 1 Feb 2009 04:03:40 +0000 (04:03 +0000)]
Bump version for snap
Marco Peereboom [Sun, 1 Feb 2009 03:04:45 +0000 (03:04 +0000)]
no {} around DNPRINTF.
Ryan McBride [Sun, 1 Feb 2009 01:45:43 +0000 (01:45 +0000)]
Put transient windows into the current workspace, regardless of any
inherited window properties.
Ryan McBride [Sun, 1 Feb 2009 01:42:08 +0000 (01:42 +0000)]
Document M-t: Toggle focused window between tiled and floating
Ryan McBride [Sun, 1 Feb 2009 01:39:25 +0000 (01:39 +0000)]
Drag tiled windows to floating; toggle windows between floating and tiled
with M-t. Also some backend fixups; stack all tiled windows first, then
floating windows, so order in the list doesn't matter.
Todd Fries [Sat, 31 Jan 2009 16:31:22 +0000 (16:31 +0000)]
fix anoncvs to be the right hostname, so host keys do not get reported as changing
Marco Peereboom [Fri, 30 Jan 2009 20:59:20 +0000 (20:59 +0000)]
Make resize smarter so that M-M3 resizes the window without centering it
and M-S-M3 keeps the old behavior.
Marco Peereboom [Fri, 30 Jan 2009 20:33:51 +0000 (20:33 +0000)]
Add version stuff
Marco Peereboom [Fri, 30 Jan 2009 20:16:01 +0000 (20:16 +0000)]
Add version to bar when M-S-v is pressed. We will need it to debug at
some point.
Marco Peereboom [Fri, 30 Jan 2009 03:51:01 +0000 (03:51 +0000)]
Fix a silly crash
Marco Peereboom [Thu, 29 Jan 2009 22:37:58 +0000 (22:37 +0000)]
New man file
Marco Peereboom [Thu, 29 Jan 2009 22:36:20 +0000 (22:36 +0000)]
remove one item and add snapshot link
Marco Peereboom [Thu, 29 Jan 2009 22:31:27 +0000 (22:31 +0000)]
Fix smaller than possible resize.
Marco Peereboom [Thu, 29 Jan 2009 22:19:44 +0000 (22:19 +0000)]
Add resize and move action.
Marco Peereboom [Thu, 29 Jan 2009 22:15:15 +0000 (22:15 +0000)]
Add move window as well.
Marco Peereboom [Thu, 29 Jan 2009 21:55:51 +0000 (21:55 +0000)]
Redo man
/me <3 jmc
Marco Peereboom [Thu, 29 Jan 2009 21:41:00 +0000 (21:41 +0000)]
Move mouse back onto the border to retain focus on resized window.
Marco Peereboom [Thu, 29 Jan 2009 21:38:49 +0000 (21:38 +0000)]
Resize transient & floating windows with alt-mouse3. Keeps the window in
the middle of the screen because I am not sure if that isn'y what we wnat
yet. For mplayer it is nice to keep it in the middle.
Marco Peereboom [Thu, 29 Jan 2009 20:35:01 +0000 (20:35 +0000)]
Move class names into ws_win; this will make debug easy because now we
can print the name of the window as well.
Marco Peereboom [Thu, 29 Jan 2009 20:27:11 +0000 (20:27 +0000)]
Add class code so that we can quirk certain apps.
Add beginnings of propertynotify to deal with property changes.
Marco Peereboom [Wed, 28 Jan 2009 21:14:08 +0000 (21:14 +0000)]
Make full screen actually full screen and move window so that border is out
of sight.
Marco Peereboom [Wed, 28 Jan 2009 20:58:39 +0000 (20:58 +0000)]
KNF
Add cvs tag as a string that is printed at startup.
Marco Peereboom [Wed, 28 Jan 2009 17:46:55 +0000 (17:46 +0000)]
open /dev/null on stdin during spawn. pointed out by mcbride and it fixes
mplayer when launched from firefox and when firefox was launched from dmenu
Also move focus to the bottom of manage_window.
Marco Peereboom [Wed, 28 Jan 2009 04:57:32 +0000 (04:57 +0000)]
Add bugs and todo. Need the bugs because i keep forgetting.
Marco Peereboom [Wed, 28 Jan 2009 04:45:45 +0000 (04:45 +0000)]
Move some more declarations to where they belong.
Marco Peereboom [Wed, 28 Jan 2009 04:36:22 +0000 (04:36 +0000)]
Bump man
Marco Peereboom [Wed, 28 Jan 2009 03:29:33 +0000 (03:29 +0000)]
Bump version to roll a snap
Marco Peereboom [Wed, 28 Jan 2009 00:21:39 +0000 (00:21 +0000)]
One more item done
Marco Peereboom [Tue, 27 Jan 2009 21:30:18 +0000 (21:30 +0000)]
Prevent acessing pointer that has been freed.
Still one weird focus bug leftover where when the last window in a ws gets
destroyed and if there is a window on the alternate screen it gets focus.
Marco Peereboom [Tue, 27 Jan 2009 19:56:47 +0000 (19:56 +0000)]
Add cycle through regions; aka move pointer.
Fix bug where windows from another ws remained mapped after restart.
Fix focus bug where sometimes the pointer was NULL.
Marco Peereboom [Tue, 27 Jan 2009 16:18:10 +0000 (16:18 +0000)]
Add screenshot_app to conf
Marco Peereboom [Tue, 27 Jan 2009 16:16:20 +0000 (16:16 +0000)]
Add tags
Marco Peereboom [Tue, 27 Jan 2009 07:36:49 +0000 (07:36 +0000)]
Do screenshots and add example script for it.
Marco Peereboom [Tue, 27 Jan 2009 06:50:57 +0000 (06:50 +0000)]
Bad mcbride leaking memory and char * in the wrong spot.
Marco Peereboom [Sun, 25 Jan 2009 21:48:06 +0000 (21:48 +0000)]
Move int back where it belongs.
Ryan McBride [Sun, 25 Jan 2009 17:56:01 +0000 (17:56 +0000)]
Adjust window sizes to match height and width increment hints.
Minimizes wasted space on xterms.
Ryan McBride [Sun, 25 Jan 2009 10:54:16 +0000 (10:54 +0000)]
Support placing the master area on the opposite side.
Ryan McBride [Sun, 25 Jan 2009 10:43:20 +0000 (10:43 +0000)]
Replace the vertical_stack() and horizontal_stack() logic with one
function that rotates appropriately.
Marco Peereboom [Sun, 25 Jan 2009 04:12:11 +0000 (04:12 +0000)]
Remove screenshot since we have it; just not as pretty as one would like.
Marco Peereboom [Sun, 25 Jan 2009 04:09:01 +0000 (04:09 +0000)]
Update pics
Marco Peereboom [Sun, 25 Jan 2009 03:36:15 +0000 (03:36 +0000)]
color *sigh*
Marco Peereboom [Sun, 25 Jan 2009 03:34:51 +0000 (03:34 +0000)]
Update
Marco Peereboom [Sun, 25 Jan 2009 03:12:34 +0000 (03:12 +0000)]
MapRaised in max_stack to bring window into focus.
Marco Peereboom [Sun, 25 Jan 2009 01:50:27 +0000 (01:50 +0000)]
Add screenshot
Marco Peereboom [Sun, 25 Jan 2009 01:46:44 +0000 (01:46 +0000)]
Add initial screenshot support
Marco Peereboom [Sat, 24 Jan 2009 23:52:28 +0000 (23:52 +0000)]
Move html into own dir
Marco Peereboom [Sat, 24 Jan 2009 23:51:08 +0000 (23:51 +0000)]
Move delay back to 59
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