Commit Graph

309 Commits

Author SHA1 Message Date
Artur Sinila f4ad5d36ec meson.build: add missing waybar-sway-language manpage 2021-03-23 16:51:08 +03:00
nullobsi d2a1f41750
Use g_unichar_iswide to properly align calendar on CJK locales 2021-01-31 11:53:53 -08:00
Alex ede1146ddc
Merge pull request #903 from spk/simpleclock
Add simpleclock as fallback when hhdate is not available
2021-01-18 12:00:48 +01:00
Alex 4b29aef048
chore: v0.9.5 2020-12-23 21:33:40 +01:00
Thomas Hebb ad40511358 Update spdlog subproject to 1.8.1
Among other changes, this adds spdlog::should_log(), which lets us
easily determine whether a log message will be printed so that we can
avoid extra computation when unnecessary.

New wrap file taken from https://wrapdb.mesonbuild.com/spdlog and
modified to download from GitHub as per commit 99dde1aff8 ("Download
patch files from Github instead of wrapdb").
2020-11-30 17:11:33 -08:00
Thomas Hebb e8dbdee238 Make spdlog use the same version of fmt we use
spdlog bundles a version of fmt. However, we also depend on and use fmt
directly. If we don't tell spdlog not to use its bundled version, we end
up with two versions of fmt in our include path, since both libraries
are header-only, meaning any slight API mismatches will cause build
failures and undesired behavior.

We seem to have gotten lucky so far, but I ran into all sorts of issues
when I tried to update to a newer version of spdlog. This change
prevents them.
2020-11-30 17:04:19 -08:00
Aleksei Bavshin 85e00b2aab
fix: build fails with meson < 0.53.0
meson.build:12:0: ERROR: Module "fs" does not exist

Fixes #909
2020-11-26 15:40:24 -08:00
Laurent Arnoud 96d965fe04
Add simpleclock as fallback when hhdate is not available
ref https://github.com/Alexays/Waybar/issues/668
2020-10-29 19:40:28 +01:00
nikto_b f13f49ccb5
Merge branch 'master' into sway-language-module 2020-10-20 12:22:22 +03:00
Aleksei Bavshin 23e5181cac
feat(swaybar-ipc): add swaybar IPC client 2020-10-19 19:34:48 -07:00
Joseph Benden 8f961ac397
mpd: revamped to event-driven, single-threaded
Fix MPD connection issues by converting/rewriting module into a
state-machine driven system. It is fully single-threaded and uses
events for transitioning between states. It supports all features
and functionality of the previous MPD module.

Signed-off-by: Joseph Benden <joe@benden.us>
2020-10-18 10:37:57 -07:00
Alex 54beabb9dc
Revert "mpd: revamped to event-driven, single-threaded" 2020-10-18 10:45:31 +02:00
nikto_b cc3acf8102
feature: created sway language submodule; added styles & config part for a sway language submodule 2020-10-10 19:09:18 +03:00
Joseph Benden 21fdcf41c3
mpd: revamped to event-driven, single-threaded
Fix MPD connection issues by converting/rewriting module into a
state-machine driven system. It is fully single-threaded and uses
events for transitioning between states. It supports all features
and functionality of the previous MPD module.

Signed-off-by: Joseph Benden <joe@benden.us>
2020-10-08 16:43:22 -07:00
Érico Rolim e4427cb017 sndio: Add module.
- can control sndio: change volume, toggle mute
- appearance is somewhat dynamic: takes muted status into account
- uses polling inside sleeper thread to update values
- uses sioctl_* functions, requires sndio>=1.7.0.
2020-10-04 02:54:57 -03:00
Minijackson 73681a30e5
man: add the prefixed path were config is loaded 2020-09-29 22:31:28 +02:00
Alex 6db795401a chore: v0.9.4 2020-09-21 12:18:42 +02:00
wjoe fdfb60c633 meson feature: make rfkill optional 2020-08-14 20:56:45 +02:00
dmitry 42b6c089f3 Add docs and adjust sorting 2020-08-08 00:09:35 +03:00
Alex 01c682c41e chore: v0.9.3 2020-08-05 23:27:06 +02:00
dmitry edd4d8ee11 Finish implement wlr 2020-08-05 23:10:08 +03:00
dmitry 2b11b7ef8c Base wlr impl (Manager, Group) 2020-08-05 02:17:38 +03:00
Jonas Toth 17967da676 Fix 'date' dependency in meson
The 'date' library dependency was incompletly imported with meson.
Only the target 'date::date' seemed to be caught by meson, but
'date::date-tz' not, which lead to build errors in gentoos sandbox
environment.

See this question, too:
https://stackoverflow.com/questions/62951569/meson-doesnt-link-library

Adding the modules in meson imports them all and the library builds
nice.
Note, that this did not happen with a standard checkout and local build
on my system, but only when creating an ebuild for the package.
2020-07-28 20:04:28 +02:00
Alex 8f684f703e
Merge pull request #753 from spk/reproductible-builds
Remove date macro on version for reproducible builds
2020-06-24 18:22:36 +02:00
Laurent Arnoud 5e044e5bba
Remove date macro on version for reproducible builds
cf https://reproducible-builds.org/
2020-06-24 15:09:11 +02:00
Laurent Arnoud 732ce7a27c
chore: always include sway module 2020-06-24 14:55:41 +02:00
Isaac Freund 343a8bef22
river/tags: add module 2020-06-12 15:19:46 +02:00
Till Smejkal adaf843048
foreign-toplevel-manager based taskbar module (#692)
Co-authored-by: Alex <alexisr245@gmail.com>
2020-05-30 12:07:38 +02:00
Alex 49ae944d65 fix: check git root 2020-05-24 19:14:46 +02:00
Jan Beich 1885ecc958 bluetooth: limit to Linux due to missing /dev/rfkill
../src/modules/bluetooth.cpp:3:10: fatal error: 'linux/rfkill.h' file not found
 #include <linux/rfkill.h>
          ^~~~~~~~~~~~~~~~
2020-05-19 10:44:31 +00:00
Jan Beich 4e567d0483 cpu: port parseCpuinfo to BSDs 2020-05-19 10:43:42 +00:00
Jan Beich c4f7cdeec4 memory: port parseMeminfo to BSDs 2020-05-19 10:42:21 +00:00
Jan Beich 496e782544 battery: limit to Linux due to /sys/class/power_supply
../include/modules/battery.hpp:9:10: fatal error: 'sys/inotify.h' file not found
 #include <sys/inotify.h>
          ^~~~~~~~~~~~~~~
2020-05-19 10:37:27 +00:00
Jan Beich cfd7577e1b backlight: require libepoll on non-Linux
../src/modules/backlight.cpp:9:10: fatal error: 'sys/epoll.h' file not found
 #include <sys/epoll.h>
          ^~~~~~~~~~~~~
2020-05-19 10:37:27 +00:00
Jan Beich c94ef092ff build: drop -Dout in favor of --prefix
$ meson --prefix=/tmp/foo _build
$ ninja install -C _build
[49/50] Installing files.
Installing waybar to /tmp/foo/bin
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/mesonbuild/mesonmain.py", line 127, in run
    return options.run_func(options)
  File "/usr/lib/python3.6/site-packages/mesonbuild/minstall.py", line 514, in run
    installer.do_install(datafilename)
  File "/usr/lib/python3.6/site-packages/mesonbuild/minstall.py", line 346, in do_install
    self.install_data(d)
  File "/usr/lib/python3.6/site-packages/mesonbuild/minstall.py", line 375, in install_data
    d.dirmaker.makedirs(outdir, exist_ok=True)
  File "/usr/lib/python3.6/site-packages/mesonbuild/minstall.py", line 55, in makedirs
    os.makedirs(path, exist_ok=exist_ok)
  File "/usr/lib/python3.6/os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "/usr/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/etc/xdg'
FAILED: meson-install
2020-05-19 10:37:27 +00:00
Jan Beich 74db69dcb7 build: drop libinput as it was never used 2020-05-19 10:37:27 +00:00
Jan Beich fe2dd1e843 build: handle systems where libc++ is default
ld: error: unable to find library -lstdc++fs
ld: error: unable to find library -lc++abi
2020-05-19 10:37:27 +00:00
Diego GF ea4dec96e6 Build bluetooth module man page 2020-04-28 17:40:44 +02:00
Marc Radau 2d02ae5e97
Merge branch 'master' into master 2020-04-16 14:43:10 +02:00
Alex b9338c72c9 chore: 0.9.2 2020-04-11 12:24:49 +02:00
Marc Radau 8a5c3af949
Merge pull request #8 from Alexays/master
Merge Alexays:master into marcplustwo:master
2020-04-05 16:13:56 +02:00
Alex d5bd3be8de chore: use native git 2020-04-05 16:12:25 +02:00
Marc Radau 9abe1e2790
Merge branch 'master' into master 2020-02-23 23:00:09 +01:00
Danilo Spinella 16c68ee132 fix(meson): Support libc++ >=9.0.0
From LLVM libc++ documentation:
"Prior to LLVM 9.0, libc++ provides the implementation of the
filesystem library in a separate static library."

Now the filesystem library (not the experimental one) is shipped
inside the libc++.so library.

Check if '-lc++fs' link flag is needed and supported before adding
it.
2020-02-11 14:42:24 +01:00
Alex aae105c998 chore: 0.9.1 2020-02-10 23:47:23 +00:00
Skirmantas Kligys d1f427618f Cache calendar per clock instance, weekdays properly handle locales. 2020-02-05 11:07:47 -08:00
Skirmantas Kligys cd2db19267 Detect presence, call nl_langinfo() to get first day of week. 2020-02-03 17:18:34 -08:00
Skirmantas Kligys ea9591baea Switch from utfcpp to Glib::ustring for UTF-8 string mangling. 2020-02-02 15:59:24 -08:00
Skirmantas Kligys 8e05aab4d9 Current month calendar in clock tooltip. 2020-01-31 10:36:40 -08:00
Marc Radau f9618d30f3
Merge pull request #7 from Alexays/master
Merge latest changes from upstream
2020-01-23 17:30:33 +01:00
Michael Cordover 6e30b7af3c Remove duplicate dependency, use current locale 2020-01-23 08:27:00 -05:00
Michael Cordover 3130a57622 Add timezone support to clock module (closes #223) 2020-01-23 08:26:49 -05:00
Marc f0dbd8b78d properly structure rfkill util 2020-01-21 17:48:45 +01:00
Marc 2c4369a653 add basis for bluetooth module implementation 2020-01-21 15:46:08 +01:00
Alex 35d806b801 chore: 0.9.0 2019-12-28 12:35:09 +01:00
Aleksei Bavshin 0e87b3938a
deps: meson dependencies for gtk-layer-shell feature 2019-12-27 16:42:13 -08:00
Aleksei Bavshin d1637d34cf
refactor: fetch outputs from Gtk::Display instead of wl_registry.
gtk-layer-shell wants Gdk::Monitor instead of wl_output;
change code to deal with Gdk objects and slightly simplify it.
Requires gtkmm 3.22.0+ (first release with Gdk::Monitor support).
2019-12-27 16:42:12 -08:00
Guillaume Maudoux f4d2ca2736 custom formatter for numbers in 'pow' units format 2019-09-25 12:53:06 +02:00
Guillaume Maudoux 247589efbb Add some documentation for disks 2019-09-25 09:11:03 +02:00
Guillaume Maudoux 1d39ef5c8e Add a disk module 2019-09-25 08:47:33 +02:00
Дамјан Георгиевски 4b24c19fa7 add prefix to the configuration data 2019-09-10 14:12:52 +02:00
Дамјан Георгиевски ce50249c04 service file: allow for waybar installed in different prefix 2019-09-10 13:56:34 +02:00
Alex 5bb6fa384d
Revert "service file: allow for waybar installed in different prefix" 2019-09-10 12:06:06 +02:00
Дамјан Георгиевски f152ad9fa9 service file: allow for waybar installed in different prefix 2019-09-08 14:04:34 +02:00
Дамјан Георгиевски a0a3c01e79 install a systemd user unit
add a systemd --user unit/service file, so that one can run waybar as a
--user systemd service. when the service is enabled, Waybar will start
when the wayland-session.target is started.

this feature is automatically enabled if systemd is found, but can be disabled
with -Dsystemd=disabled
2019-09-07 22:16:03 +02:00
Jan Beich 0b008154d9 Add man-pages option like swaywm/sway@ba16f16e4d 2019-08-29 10:25:13 +00:00
Alex fe88a3fa81 chore: 0.8.0 2019-08-29 11:56:57 +02:00
Michael Aquilina ba5592c86a
Add waybar-states(5) 2019-08-26 22:49:04 +01:00
Michael Aquilina 436fc94549
Add waybar-tray(5) 2019-08-26 18:15:58 +01:00
Michael Aquilina 4f9c3d2413
Add waybar-temperature(5) 2019-08-26 18:13:48 +01:00
Michael Aquilina c19a63e85e
Add waybar-sway-workspaces(5) 2019-08-26 18:08:59 +01:00
Michael Aquilina 05e212f67a
Add waybar-sway-window(5) 2019-08-26 18:00:46 +01:00
Michael Aquilina e01e3be488
Add waybar-sway-mode(5) 2019-08-26 17:55:20 +01:00
Michael Aquilina f380844d61
Add waybar-pulseaudio(5) 2019-08-26 17:50:16 +01:00
Michael Aquilina 7f6e4801eb
Add waybar-network(5) 2019-08-26 17:42:30 +01:00
Michael Aquilina ac461f38f4
Add waybar-mpd(5) 2019-08-26 15:27:32 +01:00
Michael Aquilina 30efd28b6a
Add waybar-memory(5) 2019-08-26 15:12:42 +01:00
Michael Aquilina 87392ef653
Add waybar-idle-inhibitor(5) 2019-08-26 15:11:07 +01:00
Michael Aquilina db85224d59
Add waybar-custom(5) 2019-08-26 13:44:09 +01:00
Michael Aquilina 07d6a8e936
Use tabs not spaces in scd files 2019-08-26 13:31:57 +01:00
Michael Aquilina 53614ab50c
Add waybar-cpu(5) 2019-08-26 13:23:11 +01:00
Michael Aquilina fba1f5c8af
Move scd files to man/ folder 2019-08-26 13:11:06 +01:00
Michael Aquilina cda9eb683f
Add waybar-clock(5) 2019-08-24 18:09:08 +01:00
Michael Aquilina f0ad918feb
Add waybar-battery(5) 2019-08-24 17:53:56 +01:00
Michael Aquilina 9484cdff7d
Add waybar-backlight.5.scd 2019-08-24 15:39:46 +01:00
Michael Aquilina 9b9818e95d
Set scdoc dependency to required: false 2019-08-22 17:13:04 +01:00
Michael Aquilina 2e037df045
Add scdoc to meson build process 2019-08-22 17:04:09 +01:00
Alex e9b6380c18 chore: 0.7.2 2019-08-08 12:25:31 +02:00
Alex 0834551161 chore: 0.7.1 2019-07-11 17:02:47 +02:00
Alex 9c8e39c30c chore: 0.7.0 2019-06-22 18:17:16 +02:00
Alex 340ec7be91 refactor: AModule 2019-06-15 14:57:52 +02:00
Alex 7f74de977c chore: 0.6.9 2019-06-14 10:27:41 +02:00
Alex 2ee4a51546 chore: 0.6.8 2019-06-08 18:33:17 +02:00
Alex f3fb955d75 chore: 0.6.7 2019-05-31 12:15:01 +02:00
Alex bf5c00ff2a chore: 0.6.6 2019-05-22 10:16:14 +02:00
Alex 67593b8c0f
Merge pull request #332 from Organic-Code/enhancement/spdlog
Adding spdlog
2019-05-20 12:07:58 +02:00
Alex 03e43fb31d refactor: remove wlroots dependency 2019-05-20 09:49:54 +02:00
Lucas Lazare 51be97f9aa Adding spdlog 2019-05-18 19:44:45 -04:00
Alex 6ffc7ee3b3 chore: 0.6.5 2019-05-18 16:12:19 +02:00
Alex 9a091d7740 chore: 0.6.4 2019-05-17 10:18:05 +02:00
Alex d5a9eccb7b chore: v0.6.3 2019-05-12 20:02:53 +02:00
Alex 80e9ea746b fix(battery): use path for the / operator 2019-05-12 19:53:22 +02:00
Alex 131dae5818 chore: v0.6.2 2019-05-10 13:40:45 +02:00
Alex 82bed9dd5e chore: v0.6.1 2019-05-02 14:31:02 +02:00
Alex 07c592cc86 chore: v0.6.0 2019-04-25 16:59:22 +02:00
Hendrik Schröter 3ee99946c7 chore: update fmt build dependency
Closes #279
2019-04-23 04:40:27 +02:00
Minijackson 06aff70e2e
feat: Add basic support for MPD 2019-04-18 15:55:45 +02:00
Alex 24684ca71b chore: v0.5.1 2019-04-04 12:01:00 +02:00
Alex 6522a7acb4 chore: let compile sway modules even if we can't find the binary 2019-03-30 09:15:51 +01:00
Alex f700319d7f chore: v0.5.0 2019-03-20 10:51:40 +01:00
Groggy 7ae549dc9e
Add temperature module 2019-03-13 13:35:43 +01:00
Alex f47492c371 chore: v0.4.0 2019-03-01 17:12:02 +01:00
Jonas d708ce2be9 Add idle inhibitor module 2019-02-22 16:55:46 +01:00
Ian Hattendorf e67347f6ad
Gate backlight module behind libudev availability 2019-02-18 21:11:18 -07:00
Ian Hattendorf 875306804c
Add backlight module
Monitor the backlight level via udev. Poll every `interval` as well,
in case backlight udev events aren't supported.
2019-02-17 15:29:49 -07:00
Alex 4d3c2191cb chore: v0.3.0 2019-01-28 19:38:58 +01:00
Alexis 399f61df98 refactor: proper modules destruction 2019-01-13 22:22:22 +01:00
Alexis 3691d84543 chore: v0.2.3 2018-12-18 17:42:35 +01:00
Alexis b554094c7e feat: args && class id 2018-12-18 17:30:54 +01:00
Alexis 2b05b8e69a chore: v0.2.2 2018-11-23 12:03:23 +01:00
Alexis ba79b4d397 refactor(tray): cleanup and fixes 2018-11-22 15:47:23 +01:00
Alexis 33f138c16e chore: v0.2.1 2018-11-16 10:15:27 +01:00
Alexis 2d2fb88040 fix: fmt 2018-11-08 09:57:24 +01:00
Alexis 43cd80fb31 chore: 0.2.0 2018-11-03 13:20:05 +01:00
Lucas L. Treffenstädt 0637888460 even simpler check 2018-11-03 12:44:15 +01:00
Lucas L. Treffenstädt ebbdaa168c automatically detect where filesystem lives 2018-11-02 23:15:42 +01:00
Lucas L. Treffenstädt 236be90c2f add option for when filesystem still lives in the experimental namespace 2018-11-02 20:59:41 +01:00
Robinhuett a042eea384 Add module to show sway binding mode 2018-10-30 13:39:30 +01:00
Alexis 3f2eb0b492 chore: 0.1.3 2018-10-28 08:39:33 +01:00
Alex 16b01e1059
Merge pull request #62 from colemickens/giounix20
meson: fix 'gio-unix-2.0' dependency
2018-10-27 09:35:47 +02:00
Alex 1ae490c8f7
Merge pull request #61 from colemickens/outdir
meson: make extra output directory configurable
2018-10-27 09:16:11 +02:00
Cole Mickens 0d0a3be483 meson: fix 'gio-unix-2.0' dependency 2018-10-26 23:21:03 -07:00
Cole Mickens a1c4b9bb0c meson: make extra output directory configurable 2018-10-26 23:20:38 -07:00
Alexis e8f3c1c6b3 chore: v0.1.2 2018-10-26 11:21:04 +02:00
Alexis f3fe57dd24 chore: v0.1.0 2018-10-25 12:15:52 +02:00
Alexis d4b97d5d09 feat: optional tray 2018-10-25 11:47:03 +02:00
Alex 0e6147b644
Merge branch 'master' into tray-gdbus 2018-10-25 11:36:35 +02:00
Danilo Spinella 73553802f9 Add options for pulseaudio and libnl 2018-10-21 09:58:35 +00:00
topisani b231054b69 Merge remote-tracking branch 'origin/master' into tray-gdbus 2018-10-04 18:04:36 +02:00
topisani 108b1092e5 WIP sni dbus-menu support. 2018-10-04 18:03:01 +02:00
Alexis f78ef0d491
fix(Meson): optional sway 2018-09-10 11:00:53 +02:00
Alexis 0eee8eade7
feat(WIP): tray
feat(wip): tray

feat(wip): tray

feat(WIP): gdbus

feat(WIP): tray
2018-09-02 17:29:16 +02:00
Alexis 28c65c64e6
chore: add default build type 2018-08-30 11:30:20 +02:00
Alexis 8be67d5008 chore: optional deps 2018-08-20 17:20:02 +02:00
Alexis 969c1ceedd chore: v0.0.5 2018-08-19 13:43:41 +02:00
Alexis 16b856c8bc fix: remove debug flag 2018-08-19 13:41:22 +02:00
Alex 6705134034
Handle screens disconnection (#29) 2018-08-19 13:39:57 +02:00
Alexis 93f87f322f chore: v0.0.4 2018-08-16 17:19:02 +02:00
Alex 6635548d3e
Style code (#25) 2018-08-16 14:29:41 +02:00
Alexis c3bd6da1d0 chore: v0.0.3 2018-08-15 14:50:19 +02:00
Alexis 3690e7ac55 chore: v0.0.2 2018-08-11 13:19:26 +02:00
Alexis 14053d61fc feat(workspace): catch ipc errors 2018-08-11 02:09:39 +02:00
Alexis 2512d51564 fix(gtk): use idle to avoid mutex 2018-08-10 23:21:21 +02:00
Alexis 9e85c68fc8 chore: v0.0.1 2018-08-10 16:37:03 +02:00
Alexis 7ccb76935d feat: add pulseaudio module 2018-08-09 23:55:38 +02:00
Alex a25967e4c6
Merge pull request #2 from Alexays/system-wide-config
Add system-wide config and style files
2018-08-09 17:14:16 +02:00
Thomas Plaçais 22a8427db4 Add system-wide config and style files 2018-08-09 17:02:30 +02:00
Alexis 731a352b41 feat: add network module 2018-08-09 16:38:24 +02:00
Alexis fcb6a9aa8b feat: init repo 2018-08-08 23:54:58 +02:00