Commit graph

66 commits

Author SHA1 Message Date
Daniel Eklöf
8c9490e56c
doc: foot.5: mention default value for 'geometry' 2020-03-17 12:48:05 +01:00
Daniel Eklöf
a1ceb1f5ec
doc/foot.5: formatting fixes 2020-03-12 17:42:27 +01:00
Daniel Eklöf
a7b90b514c
doc/foot.5: mention that *all* actions can be used in mouse bindings 2020-03-12 17:24:54 +01:00
Daniel Eklöf
0e00b6fa15
doc/foot.5: add an example that uses Shift 2020-03-12 17:21:48 +01:00
Daniel Eklöf
5cbd0527d7
config: key-bindings: verify key combo isn't already mapped to another action 2020-03-12 17:19:09 +01:00
Daniel Eklöf
c58f9a9ef9
config: mouse-bindings: verify button isn't already mapped
A button may only be mapped to a single action. Detect when the user
tried to map the same button to multiple actions and error out.

To clear a binding (for example, to free up a button from the default
bindings), one can set the action it is bound to to
`NONE` (e.g. `primary-paste=NONE`).
2020-03-12 10:46:27 +01:00
Daniel Eklöf
45384839f0
config/input: implement mouse bindings
* New config section, "mouse-bindings", where bindings are defined on
  the form "action=BTN_<name>
* pointer_button() handler now scans the bindings list instead of
  hardcoding primary-paste to BTN_MIDDLE.
* The implementation handles single- double- and triple clicks in the
  bindings, but there is currently no way to define anything but a
  single-click binding in the configuration.
2020-03-12 10:20:05 +01:00
Daniel Eklöf
65ff582358
bindings: add minimize/maximize/fullscreen actions
These actions are by default not bound to anything.
2020-03-12 09:34:09 +01:00
Daniel Eklöf
214ef146a2
doc/foot.1: keyboard shortcuts: add pointer to foot(5) 2020-03-09 20:32:15 +01:00
Daniel Eklöf
dba880a088
doc/foot.5: document key bindings 2020-03-09 20:22:04 +01:00
Daniel Eklöf
27ef5b472a
config: change default CSD button width from 22 -> 26 2020-03-06 19:11:31 +01:00
Daniel Eklöf
c90d70b2bf
config: CSD borders are always invisible
That is, remove all configuration options and always draw them fully
transparent.
2020-03-03 18:18:59 +01:00
Daniel Eklöf
cb6616ef8a
render: csd: maximize: change default color to a lighter green 2020-03-02 21:11:17 +01:00
Daniel Eklöf
63a3d6ce03
render: csd: close: change default color to a lighter blue 2020-03-02 21:10:25 +01:00
Daniel Eklöf
b14c217fb6
render: csd: minimize: change default color to a lighter blue 2020-03-02 21:09:21 +01:00
Daniel Eklöf
9699c9b8bf
csd: initial implementation of minimize/maximize/close buttons 2020-03-02 20:29:28 +01:00
Daniel Eklöf
1f33b4a292
doc: foot.5: describe what each section in the configuration file does 2020-03-02 18:47:48 +01:00
Daniel Eklöf
74175b5bd1
config: prefer $SHELL over /etc/passwd
If the user hasn't configured a shell in footrc, use $SHELL. Only if
that variable isn't set do we use the shell from /etc/passwd.
2020-03-02 18:45:38 +01:00
Daniel Eklöf
22ce09eb44
config: make CSD user configurable
The user can now configure the following:

* Whether to prefer CSDs or SSDs. But note that this is only a hint to
  the compositor - it may deny our request. Furthermore, not all
  compositors implement the decoration manager protocol, meaning CSDs
  will be used regardless of the user configuration (GNOME/mutter
  being the most prominent one).
* Title bar size and color, including transparency
* Border size and color, including transparency

Also drop support for rendering the CSDs inside the main surface.
2020-03-02 18:42:49 +01:00
Daniel Eklöf
5717a0dfb0
config: change default geometry from 800x600 -> 700x500
If the display resolution *is* 800x600, using this size is bad since
there will typically be panels and other things on the screen too.

Not that 800x600 is something we expect to see in real life, but may
happen on virtual displays.
2020-02-29 11:01:23 +01:00
Daniel Eklöf
ac32bcda07
main: geometry defaults to 800x600 pixels 2020-02-25 19:05:48 +01:00
Daniel Eklöf
5c7fc3a0c7
README: add screenshot of sixel graphics 2020-02-22 22:04:28 +01:00
Daniel Eklöf
ae23023341
keymap: align backspace escapes with XTerm
Backspace now emits DEL for all non-ctrl modifier combos, and BS for
all ctrl modifier combos.

The alt modifier prefixes DEL/BS with ESC.

This also removes my own hack of mapping ctrl+backspace to
alt+backspace.

Describe backspace behavior in both the README and the man page.

TODO: implement DECBKM to allow applications to toggle the backspace
behavior.
2020-02-21 19:11:03 +01:00
Daniel Eklöf
3f3f1add9c
doc: foot.5: login-shell: add default value ('no') 2020-02-20 18:53:00 +01:00
Daniel Eklöf
84e54033ae
doc: foot.5: change 'shell' example, add login-shell 2020-02-20 18:49:23 +01:00
Daniel Eklöf
c1561e0c50
doc: add --login-shell 2020-02-20 18:36:52 +01:00
Daniel Eklöf
5b98510ea4
doc: foot.5: make 'pad' syntax/example clearer 2020-02-15 19:51:11 +01:00
Daniel Eklöf
faf3bdaec3
doc: foot.5: document new 'pad' configuration option 2020-02-15 19:02:05 +01:00
Daniel Eklöf
3f282a2f2e
footrc, doc/foot.5: improve documentation of 'shell', and mention --login 2020-02-11 19:57:15 +01:00
Daniel Eklöf
8716430450
input: ctrl+= increases font size, not resets it 2020-02-10 21:57:55 +01:00
Daniel Eklöf
4846e49bc7
doc: foot.1: keyboard shortcuts for font size adjument 2020-02-09 11:36:49 +01:00
Daniel Eklöf
82b8853f17
main: add --print-pid=FILE|FD
When specified, our PID is written to the specified file (or FD),
after we've successfully started up.
2020-02-05 19:54:16 +01:00
Daniel Eklöf
00d76784f4
main: add --print-pid=FILE|FD
When specified, our PID is written to the specified file (or FD),
after we've successfully started up.

Only applicable in server mode.
2020-02-05 19:53:50 +01:00
Daniel Eklöf
8f4ec9aa47
Implement --hold
When specified, we don't exit when the slave/client process exits.
2020-02-03 19:58:32 +01:00
Daniel Eklöf
3600099b52
doc: foot.1: document alt/meta characters 2020-01-20 21:28:15 +01:00
Daniel Eklöf
bd7a59f2e0
doc: foot.1: use BOLD for things that should by typed as-is 2020-01-20 21:27:52 +01:00
Daniel Eklöf
00479fe204
doc: slight change of wording for mouse-drag-to-select 2020-01-04 23:56:17 +01:00
Daniel Eklöf
14d897ac75
doc: document how to do block selections 2020-01-04 14:58:43 +01:00
Daniel Eklöf
1bc6917921
doc: add descriptions for ctrl+w and ctrl+shift+w in scrollback search 2020-01-04 14:58:29 +01:00
Daniel Eklöf
d32dfed235
doc: add headers to keyboard shortcuts for normal+scrollback search 2020-01-04 14:57:59 +01:00
Daniel Eklöf
6c52cc35c3
doc: foot.5: mention that setting workers=0 disables multithreading 2019-12-17 19:09:19 +01:00
Daniel Eklöf
9d09a09edd
doc: foot.1: add -c,--config 2019-12-17 19:09:09 +01:00
Daniel Eklöf
a71147a64d
doc: footclient.1: add -s,--server-socket 2019-12-14 13:01:54 +01:00
Daniel Eklöf
ccb3ce5df7
doc: foot.1: update with optional PATH argument to -s,--server 2019-12-14 13:01:37 +01:00
Daniel Eklöf
c2e81cd4b2
doc: foot.1: mention that selection is kept after ending a scrollback search 2019-11-29 22:09:08 +01:00
Daniel Eklöf
7b55f90b5b
doc: foot.1: highlight 'command' in the synopsis 2019-11-19 15:36:15 +01:00
Daniel Eklöf
e8c0bf6350
doc: foot.1: fix highlighting of reference to footclient 2019-11-19 14:02:17 +01:00
Daniel Eklöf
e46b963139
doc: foot.5: don't upper case 'one' in the middle of a sentence 2019-11-03 16:28:00 +01:00
Daniel Eklöf
db9fd03283
doc: foot.1: add description of the (mouse) wheel 2019-11-03 16:23:18 +01:00
Daniel Eklöf
ef101f0c96
doc: foot.1: spelling 2019-11-03 16:23:09 +01:00