Commit graph

97 commits

Author SHA1 Message Date
Reginald Kennedy
a30bbbbdd6 Add support for XDG Base Directory Specification.
New conf search order:
1) $XDG_CONFIG_HOME/spectrwm/spectrwm.conf
2) ~/.config/spectrwm/spectrwm.conf
   (if $XDG_CONFIG_HOME is either not set or empty)
3) ~/.spectrwm.conf
4) $XDG_CONFIG_DIRS/spectrwm/spectrwm.conf
   (each colon-separated directory in $XDG_CONFIG_DIRS)
5) /etc/xdg/spectrwm/spectrwm.conf
   (if $XDG_CONFIG_DIRS is either not set or empty)
6) /etc/spectrwm.conf
2019-08-05 09:01:06 +01:00
cmanv
bdca10de91 Multi-section status bar, unicode icons, font and color text markup 2019-07-31 08:38:12 +01:00
Björn Ketelaars
8801799618 Extend disable_border option with always.
Setting `disable_border = always` removes border from lone tiled
windows, regardless of the bar being enabled/disabled. This is an
addition to an existing feature, and does not change existing behaviour.
2019-01-11 03:39:34 +08:00
Reginald Kennedy
6331a294b3 Add new configurable status bar workspace list indicator.
Enable by adding +L to bar_format.

Add new bar_format character sequence: +L

Add new conf option: workspace_indicator

Closes #113 and closes #170
2018-09-07 22:49:22 +08:00
Reginald Kennedy
d781d4e881 Add new actions to directly switch layout:
layout_vertical
	layout_horizontal
	layout_max
Unbound by default.

Add "max" alias for "fullscreen" layout option and adjust man page.

Closes #210
2018-09-07 21:40:47 +08:00
Reginald Kennedy
712efd1c36 Add new ws_empty_move action.
Switches to the first empty workspace and moves the current window.
Unbound by default.
2018-09-07 12:29:37 +08:00
Reginald Kennedy
c554299020 Additional spectrwm.1 fixes.
Fix sentences that were not starting on a new line.

Fix author section macros.

Cleanup 80 col.
2018-03-29 10:00:04 +08:00
orbea
123016c534 spectrwm.1: Silence mandoc warnings
man: /usr/man/man1/spectrwm.1.gz:231:18: WARNING: new sentence, new line
  man: /usr/man/man1/spectrwm.1.gz:986:71: WARNING: new sentence, new line

  new sentence, new line
  (mdoc) A new sentence starts in the middle of a text line. Start it on a
  new input line to help formatters produce correct spacing

  https://man.openbsd.org/mandoc.1
2018-03-29 09:09:37 +08:00
orbea
b34cb01ed6 spectrwm.1: Silence mandoc style warnings.
This silences the following warnings reported by mandoc.

  man: /usr/man/man1/spectrwm.1.gz:653:10: STYLE: no blank before trailing delimiter: Cm M-,
  man: /usr/man/man1/spectrwm.1.gz:655:10: STYLE: no blank before trailing delimiter: Cm M-.
  man: /usr/man/man1/spectrwm.1.gz:657:12: STYLE: no blank before trailing delimiter: Cm M-S-,
  man: /usr/man/man1/spectrwm.1.gz:659:12: STYLE: no blank before trailing delimiter: Cm M-S-.
  man: /usr/man/man1/spectrwm.1.gz:761:10: STYLE: no blank before trailing delimiter: Cm M-]
  man: /usr/man/man1/spectrwm.1.gz:765:12: STYLE: no blank before trailing delimiter: Cm M-S-]
2018-03-28 11:41:10 +08:00
Mike Meyer
79d583b791 Add +R for region index to bar formatting. 2017-10-03 23:52:42 +08:00
Reginald Kennedy
22167bcf2f Add new bar_color_selected and bar_font_color_selected options.
Allows for the convenient customization of dmenu selection colors.
Defaults to bar_border and bar_color, respectively.

closes #168
2017-10-03 21:36:33 +08:00
Reginald Kennedy
82efe69576 Add new 'ws_empty' action.
Switches to the first empty workspace.
Unbound by default.
2017-10-03 20:30:26 +08:00
K M Masum Habib
0b3636551c Enable padding in the bar_format using '_' character 2017-09-28 23:35:54 +08:00
Reginald Kennedy
bcef4a2d68 Remove java_workaround from man page since it is no longer used.
Some cleanup.
2017-09-07 22:20:37 +08:00
Andrea Bolognani
9d338b286b Fix man errors
Remove all uses of the .Cm macro that are immediately followed
by another macro, such as .Ns or .Aq.

[rk@rejii.com: tweak commit message; resolves 'man --warnings']
closes #138
2016-08-26 13:09:38 +08:00
Reginald Kennedy
6b0c4d1493 Add new fullscreen_toggle action.
Toggles _NET_WM_STATE_FULLSCREEN on the current window.
Default binding: M-S-e
2016-05-03 04:15:23 +08:00
Reginald Kennedy
f82969b59c Rename raise_focused to raise and set default binding to M-r.
Rename mvws_next and mvws_prev to mvrg_next and mvrg_prev, respectively.

Fix man page typo.

Tweak styling.
2016-05-03 03:43:53 +08:00
Campbell Barton
bc124ae0b2 Send window to next/previous regions workspace 2016-05-03 02:40:59 +08:00
Yuri D'Elia
df6ae9dcd4 Implement the "raise_focused" function 2016-05-03 01:48:51 +08:00
Reginald Kennedy
42bccafc30 Improve the bind[] option to accept pointer buttons.
Buttons are specified as Button<n> (case sensitive) where n is 1 to 255.

	Example:
	bind[move] = MOD+Button8

Existing pointer actions are now available for bind[]:
	focus - Focus window/region under pointer.
	move - Move window with pointer while binding is pressed.
	resize - Resize window with pointer while binding is pressed.
	resize_centered - Same as resize but keep window centered.

	Defaults:
	bind[focus] = ANYMOD+REPLAY+Button1
	bind[move] = MOD+Button1
	bind[resize] = MOD+Button3
	bind[resize_centered] = MOD+Shift+Button3

Button binds can be unbound the same as key binds:

	Example:
	bind[] = MOD+Button1 # unbind default move binding.

Add new special bind arguments:
	ANYMOD
	Binds all modifier combinations not handled by another binding.

	REPLAY
	Allows other programs to receive press/release events for bind.
	Unavailable for move, resize and resize_centered.
2015-05-22 08:41:30 +08:00
Reginald Kennedy
4e5c9bd680 Tweak the urgency indicator default padding for urgent_collapse = 1.
e.g. * 1 3* -> *1 3*

Add clarification for urgent_collapse in the man page.

closes #96
2015-05-14 13:05:40 +08:00
Reginald Kennedy
ee4e60a8d4 Sort quirks in man page. 2015-04-22 18:30:52 +08:00
Reginald Kennedy
978e4b1b00 Fix MINIMALBORDER on region focus cycling.
Fix quirk ordering in man page.
2015-04-19 18:31:29 +08:00
Yuri D'Elia
734f4a1b0e Add 'MINIMALBORDER' quirk to remove borders from floating/unfocused windows. 2015-04-16 22:14:22 +08:00
Reginald Kennedy
6638851238 Add new option: warp_focus
Focus on the target window/workspace/region when clamped.
For example, when attempting to switch to a workspace that is mapped on
another region and workspace_clamp is enabled, focus on the region with
the target workspace.  Enable by setting to 1.

Rename visible_noswap to workspace_clamp and update man page:
Prevents workspaces from being swapped when attempting to switch to a
workspace that is mapped to another region.  Use warp_focus if you want
to focus on the region containing the workspace and warp_pointer if you
want to also send the pointer.  Enable by setting to 1.

closes #80.
2015-02-28 04:05:37 +08:00
Jonathan Armani
0a755545f7 Document visible_noswap and at it in spectrwm.conf 2015-02-28 03:59:25 +08:00
Reginald Kennedy
79df455b47 Revert "Mouse button mapping config option, by levaidaniel"
This reverts commit e0e24c4fa6.
2015-02-28 02:23:32 +08:00
Reginald Kennedy
7709861107 Change rg_move_(prev|next) and stack_balance to be unbound by default.
Some cleanup.
2015-02-25 08:49:31 +08:00
Yuri D'Elia
6705289444 Implement rg_move_prev/rg_move_next to move workspaces across regions/screens. 2015-02-17 12:52:30 -06:00
Yuri D'Elia
5a6f9473f2 Add 'maximize_hide_bar' to also hide the bar when maximing a window. 2015-02-17 12:48:59 -06:00
Yuri D'Elia
f78f487b20 Implement quirk NOFOCUSCYCLE to remove a window from the normal focus cycle. 2015-02-17 12:42:33 -06:00
Yuri D'Elia
5af4c4b26b Implement stack_balance and assign it to M-S-<h,l> 2015-02-17 12:38:37 -06:00
Campbell Barton
e0e24c4fa6 Mouse button mapping config option, by levaidaniel
With modification not to enforce correct buttons when applying configuration.
Instead warn if an invalid configuration is set after loading the configuration.
2015-02-17 12:29:16 -06:00
shobute
99677cb82b Fixed bug in man page.
It was saying M-S-<Up> switches to the last visited workspace, but by
default it is M-a.
2014-12-30 10:45:59 +08:00
Reginald Kennedy
33d4117279 Add note to man page regarding autorun and LD_PRELOAD.
closes #72
2014-10-06 10:57:28 +08:00
Andrea Bolognani
087a459347 Man page fixes, mostly spacing related. 2014-09-09 22:47:15 +02:00
Andrea Bolognani
0063e6f13b Fix xscreensaver-command example. 2014-08-26 00:11:09 +02:00
Reginald Kennedy
18364e3dce Add new option: urgent_collapse
Enables hiding of placeholders in the urgency hint indicator for
workspaces that do not have any urgent windows.

Closes #60
2014-08-15 04:08:48 +08:00
Reginald Kennedy
638428ac07 Add new quirk: WS[n]
Forces a new window to appear on workspace n.

Closes #6
2014-08-15 04:04:42 +08:00
Andrea Bolognani
ebadaee5f9 Improve English man page.
The improvements fall into three categories:

  1. typos / grammar;
  2. internal consistency, eg. the format of all options is described
     using the same conventions;
  3. better semantics, eg. using .Ar instead of .Pa for arguments.
2014-08-09 18:50:16 +02:00
Reginald Kennedy
ae2989db90 Add new option: warp_pointer.
Centers the mouse pointer on the focused window when using key bindings
to change focus, switch workspaces, change regions, etc.
2014-08-08 06:02:27 +08:00
Jean-Philippe Ouellet
de157659cf fix typo s/fallowing/following/ 2014-06-17 14:08:37 -04:00
Reginald Kennedy
ca2de79bd2 Add new quirk IGNORESPAWNWS.
Ignore the spawn workspace when determining the initial workspace for a
new window.

resolves #11
2014-05-09 15:48:39 +08:00
Reginald Kennedy
8f2b071e3d Add new quirk IGNOREPID.
Ignore the PID when determining the initial workspace for a new window.
Especially useful for terminal windows that share a process.

closes #49
2014-05-09 15:48:39 +08:00
Reginald Kennedy
5e9a0de7ca Fix man page to use escape codes for aring å and pi π. 2014-05-09 15:48:39 +08:00
Reginald Kennedy
2c9a693ca9 Fix segfault when loading "layout" with non-zero parameters.
This affected multi-region. stack() must be called after the region bars
are created.

Fix layout entry in man page.

Fixes #38
2014-03-21 01:48:06 +08:00
Reginald Kennedy
91f1a47639 Add default maximize_toggle binding to man page. 2014-02-27 09:05:52 +08:00
Reginald Kennedy
2f1d83807d Add clarification for the 'name' option to man page.
Remove stray new paragraph macro in man page.

Closes #33 and closes #34
2014-02-27 09:05:40 +08:00
Reginald Kennedy
3677d289e8 Fix typo in man page. 2014-02-20 11:52:35 +08:00
Reginald Kennedy
a6032ff131 Add new OBEYAPPFOCUSREQ quirk.
When an application requests focus on the window via a
_NET_ACTIVE_WINDOW client message (source indication of 1), comply with
the request.
2014-02-07 23:37:39 +08:00