Commit graph

893 commits

Author SHA1 Message Date
Daniel Eklöf
aba597d5cc main: print error and exit when we fail to find a conf file 2019-04-29 18:47:21 +02:00
Daniel Eklöf
d1c958aae0 wlr-protocols: bump 2019-04-25 19:26:53 +02:00
Daniel Eklöf
bec50782b8 particle: improve error handling in on-click handler
* Make sure to _exit() in all forked code paths that doesn't end in a
  successful exec()
* Report errno to parent process on failure so that we can log it

The second point is implemented by a) manually double forking instead
of calling daemon(), and b) using a pipe in the inner fork to be able
to wait for the child process to either succeed in its exec() call, or
write errno to the pipe on failure.

This fixes hangs and crashes when e.g. the binary we're trying to
execute doesn't exist.
2019-04-23 19:02:21 +02:00
Daniel Eklöf
853ab244a9 doc: tips for writing configuration 2019-04-22 12:51:25 +02:00
Daniel Eklöf
6b050ff457 doc: xwindow 2019-04-22 12:32:26 +02:00
Daniel Eklöf
040aa9417b doc: xkb 2019-04-22 12:28:58 +02:00
Daniel Eklöf
70ff05b2e2 doc: removables 2019-04-22 12:22:40 +02:00
Daniel Eklöf
05b54a6141 doc: network 2019-04-22 12:07:44 +02:00
Daniel Eklöf
35bd1bb66c doc: mpd 2019-04-22 11:58:43 +02:00
Daniel Eklöf
69dcc66b8a doc: label 2019-04-22 11:10:09 +02:00
Daniel Eklöf
e76dbbacd6 doc: i3 2019-04-22 11:06:09 +02:00
Daniel Eklöf
f7c9a1a47e doc: clock 2019-04-22 10:44:41 +02:00
Daniel Eklöf
4b79603129 doc: battery 2019-04-22 10:39:58 +02:00
Daniel Eklöf
52dc372a9f doc: module: backlight: example 2019-04-21 21:08:12 +02:00
Daniel Eklöf
839de289ba doc: module: backlight 2019-04-21 21:06:10 +02:00
Daniel Eklöf
e36d061f3f doc: modules: 'font' and 'foreground' are common attributes 2019-04-21 21:05:54 +02:00
Daniel Eklöf
0f2d9b48b8 wip: man pages 2019-04-21 20:44:13 +02:00
Daniel Eklöf
bde34d81fb wip: man pages 2019-04-21 20:24:21 +02:00
Daniel Eklöf
8d81091e1e PKGBUILD: makedepend on scdoc (for man page generation) 2019-04-21 13:59:18 +02:00
Daniel Eklöf
682463f785 ci: install scdoc (for man page generation) 2019-04-21 13:58:42 +02:00
Daniel Eklöf
276ebf7141 wip: man pages 2019-04-21 13:57:55 +02:00
Daniel Eklöf
221a6809c0 wip: man pages 2019-04-21 11:49:33 +02:00
Daniel Eklöf
879d5cefb1 wayland: HiDPI: initial support for HiDPI displays
We do it differently from everybody else...

A traditional HiDPI implementation typically scales up
everything. I.e. if the user wants a 1px border, it's scaled up to
2px. The wayland server typically presents an output width/height that
has been scaled *down*.

This is all a bit backwards, but perhaps was the best choice to make
legacy applications at least work.

f00bar on the other hand, wants to give the user absolute
control. Thus, we don't scale up at all. If the user wants a 25px bar
height, that's what he gets.

This does mean however, that we need to scale *down* the surface size
since it's in logical pixels, not physical.

So we scale *down* the surface size (which then gets scaled back up by
the wayland server), and then render everything *on* that surface
without any scaling.
2019-04-15 11:08:38 +02:00
Daniel Eklöf
89d9f15f59 PKGBUILD: alternative PKGBIULD that configures f00bar for wayland only 2019-03-31 14:45:19 +02:00
Daniel Eklöf
a8370d08d5 PKGBUILD: f00bar is both X11 and Wayland compatible 2019-03-31 14:44:13 +02:00
Daniel Eklöf
902245da7a PKGBUILD: i3-wm is no longer a dependency 2019-03-31 14:23:47 +02:00
Daniel Eklöf
aac2a81c2b ci: i3wm-dev shouldn't be needed anymore; we use our own i3/ipc.h 2019-03-31 12:10:26 +02:00
Daniel Eklöf
7dc5694965 module/i3: use our own copy of i3/ipc.h
The main advantage is when targeting sway/wayland instead of i3/x11;
sway doesn't package ipc.h. There *is* an ipc.h in the sway sources,
but it doesn't define e.g the header format, and has different names
for the constants.
2019-03-31 12:08:44 +02:00
Daniel Eklöf
065c40a9e6 ci: looks like i3wm packages has been split up into i3wm and i3wm-dev 2019-03-31 12:00:10 +02:00
Daniel Eklöf
0aee7befd8 bar/wayland: better name for SHM backing memfd 2019-03-30 22:24:13 +01:00
Daniel Eklöf
fa586b9ac1 wayland: depend on xdg-output for output size/positioning information 2019-03-14 19:41:06 +01:00
Daniel Eklöf
2123956b14 particle: refactor command line tokenization 2019-03-07 21:31:30 +01:00
Daniel Eklöf
67e12e8d1e bump wlr-protocols 2019-03-06 20:17:03 +01:00
Daniel Eklöf
6030ef5298 bar/wayland: use cairo_format_stride_for_width() to calculate stride 2019-03-03 12:56:13 +01:00
Daniel Eklöf
cf680573c2 particle/string: improve font centering
* Use ascent+descent instead of 'height'
* Center around 'ascent', except when 'descent' is negative
2019-03-01 17:55:05 +01:00
Daniel Eklöf
611b5b551c particle/string: use *font* extents to calculate font baseline 2019-02-28 20:10:54 +01:00
Daniel Eklöf
ea38ab3b2f particle/module: pass a cairo context to all begin_expose() 2019-02-28 20:10:26 +01:00
Daniel Eklöf
35e9d0e25c bar: need to double border size (why?) 2019-02-28 20:09:50 +01:00
Daniel Eklöf
cd28099ad8 module/i3: don't try to strdup() a NULL pointer 2019-02-20 18:21:58 +01:00
Daniel Eklöf
fe709bd82b Revert "bar/wayland: drop wl_seat interface version requirement to 1"
This reverts commit a1bcf07599.
2019-02-18 21:43:44 +01:00
Daniel Eklöf
b4845a55fe module/i3: remove even more IPC related json error messages 2019-02-17 21:53:01 +01:00
Daniel Eklöf
11eff5b13b module/i3: one more malformed IPC error message removed 2019-02-17 21:51:48 +01:00
Daniel Eklöf
fd955fa3ac module/i3: use json_object_object_get_ex()
json_object_object_get() is deprecated.

At the same time, simplify code by removing error messages; it's
not *our* problem if someone is sending malformed IPC replies.
2019-02-17 21:50:01 +01:00
Daniel Eklöf
546a4b5009 module/i3: improve window event handling
* Only care about 'close', 'focus' and 'title' events
* Remove application/title on 'close'
* Ignore 'title' events if it's not for the currently active
  window (from the last 'focus' event)

This fixes an issue where we rendered a 'title' event just like a
focus event. Meaning that a non-focused window, perhaps even on a
different workspace, that changed its title, would cause us to refresh
with its title being used.
2019-02-17 20:05:44 +01:00
Daniel Eklöf
f959d96c17 module/i3-common: add LOG_ENABLE_DBG define, but leave it disabled 2019-02-17 20:05:30 +01:00
Daniel Eklöf
c2ea1c5a59 Merge branch 'surface-margins' 2019-02-17 19:48:37 +01:00
Daniel Eklöf
28d39f3aec bar/xcb: ignore non-zero border margins 2019-02-17 19:45:26 +01:00
Daniel Eklöf
0ab772f869 bar: move x,y coordinates to xcb backend 2019-02-17 19:40:20 +01:00
Daniel Eklöf
3d8cb7f17e bar/wayland: implement border margins 2019-02-17 15:47:44 +01:00
Daniel Eklöf
cb0c43a61b README: update bar configuration properties 2019-02-17 15:47:29 +01:00