Commit graph

1319 commits

Author SHA1 Message Date
Marco Peereboom
3356f1ccd4 Update bar more often and remove ./ from baraction.sh 2009-02-20 14:28:32 +00:00
Marco Peereboom
1494ae5cc8 New man 2009-02-18 21:07:36 +00:00
Marco Peereboom
e17d2f0255 Bump version for snap 2009-02-18 20:42:31 +00:00
Marco Peereboom
6ddc03b50d Add clock format from merdely 2009-02-18 20:34:26 +00:00
Ryan McBride
f1d671a567 Also use terminus-medium in the sample scrotwm.conf. 2009-02-17 04:04:05 +00:00
Ryan McBride
4e54852f68 Terminus fonts changed in OpenBSD -current, make sure we specify medium
otherwise the bar is bold.
2009-02-17 03:10:53 +00:00
Marco Peereboom
4d04757a77 Fix crash 2009-02-16 04:45:35 +00:00
Marco Peereboom
d21f9c38fd Add modkey 2009-02-16 00:06:49 +00:00
Marco Peereboom
6d109bd692 .conf entry for modkey so that pepople will stop pestering me for the
windows key mod.
2009-02-16 00:03:53 +00:00
Marco Peereboom
74a35e47dc Embed wmname code from suckless.org to work around stupid sun shit. 2009-02-15 23:23:24 +00:00
Marco Peereboom
5f7c713e63 quirk Firefox Dialog 2009-02-15 22:56:15 +00:00
Ryan McBride
0266c3c6c3 If the master window already has focus when M-m is pressed, switch focus
back to the previously focused window, to match the behaviour of M-enter.

Pointed out by jacekm@.
2009-02-13 00:47:21 +00:00
Marco Peereboom
762accdc02 mcbrides crazy baraction.sh overflows the bar so make it bigger 2009-02-12 22:28:14 +00:00
Marco Peereboom
76ccafd502 Fix missing bars when going multiscreen or in freebsd. Reported by
Tom Doherty <tdoherty@nyx.com>
2009-02-12 22:09:44 +00:00
Marco Peereboom
9a45e3891c Kill some {} 2009-02-12 21:14:14 +00:00
Marco Peereboom
b324240783 Beware of stolen code for it was written on little endian and 32 bits. 2009-02-12 20:58:04 +00:00
Marco Peereboom
0acaa22173 Add pcb quirk. From Mark Peoples <marco@tuppy.intrepidhosting.net> 2009-02-12 17:48:05 +00:00
Ryan McBride
afeb7d2239 Reset xterm font sizes on startup in case we restarted with scaled fonts. 2009-02-11 07:24:02 +00:00
Ryan McBride
5434fc5516 Rework the sample baraction.sh to use iostat -C rather than the sleep
as its timer, printing CPU stats as well as APM status.
2009-02-11 07:17:06 +00:00
Marco Peereboom
14120c68fd Add full screen quirk and make mplayer and xine use it. 2009-02-11 06:02:24 +00:00
Marco Peereboom
86961e0bd6 Add new options 2009-02-10 20:32:53 +00:00
Marco Peereboom
84eeb7d1a5 Bump version for snap. 2009-02-10 20:29:55 +00:00
Marco Peereboom
09cb8b2d13 Add delete window as requested by beck 2009-02-10 18:16:10 +00:00
Marco Peereboom
a1d2fb7ac3 Put some lower bounds on resize; from Alexander Hall 2009-02-10 05:02:17 +00:00
Marco Peereboom
32edf2c5ac Fix all kinds of chicken and egg problems with the bar as reported by
various people
2009-02-10 04:40:29 +00:00
Ryan McBride
a1e07044ac Fix another horizontal calculation bug. Both this and the previous from
over-zealous cut-n-paste.
2009-02-09 04:40:11 +00:00
Ryan McBride
00d265b841 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.
2009-02-09 04:12:09 +00:00
Marco Peereboom
7a67c7b461 Not sure if this works but at least has a fighting chance. 2009-02-08 04:10:00 +00:00
Ryan McBride
bbb499e87a 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.
2009-02-07 19:49:58 +00:00
Ryan McBride
4b709171ee 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.
2009-02-07 19:21:00 +00:00
Ryan McBride
cd107085f1 More stacking cleanup, and fix the divide-by-zero reported by pyr. 2009-02-04 08:58:54 +00:00
Marco Peereboom
0038bbea9c Remove fixed bug 2009-02-03 22:27:41 +00:00
Marco Peereboom
2d53c59cc3 New man 2009-02-03 22:25:35 +00:00
Marco Peereboom
601c699a89 Bump version for snap 2009-02-03 22:19:40 +00:00
Marco Peereboom
fd728cbbe4 *sigh* fix corner case where windows were being mapped from a different
workspace after alt-q.
2009-02-03 22:04:50 +00:00
Marco Peereboom
1b589d81a4 Add gimp as a full floating app and fix missing floaters. 2009-02-03 21:50:16 +00:00
Marco Peereboom
3c148e4d1f Add M-S-i 2009-02-03 16:42:39 +00:00
Marco Peereboom
914f1c9d34 Add M-S-i for windows-envy multiscreen support. This calls an external
script that does the xrandr magic.
2009-02-03 16:37:56 +00:00
Ryan McBride
3c99b00a53 Better, hopefully math-exception-free logic for multi-column stacker, and
fix off-by-two error in stack width calculations.
2009-02-03 14:49:40 +00:00
Marco Peereboom
f6a25b1910 mcbride knocked 2 more out 2009-02-03 13:32:36 +00:00
Ryan McBride
80969cf8c2 Add M-S-, and M-S-. keybindings to add and remove columns (vertical stack)
or rows (horizontal stack) from the stacking (non-master) area.
2009-02-03 13:13:30 +00:00
Ryan McBride
ec9567149f 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
2009-02-03 06:45:53 +00:00
Marco Peereboom
f5f7f0d8ee Oops from mcbride and some style and a comment. 2009-02-03 06:38:25 +00:00
Ryan McBride
08390e53a1 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)
2009-02-03 05:08:27 +00:00
Marco Peereboom
e9824be628 Check if we are changing workspaces and only unmanage the window if we
are not.
2009-02-03 02:21:01 +00:00
Marco Peereboom
9603301049 Oops do some focus magic just as before. Note this is still hosed due to
enternotify but that is an older issue.
2009-02-03 00:54:35 +00:00
Marco Peereboom
a7d3c9fae6 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.
2009-02-03 00:50:01 +00:00
Ryan McBride
97f28c42c7 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.
2009-02-01 11:59:40 +00:00
Ryan McBride
4cd489c8fd Silence format string warnings with debug enabled;
"Window" is not int (%d), it's unsigned long (%lu).
2009-02-01 10:05:25 +00:00
Ryan McBride
0fef71b6c4 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>.
2009-02-01 07:42:12 +00:00