Commit graph

726 commits

Author SHA1 Message Date
Lawrence Teo
b4f18a38d0 search_win's key binding should be M-f on the manpage.
Reported by user jrh via the scrotwm forum (thank you!).
2012-01-12 20:37:47 -05:00
Marco Peereboom
febbd42900 Prepare for release 0.10.0. 2012-01-11 12:42:56 -06:00
Lawrence Teo
c9ca43ac66 Fix a crash when mvws_n is used in an empty workspace.
mvws_n invokes send_to_ws(), which in turn calls focus() to focus on
the previous window before sending the current window to the desired
workspace. The TAILQ_PREV() call in focus() will fail if there are no
windows in the current workspace.

This commit adds a safeguard to focus() by ensuring that the list of
windows in the current workspace is not empty and that there is at
least one uniconified window to focus on before proceeding.

This commit also modifies send_to_ws() to set r->ws->focus to NULL if
there are no more windows in the workspace after sending the current
window to another workspace. This fixes an odd behavior where you can
"summon" a window that you have previously moved to another workspace,
even though you are in an empty workspace.

Closes FS#191

ok marco
2012-01-09 20:45:49 -05:00
Lawrence Teo
2288fb7961 Skip iconified windows correctly.
This fixes a bug where the focus_next and focus_prev actions will get
"stuck" when an iconified window is in the way.

ok marco
2012-01-04 21:32:51 -05:00
Lawrence Teo
924aaecaaa Fixes an oversight so that BUILDVERSION gets properly defined, as well
as remove some debug stuff I forgot to remove earlier.

From: Niclas Zeising <zeising@daemonic.se>

ok marco
2011-12-28 21:38:44 -05:00
Lawrence Teo
b93600b201 Makefile and util.h for FreeBSD.
From: Niclas Zeising <zeising@daemonic.se>

ok marco
2011-12-12 23:13:54 -05:00
Lawrence Teo
7d6b9cfdce Reformat CONFIGURATION FILES section for better readability.
From: Tiago Cunha <tcunha@gmx.com>

ok marco
2011-12-12 23:10:30 -05:00
Lawrence Teo
b32473d675 Improve status bar refresh code:
- Refresh status bar (if name/class/title are enabled) when no window
  can be focused, so that the name/class/title will be cleared.

- Handle window class/name change events to refresh the bar when appropriate.

- Move XA_WM_NORMAL_HINTS into the '#if 0' block, since the status bar
  should not need to be updated for that event.

From: Splex <splecks@rejii.com>

ok marco
2011-12-10 22:49:49 -05:00
Lawrence Teo
7392ce9247 Make error messages use errno when available.
While here, remove a few newlines that are already appended by err(3).

From: Tiago Cunha <tcunha@gmx.com>

ok marco
2011-12-07 21:53:12 -05:00
Lawrence Teo
4e4fb3fa84 .gitignore 2011-12-06 22:29:13 -05:00
Lawrence Teo
350001b025 Remove BUGS section, since our dependence on dmenu is no longer
considered a bug. :)

ok marco
2011-12-06 22:26:04 -05:00
Lawrence Teo
a8c625928e scrotwm_se.conf: Swedish keyboard_mapping file.
From: Niclas Zeising <zeising@daemonic.se>
2011-12-06 22:15:56 -05:00
Lawrence Teo
9ac89dc393 scrotwm_fr_ch.conf: Swiss French keyboard_mapping file.
From user tmow via the scrotwm forum:
https://opensource.conformal.com/fluxbb/viewtopic.php?id=283

ok marco
2011-12-05 22:46:24 -05:00
Lawrence Teo
87fe9fc33a Revert previously removed variable that is needed in debug mode.
Spotted by Splex <splecks@rejii.com>
2011-12-04 22:15:06 -05:00
Lawrence Teo
4762763ca6 Remove set but unused variables.
From thib

ok marco
2011-12-03 22:36:14 -05:00
Lawrence Teo
51385d445d Fix invalid action: reset_layout should be stack_reset.
From: Tiago Cunha <tcunha@gmx.com>

ok marco
2011-11-30 22:44:25 -05:00
Lawrence Teo
726356b44e Change search_win's key binding to M-f since M-s is already taken by
screenshot_all (oops!)

Spotted by thib.

While there, change the example key binding for firefox from M-f to
M-S-b.

"groovy" marco
2011-11-29 21:59:03 -05:00
Thordur Bjornsson
03de52ac93 Work around dmenu version incompatibilities.
Older versions of dmenu (4.2.1) do not send the newline character
long with the response while newer versions (4.4.2) do, this
causes mild bugs (last char in the name of the workspace gets
lobbed off for example). Fix it by sanitizing the string in the
response handler.

Tested by me & lteo with different dmenu version.
OK lteo, marco
2011-11-29 23:59:13 +00:00
Lawrence Teo
bf9901fca7 Search windows in the current workspace.
Pressing M-s will show a little numbered box on the top-left of each
window. You can switch focus to the desired window by typing its number
and pressing Enter. This lets you focus on a window instantly without
needing to cycle through other windows.

ok marco
2011-11-28 23:49:53 -05:00
Lawrence Teo
63eea69087 Name and search workspaces.
Workspaces can be searched by either name or number.

ok marco
2011-11-28 23:49:52 -05:00
Lawrence Teo
1bded57c64 Extend the uniconify code to support upcoming search-based features.
ok marco
2011-11-28 23:49:03 -05:00
Lawrence Teo
1c354dfac0 Cycle through all workspaces (empty or not) with M-<Up> and M-<Down>.
Adapted from a diff by Splex <splecks@rejii.com>

ok marco
2011-11-28 22:48:16 -05:00
Lawrence Teo
5f4a3fbd1a Allow status bar text to be left-, center-, or right-justified.
Adapted from a diff by Tiago Cunha <tcunha@gmx.com>

ok marco
2011-11-28 22:48:08 -05:00
Marco Peereboom
ec9086aab1 Make time localized too.
Closes FS#71
From: valere monseur (dobedo)
2011-11-28 09:50:50 -06:00
Lawrence Teo
3036d4f595 Put new sentences on new lines.
From: Tiago Cunha <tcunha@gmx.com>

ok marco
2011-11-27 22:42:38 -05:00
Lawrence Teo
5b0a67a9cb Print ws_n and mvws_n properly
From: Tiago Cunha <tcunha@gmx.com>

ok marco
2011-11-21 22:14:48 -05:00
Lawrence Teo
a5b93632b1 Fix incorrect action name: stack_del should be stack_dec
From: Tiago Cunha <tcunha@gmx.com>

ok marco
2011-11-21 22:12:31 -05:00
marco
82e158a61f Merge branch 'master' of ssh://opensource.conformal.com/git/scrotwm 2011-11-17 19:55:41 -06:00
marco
c9b0bc3c9d Make stack_enable work again.
From: Tiago Cunha <tcunha@gmx.com>
2011-11-17 19:55:05 -06:00
Lawrence Teo
60d2953634 fix an fd leak
ok marco
2011-11-17 19:05:31 -05:00
Lawrence Teo
1c5ff0292b list keyboard mapping files in their own section
ok marco
2011-11-12 22:54:48 -05:00
Lawrence Teo
0136b6b965 mention Czech Republic keyboard mapping file scrotwm_cz.conf on manpage 2011-11-11 00:53:05 -05:00
Marco Peereboom
12af088b16 Add CZ keyboard map.
From: ARIGATO353 <arigato353@gmail.com>
2011-11-10 10:29:49 -06:00
Lawrence Teo
0c05b6d38d uncomment all bind[] lines in scrotwm_{us,es}.conf so that they will
apply by default when keyboard_mapping is used

ok marco
2011-11-01 23:02:26 -04:00
Lawrence Teo
a628bd8eed let scrotwm build on Linux again
ok marco
2011-11-01 22:59:54 -04:00
marco
8d058c8d34 Merge branch 'master' of ssh://opensource.conformal.com/git/scrotwm 2011-11-01 10:22:26 -05:00
Grégoire Duchêne
492641ac10 Add French keyboard support
From Gregoire Duchene <gduchene@fastmail.net>
2011-11-01 10:20:41 -05:00
marco
d5d74890e7 Mention French keyboard conf file 2011-11-01 10:07:57 -05:00
Grégoire Duchêne
9644988f2c French key bindings patch
Here you go! I hope this is sufficient.

--
Greg

From 63dbe4bf3070a5ec8bffe1bc2bc0738f6c7eb97e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Duch=C3=AAne?= <gduchene@fastmail.net>
Date: Tue, 1 Nov 2011 15:00:28 +0100
Subject: [PATCH] scrotwm_fr.conf keyboard_mapping file for the French
 keyboard layout
2011-11-01 10:04:04 -05:00
Lawrence Teo
7510a38ce9 fix mandoc -Tlint warnings
ok marco
2011-10-27 21:37:11 -04:00
Lawrence Teo
befcf15917 new release script and versioning scheme for scrotwm
(adapted from xxxterm)

ok marco
2011-10-26 00:57:00 -04:00
Lawrence Teo
1451b60da6 scrotwm_es.conf keyboard_mapping file for the Spanish keyboard layout
Several key bindings were selected with a lot of help and testing by
Gonzalo L. R. <gonzalo@x61.com.ar>

ok marco
2011-10-25 23:06:49 -04:00
Lawrence Teo
f70e9b6b3a scrotwm_us.conf keyboard_mapping file for the US keyboard layout
The key bindings in this file are the default values used by scrotwm

ok marco
2011-10-25 23:04:10 -04:00
Lawrence Teo
9c3aa396f4 new keyboard_mapping option to load pre-defined key bindings for
different keyboard layouts

ok marco
2011-10-25 22:42:57 -04:00
Marco Peereboom
8eb6cfee63 kill cvs tags 2011-10-25 15:54:39 -05:00
Marco Peereboom
a5db305980 remove html stuff, we keep it all in the wiki now 2011-10-25 15:22:07 -05:00
Marco Peereboom
50549aa1ce remove port stuff 2011-10-25 15:21:20 -05:00
Marco Peereboom
163f135835 Merge branch 'master' of opensource.conformal.com:/git/scrotwm 2011-10-25 15:20:18 -05:00
Marco Peereboom
9debc3f2ad add fpic 2011-10-25 15:19:50 -05:00
Marco Peereboom
ff40361700 Fancy clang stuff 2011-10-25 15:19:29 -05:00