Daniel Eklöf
92d165e7e6
ci: switch to alpine:edge, which has wlroots
2019-02-03 17:29:41 +01:00
Daniel Eklöf
29b57bcc48
bar/wayland: call on_mouse() directly from listeners
2019-02-03 15:28:32 +01:00
Daniel Eklöf
85a1940e47
bar/wayland: free XDG outputs, and manager, in cleanup()
2019-02-03 15:16:19 +01:00
Daniel Eklöf
c6fd99f005
bar/wayland: track XDG outputs, as this gets us the monitor identifiers
2019-02-03 15:10:26 +01:00
Daniel Eklöf
c226f9f0c8
bar/wayland: initial support for multiple monitors
...
We don't actually support multiple monitors, but now we at least track
the available monitors.
This also adds support for the BAR_BOTTOM location.
2019-02-03 13:55:21 +01:00
Daniel Eklöf
47ac57dd03
bar/wayland: cursor support
...
This implements backend.set_cursor().
2019-02-03 13:13:10 +01:00
Daniel Eklöf
130043a259
bar/wayland: comment out most of the debug logging
2019-02-03 12:21:42 +01:00
Daniel Eklöf
8e769b491a
module/i3: try SWAYSOCK before falling back to I3_SOCKET_PATH
2019-02-03 12:20:59 +01:00
Daniel Eklöf
ed8e17c6c9
wayland: mucho wip: initial sort-of-working wayland backend
...
Bar is drawn, though only TOP is supported atm. No
screen/display/output selection is possible yet. Mouse *click* works,
but not setting the cursor.
Lots of debug output, crappy code yada yada.
2019-02-03 11:08:53 +01:00
Daniel Eklöf
ff88d87ca8
cmake: build bar XCB backend as a (static) library
...
This allows us to remove the XCB dependencies from the main 'f00bar'
target.
2019-01-29 21:46:54 +01:00
Daniel Eklöf
ffa4448b3c
ci: build as much as possible
2019-01-29 21:39:16 +01:00
Daniel Eklöf
785fe8bb0c
main: poll() return value is unused in release builds
...
Because it's only used in an assert()
2019-01-29 21:38:21 +01:00
Daniel Eklöf
deb9105d3e
main: move xcb_init() call to bar's XCB backend
2019-01-29 21:37:38 +01:00
Daniel Eklöf
9239d4298c
main: drop xcb dependency
...
Handle program termination by a) using a signal handler to detect
e.g. ctrl-c, and b) listening on the abort_fd to detect when the bar
aborts (e.g. due to XCB disconnect, i.e. when the X server dies).
2019-01-29 21:35:38 +01:00
Daniel Eklöf
404a7a7dcd
bar: xcb: remove unneeded braces
2019-01-29 21:05:51 +01:00
Daniel Eklöf
7f1567c973
bar: do generic cursor stuff in bar, not in backend
2019-01-29 21:05:28 +01:00
Daniel Eklöf
0684aaaf95
bar: xcb: cleanup
2019-01-29 21:03:13 +01:00
Daniel Eklöf
4954479e11
bar: generic setup shouldn't be done by a backend
2019-01-29 21:02:10 +01:00
Daniel Eklöf
c2e7b1c507
bar: remove more includes that aren't needed anymore
2019-01-29 21:01:16 +01:00
Daniel Eklöf
36201e251e
bar: no xcb stuff needed directly by bar anymore
2019-01-29 21:00:27 +01:00
Daniel Eklöf
88daaf0ab7
bar: wip: define a 'backend' interface
...
Implement the current XCB backend in terms of this new interface.
2019-01-29 20:59:25 +01:00
Daniel Eklöf
f37dfbc727
module/mpd: free strdup:ed path string
2019-01-29 20:58:55 +01:00
Daniel Eklöf
2d104e4a7d
bar: break out 'private' struct definition to a header file
2019-01-29 20:20:11 +01:00
Daniel Eklöf
aa21991323
bar: move C file to subdirectory
2019-01-29 20:18:37 +01:00
Daniel Eklöf
f5aebc07ef
bar: break out all XCB specific code to separate functions
2019-01-29 20:09:07 +01:00
Daniel Eklöf
8d1afd027b
module/xkb: initialize indicators
...
This fixes a bug where we tried to free invalid indicator names.
2019-01-27 22:05:00 +01:00
Daniel Eklöf
452c4b6015
plugins: export a const function pointer interface struct
2019-01-26 18:32:04 +01:00
Daniel Eklöf
37266ae419
log: colorize console output only when stdout is a tty
2019-01-26 15:14:45 +01:00
Daniel Eklöf
4e03dca051
log: for now, only log errors and warnings to syslog
...
Eventually, this should probably be made configurable, and/or possible
to control through command line options.
2019-01-26 14:56:26 +01:00
Daniel Eklöf
a146bed317
Merge branch 'syslog'
2019-01-26 14:54:20 +01:00
Daniel Eklöf
735ab8daa6
log: always log to both console and syslog
2019-01-26 14:54:04 +01:00
Daniel Eklöf
89a61eed7b
log: add internal function that logs to syslog
...
Differences to the console logger:
* No coloring
* Always use module name, not filename:line-number
2019-01-26 14:53:28 +01:00
Daniel Eklöf
453364e9f8
log: constructor/destructor to initialize/close syslog
2019-01-26 14:52:56 +01:00
Daniel Eklöf
1fe847cb4e
log: remove dead code
2019-01-26 14:52:40 +01:00
Daniel Eklöf
18ba3723d4
module/i3: avoid stack-allocating large buffers
...
This fixes a stack-overflow issue with musl (which uses small stacks).
2019-01-26 13:19:02 +01:00
Daniel Eklöf
a827cc80d4
cmake: make sure we can find i3/ipc.h
...
There's no pkg-config file shipped with i3, so our only option is to
manually look for the file (and assume it can be found in the "normal"
include paths).
2019-01-26 12:30:14 +01:00
Daniel Eklöf
969d51037f
Merge branch 'string-can-format-as-hex-and-octal'
2019-01-21 21:06:02 +01:00
Daniel Eklöf
3f6030df68
tag: add support for "hex" and "oct" format modifiers
2019-01-21 21:05:38 +01:00
Daniel Eklöf
1152f161e1
README: improve description of "realtime" tags
2019-01-21 20:46:48 +01:00
Daniel Eklöf
f71251502c
README: highlighting
2019-01-21 20:46:38 +01:00
Daniel Eklöf
6d659b6a24
README: document tags, and the available types
2019-01-21 20:31:32 +01:00
Daniel Eklöf
be13eb4980
Merge branch 'string-supports-tag-range'
2019-01-21 20:15:46 +01:00
Daniel Eklöf
a0ecc1ff03
tag: add support for "min", "max" and "unit" tag arguments
2019-01-21 20:15:04 +01:00
Daniel Eklöf
7936e197af
tag: add support for an optional tag argument in a tag format string
...
E..g {volume:max}
2019-01-21 20:14:25 +01:00
Daniel Eklöf
09fcedc33f
tag: pull in logging
2019-01-21 20:14:09 +01:00
Daniel Eklöf
a4c13b1978
README: indent alsa example
2019-01-21 19:59:00 +01:00
Daniel Eklöf
b99e3d8ea2
README: document the alsa module
2019-01-21 19:58:17 +01:00
Daniel Eklöf
a5980cd3d3
README: document common module configuration attributes
2019-01-21 19:57:53 +01:00
Daniel Eklöf
451a450cec
README: cleanup bar configuration table
2019-01-21 19:57:25 +01:00
Daniel Eklöf
d90aff22d6
README: re-arrange, turn bar attribute documentation into a table
2019-01-21 19:34:02 +01:00