Commit Graph

1347 Commits

Author SHA1 Message Date
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
71b7b4e0f4 disk: properly calculate free/total size
On most Unix systems `f_blocks`, `f_bfree`, and `f_bavail` are
reported in units of `f_frsize`.
2020-05-19 10:43:45 +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
c844d7ac2e tray: drop std::filesystem dependency 2020-05-19 10:37:27 +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
d5df185ac6 cpu: make getCpuLoad more portable
../include/modules/cpu.hpp:4:10: fatal error: 'sys/sysinfo.h' file not found
 #include <sys/sysinfo.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
Jan Beich
1dc557456e Add missing includes for libc++
In file included from ../src/modules/custom.cpp:1:
In file included from ../include/modules/custom.hpp:7:
../include/util/command.hpp:15:25: error: implicit instantiation of undefined template 'std::__1::array<char, 128>'
  std::array<char, 128> buffer = {0};
                        ^
../src/modules/pulseaudio.cpp:175:41: error: implicit instantiation of undefined template 'std::__1::array<std::__1::basic_string<char>, 9>'
static const std::array<std::string, 9> ports = {
                                        ^
/usr/include/c++/v1/__tuple:223:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
                                                               ^
In file included from ../src/factory.cpp:1:
In file included from ../include/factory.hpp:8:
../include/modules/sway/workspaces.hpp:39:8: error: no template named 'unordered_map' in namespace 'std'
  std::unordered_map<std::string, Gtk::Button> buttons_;
  ~~~~~^
../src/factory.cpp:20:14: error: cannot initialize return object of type 'waybar::AModule *' with an rvalue of type 'waybar::modules::sway::Workspaces *'
      return new waybar::modules::sway::Workspaces(id, bar_, config_[name]);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-05-19 10:37:27 +00:00
Alex
45deb2472c fix: use strcmp 2020-05-19 12:14:59 +02:00
Alex
8fbaf06cbe refactor(mpd): prefer debug over warn 2020-05-16 09:29:37 +02:00
Alex
08dce576bd refactor(mpd): prefer debug over info 2020-05-16 09:28:30 +02:00
Alex
4b28518cd5
Merge pull request #701 from josteink/patch-2
Confirm build-instructions for Ubuntu 20.04 too.
2020-05-07 08:58:58 +02:00
Jostein Kjønigsen
c9ee528880
Confirm build-instructions for Ubuntu 20.04 too. 2020-05-07 07:01:20 +02:00
Alex
0e869e3aab
Merge pull request #696 from f0rki/sort_by_sway_num
sway/workspaces: sort by the "num" property provided by sway
2020-05-06 12:38:12 +02:00
Michael Rodler
6fe764540c sway/workspaces: sort by the "num" property provided by sway, configurable whether numeric workspace names come first
Sway provides the workspace "num" property which is an integer number of
the workspace, i.e., workspace "3" -> 3 and also "3dev" -> "3". This
commit uses this property to sort the workspaces, which makes sense when
persistent workspaces or all-output is specified. This commit also adds
a new configuration option, whether the numeric workspaces come in front
or after workspaces that have non-numeric name.
2020-05-05 09:15:20 +02:00
Alex
81abd9bb67
Merge pull request #693 from f0rki/current_output
sway/workspaces added current_output CSS class to buttons.
2020-05-04 17:36:36 +02:00
Michael Rodler
c602d38c8e sway/workspaces added current_output CSS class to buttons.
All workspace buttons that are visible on the same output as the current waybar can be styled with the `current_output` css class.

This is really only useful in combination with the `"all-outputs":
true`. Then the workspaces that are on the current output can be styled
differently than the workspace on other outputs, while all are visible
in the waybar.
2020-05-04 16:16:09 +02:00
Alex
c45adddd8e
Merge pull request #673 from maximbaz/patch-1
Add missing dependencies to README
2020-05-02 21:01:45 +02:00
Alex
25648ed9c0
Merge branch 'master' into patch-1 2020-05-02 21:01:31 +02:00
Maxim Baz
c8daa48e66
Add build dependencies 2020-05-02 13:06:15 +02:00
Alex
6a95179456
Merge pull request #684 from DiegoGuidaF/fix_bluetoothman
Build bluetooth module man page
2020-05-01 20:35:56 +02:00
Diego GF
ea4dec96e6 Build bluetooth module man page 2020-04-28 17:40:44 +02:00
Alex
44ed61b2c3
Merge pull request #680 from akobel/master
Fix round to 0 or 1 in capacity computation with given full-at
2020-04-27 08:47:22 +02:00
Alex
64f10f8f69
Merge pull request #683 from phosit/master
Add kelvin-scale
2020-04-27 08:46:00 +02:00
phosit
7b18bfd1a7 Add kelvin in man 2020-04-25 18:57:56 +02:00
phosit
6e946bf872 Add kelvin-scale 2020-04-25 18:44:48 +02:00
Alex
e01a081f2f fix(brightness): amd brightness 2020-04-21 09:11:56 +02:00
Alexander Kobel
df0d34dbd4 Fix round to 0 or 1 in capacity computation with given full-at 2020-04-21 00:58:17 +02:00
Alex
b18262f6d0
Merge pull request #677 from mastertinner/master
Make bluetooth example valid
2020-04-20 15:27:49 +02:00
Tobi Fuhrimann
d30b775d25
Make bluetooth example valid 2020-04-20 15:23:03 +02:00
Alex
82c3cccd72 fix(typo): man, remove trailing dot 2020-04-20 14:04:02 +02:00
Alex
1814b3b593 chore(arch): update Dockerfile 2020-04-19 19:52:03 +02:00
Alex
ff7a28274f chore(debian): update Dockerfile 2020-04-19 19:19:21 +02:00
Maxim Baz
8909086b58
Add wayland-protocols 2020-04-19 02:46:21 +02:00
Maxim Baz
a851dd1198
Add missing dependencies to README 2020-04-19 02:30:08 +02:00
Alex
9817955fef
Merge pull request #596 from vesim987/output-exclusion
Add a way to exclude specific output
2020-04-17 23:58:25 +02:00
Alex
774d8ffdba
Merge branch 'master' into output-exclusion 2020-04-17 23:42:58 +02:00
Alex
4a80874da9
Update client.cpp 2020-04-17 23:41:32 +02:00
Alex
4e19ec93dc
Update README.md 2020-04-17 09:09:30 +02:00
Alex
976d3332d4
Merge pull request #568 from marcplustwo/master
Add rfkill status to network module and new bluetooth module
2020-04-17 09:09:07 +02:00
Marc Radau
2d02ae5e97
Merge branch 'master' into master 2020-04-16 14:43:10 +02:00
Alex
967001d9d3
Merge pull request #667 from DanySpin97/memory-missing-header
fix(memory): add missing unordered_map include
2020-04-13 20:48:21 +02:00
Danilo Spinella
09ec40e38d fix(memory): add missing unordered_map include 2020-04-13 18:02:50 +02:00
Alex
345c7da384 chore: update fedora base 2020-04-13 17:07:16 +02:00
Thomas Plaçais
9350595158
fix(layout): fix opensuse dockerfile pugixml dep 2020-04-13 09:50:58 +02:00
Thomas Plaçais
a0d5826cbc
fix(layout): fix alpine dockerfile pugixml dep 2020-04-13 09:39:48 +02:00