Alex
32eac3ccb7
chore: 0.10.0
2024-03-13 19:46:56 +01:00
Alexis Rouillard
20f08b881a
Merge pull request #2996 from rroohhh/feat/horizontal_scroll
...
feat: allow horizontal scroll
2024-03-13 19:45:20 +01:00
Alexis Rouillard
214858f413
Merge pull request #3001 from grimpy/fixpersitantworkspaces
...
Fix peristant workspaces for sway
2024-03-12 14:22:18 +01:00
Jo De Boeck
7b3d155608
Fix peristant workspaces for sway
...
Fixes : #2998
Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com >
2024-03-12 04:40:54 +02:00
Robin Ole Heinemann
207e99876d
feat: allow horizontal scroll
2024-03-08 21:48:27 +01:00
Alexis Rouillard
4c46d7d245
Merge pull request #2887 from dann-merlin/master
...
Add justify config option for Labels
2024-03-05 09:01:44 +01:00
Merlin Sievers
25b85800a5
Add documentation for justify option
2024-03-04 20:00:57 +01:00
Alexis Rouillard
380607583e
Merge pull request #2971 from picnoir/pic/power-profiles-daemon
...
Introduce a power-profiles-daemon module
2024-03-04 14:25:16 +01:00
Alexis Rouillard
26af1066e1
Merge pull request #2984 from alebastr/too-much-logs-mpd
...
mpd: less aggressive logging and reconnections
2024-03-03 10:05:22 +01:00
Alexis Rouillard
97cd2b47b8
Merge pull request #2986 from ErikReider/sway-workspaces-scroll-fix
2024-03-02 23:37:06 +01:00
Erik Reider
9de0e393ab
Sway-Workspaces: Fixed scrolling not working
...
Fixes regression in bb843e0 that caused scrolling over the bar not working
2024-03-02 23:08:21 +01:00
Félix Baylac Jacqué
5578c122ab
modules/power-profiles-daemon: kebab case name in config
...
power_profiles_daemon => power-profiles-daemon
2024-03-02 18:44:25 +01:00
Félix Baylac Jacqué
5ba7c9eb60
modules/power-profiles-daemon: add some right padding
...
The icon is not really centered in the box. This is likely coming from
a bogus glyph width calculation. It's not a big deal, but that's not
really pleasant aesthetically-wise.
Adding a bit of right padding makes it much more pleasant to watch. It
does not really disrupt a wider display form, like one that
explicitely writes the active profile.
2024-03-02 18:20:46 +01:00
Félix Baylac Jacqué
cc759a8b8f
Power profiles daemon: address review comments
...
Adding :
- A missing try/catch
- Glib::Error catch
- Remove the useless destructor
- Populate the profiles vector more efficiently
- Numerous nits
2024-03-02 18:20:46 +01:00
Félix Baylac Jacqué
bddc870340
modules/power-profiles-daemon: add man page
...
There was no way to display the default value of format-icons without
breaking the table :(
2024-03-02 09:46:14 +01:00
Félix Baylac Jacqué
09bb6a055d
modules/power_profiles_daemon: safely call dbus asynchronously
...
2 changes to address the review feedback:
1. Aleksei pointed out in this
comment (https://github.com/Alexays/Waybar/pull/2971#issuecomment-1972364896 )
that there's no way to tell if a proxy is alive other than trying to
call a method on it. We perform a little dance to check whether or
not power-profiles-daemon is available on the system by calling
properties.GetAll. If something responds, we assume
power-profiles-daemon is installed, it's then safe to draw the
widget and attach the callback to the active profile.
2. We replaced all the synchronous DBus operations by their async
counterparts.
2024-03-01 12:55:37 +01:00
Félix Baylac Jacqué
61fed6a214
modules/power_profiles_daemon: add custom format from config
...
We move to a single icon label format to save space on the bar. We
still display the profile name and the driver in the tooltip.
2024-03-01 11:18:24 +01:00
Aleksei Bavshin
c03fa38974
fix(mpd): use default interval in the example config
...
2 seconds is 2.5 times more often than the default for the module.
2024-03-01 00:53:12 -08:00
Aleksei Bavshin
bb60d41842
fix(mpd): use timers with second granularity where possible
...
Reuse already armed timer in Disconnected state.
2024-03-01 00:27:23 -08:00
Aleksei Bavshin
653c24cee1
feat(mpd): tone down logs if the server is not running
2024-03-01 00:16:19 -08:00
Alexis Rouillard
bdff489850
Merge pull request #2983 from alebastr/ci-freebsd-on-ubuntu
...
ci: move FreeBSD to ubuntu runners
2024-03-01 05:41:40 +01:00
Félix Baylac Jacqué
162b41c4d0
modules/power-profiles-daemon: apply clang-tidy suggestions
2024-02-29 21:46:27 +01:00
Aleksei Bavshin
55915f95f1
ci: move FreeBSD to ubuntu runners
...
With the recent runner hardware upgrade[1] and support in the
cross-platform-actions[2] it became possible to use a Linux runner for
this workflow.
Linux-based configuration appears to be faster and stabler than macOS,
so it's now recommended for use.
[1]: https://github.blog/2024-01-17-github-hosted-runners-double-the-power-for-open-source/
[2]: https://github.com/cross-platform-actions/action/releases/tag/v0.23.0
2024-02-28 23:56:10 -08:00
Alexis Rouillard
e7c7ef6814
Merge pull request #2979 from grimpy/filterscratch
...
Filter out special output __i3 which contains scratchpad
2024-02-28 10:38:33 +01:00
Alexis Rouillard
04f73e7303
Merge pull request #2973 from Azazel-Woodwind/feature/hyprland-window-improvements
...
Improved hyprland/window by fixing icon search and implementing configurable spacing
2024-02-28 09:29:54 +01:00
Azazel
ba48d26dd4
chore: amend default icon spacing
2024-02-28 00:24:58 +00:00
Jo De Boeck
5a887fe1ef
Filter out special output __i3 which contains scratchpad
...
Fixes : #2966
Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com >
2024-02-27 23:43:00 +02:00
Alexis Rouillard
e79ea93d7d
Merge pull request #2967 from aruhier/pr_hyprland_workspaces
...
hyprland/workspaces: Improve the workspaces persistency logic
2024-02-27 16:41:32 +01:00
Azazel
615c9050e7
fix: prevent icon showing when app_identifier is empty
2024-02-26 22:52:28 +00:00
Azazel
c59bb509bd
fix: hide icon if window is unfocused
2024-02-26 21:00:16 +00:00
Azazel
a7d8b1bacf
feat: re-add default and configurable icon spacing
2024-02-26 20:58:38 +00:00
Félix Baylac Jacqué
968f469289
modules/power-profiles-daemon: run clang format
2024-02-26 14:44:14 +01:00
Félix Baylac Jacqué
c38d05b04f
Introduce power-profiles-daemon module
...
We introduce a module in charge to display and toggle on click the
power profiles via power-profiles-daemon.
https://gitlab.freedesktop.org/upower/power-profiles-daemon
This daemon is pretty widespread. It's the component used by Gnome and
KDE to manage the power profiles. The power management daemon is a
pretty important software component for laptops and other
battery-powered devices.
We're using the daemon DBus interface to:
- Fetch the available power profiles.
- Track the active power profile.
- Change the active power profile.
The original author recently gave up maintenance on the project. The
Upower group took over the maintenance burden… …and created a new
DBus name for the project. The old name is still advertised for now.
We use the old name for compatibility sake: most distributions did not
release 0.20, which introduces this new DBus name. We'll likely revisit
this in the future and point to the new bus name. See the inline
comment for more details.
Given how widespread this daemon is, I activated the module in the
default configuration.
2024-02-26 14:44:14 +01:00
Azazel
695c786354
refactor: reuse toLowerCase function
2024-02-26 04:17:45 +00:00
Azazel
16aced7f9f
feat: move name and classes from label_ to box_
2024-02-26 04:07:03 +00:00
Anthony Ruhier
d6d4d87cf7
Attributes doc format fix from the review
...
Co-authored-by: Tuur Vanhoutte <4633209+zjeffer@users.noreply.github.com >
2024-02-26 00:21:36 +01:00
Anthony Ruhier
b3ee94d87a
Improve hyprland/workspaces persistency logic
...
Fixes #2945
Split the config and rule persistency in 2 attributes, one storing the
persistency as set in Waybar's config, the other one storing the
persistency as set in Hyprland.
It fixes some conflicts between the persistency state of a workspace as
set in Waybar's config and its dynamic state in Hyprland.
It allows to remove a persistent workspace in Waybar if this workspace
is removed from Hyprland and if the workspace is not set as persistent
in Waybar's config.
2024-02-26 00:14:25 +01:00
Azazel
3a5aa5ee83
feat: improve default spacing and add to config
2024-02-25 22:56:52 +00:00
Azazel
0ead42e52b
feat: improve search of .desktop files
2024-02-25 22:55:30 +00:00
Alexis Rouillard
6703adc37f
Merge pull request #2972 from alebastr/config-tweaks
...
RFC: Rename config to config.jsonc
2024-02-25 23:43:25 +01:00
Aleksei Bavshin
43aabf046c
chore: rename config to config.jsonc
...
Only changes the name of the default config we install and does not
affect the lookup logic in any way.
Man pages were already fixed in #2744
2024-02-25 12:00:53 -08:00
Aleksei Bavshin
2108959644
chore(config): add modeline for Emacs json-mode
...
json-mode supports jsonc format since 1.8.0, but does not register
.jsonc as a file extension.
2024-02-25 11:21:58 -08:00
Alexis Rouillard
3a33c0b290
Merge pull request #2930 from zjeffer/fix/zjeffer/hyprland-clang-tidy
...
fix clang-tidy errors in hyprland module
2024-02-25 17:11:13 +01:00
Alexis Rouillard
fb193529fc
Merge pull request #2961 from alebastr/sway-language-single-layout
...
feat(sway/language): option to hide module with single layout
2024-02-25 17:10:50 +01:00
Alexis Rouillard
75dce1ef4b
Merge pull request #2969 from alebastr/config-tweaks
...
Config tweaks
2024-02-25 17:10:22 +01:00
zjeffer
42f4386e2e
fix clang-tidy errors in hyprland module
2024-02-25 12:11:22 +01:00
zjeffer
edd723d95c
Change PrivateMember styling to use trailing underscore instead of m_ in .clang-tidy
2024-02-25 11:44:55 +01:00
Aleksei Bavshin
05fbbc1c43
style: align 'sway/mode' text with other modules
...
Use `box-shadow` instead of borders for consistent vertical alignment.
See 77c7e10 for a similar conversion of other modules.
2024-02-24 18:26:02 -08:00
Aleksei Bavshin
2540c07f1d
chore: wrap module lists in the config
...
"modules-right" has gotten too long, and it's easier to compare configs
that way.
2024-02-24 18:24:39 -08:00
Aleksei Bavshin
188789592e
feat(sway/language): option to hide module with single layout
2024-02-24 00:30:45 -08:00
Aleksei Bavshin
99c48bca36
fix: formatting
2024-02-24 00:30:44 -08:00
Alexis Rouillard
601af3de81
Merge pull request #2958 from JonnyTischbein/mediaplayer-exclude
2024-02-24 00:06:03 +01:00
Jonny Tischbein
3d31e9a22a
mediaplayer: add exclude player option
2024-02-23 18:41:45 +01:00
Alexis Rouillard
793394c862
Merge pull request #2949 from aokblast/feat/bsd_cpufreq
...
feat: implement cpufreq for bsd by sysctl
2024-02-22 01:25:21 +01:00
aokblast
514d00803c
feat: implement cpufreq for bsd by sysctl
2024-02-22 04:47:09 +08:00
Alexis Rouillard
977c66e7c5
Merge pull request #2948 from alebastr/clang-tidy-fix
...
ci: fix clang-tidy action
2024-02-21 09:19:20 +01:00
Alex
450a344426
chore: only label issues
2024-02-21 09:19:03 +01:00
Aleksei Bavshin
5fc2b97194
ci: fix clang-tidy action
2024-02-20 17:22:33 -08:00
Alex
efb2eb5073
chore: update cpp-linter
2024-02-20 22:24:30 +01:00
Alexis Rouillard
1606dce62e
Merge pull request #2944 from grimpy/waybarwindows
...
Implement windows formating in sway/workspaces
2024-02-20 18:34:32 +01:00
Jo De Boeck
bb843e0494
Implement windows formating in sway/workspaces
...
This implementation mimics to some extend the implementation of hyprland
Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com >
2024-02-20 19:12:26 +02:00
Alexis Rouillard
1b4008c58b
Merge pull request #2943 from iynaix/master
...
nix: update libcava version and removal of gtk-layer-shell meson option
2024-02-20 11:34:04 +01:00
Alex
a45932973a
fix: lint
2024-02-20 11:33:41 +01:00
Lin Xianyi
00ee538c95
nix: update libcava version and removal of gtk-layer-shell meson option
2024-02-20 17:57:07 +08:00
Alexis Rouillard
4ef5b48474
Merge pull request #2934 from tomben13/master
...
Fixed window#waybar.swallowing for module hyprland/window
2024-02-20 10:39:33 +01:00
Tom Benham
e6aa06cdf3
window#waybar.swallowing -- backward compatibility
2024-02-20 09:39:03 +01:00
Alex
e42635197c
chore: more labels
2024-02-20 08:35:28 +01:00
Alex
b8324be8c4
fix: token
2024-02-20 08:26:14 +01:00
Alexis Rouillard
197bc6a877
Merge pull request #2938 from thejch/click-special
2024-02-20 08:03:16 +01:00
Alexis Rouillard
536933ca24
Merge pull request #2940 from alebastr/clock
2024-02-20 08:02:08 +01:00
Alexis Rouillard
a118af0d1b
Merge pull request #2939 from alebastr/ci-update-debian-dependencies
2024-02-20 08:01:18 +01:00
Aleksei Bavshin
f885baba61
fix(clock): remove literal operator with reserved name
...
```
../include/util/date.hpp:34:26: warning: literal operator suffixes not preceded by ‘_’ are reserved for future standardization [-Wliteral-suffix]
34 | constexpr decltype(auto) operator""d(unsigned long long d) noexcept {
```
2024-02-19 21:56:47 -08:00
Aleksei Bavshin
a2deff3689
fix(clock): crash on scrolling with local timezone ("") in the list
...
While we at it, eliminate use of non-portable GCC conditional expression
syntax. There are no significant side-effects that would justify use of
the language extension.
2024-02-19 21:56:46 -08:00
Aleksei Bavshin
5d6acfd1d4
test: restore compatibility with older Catch2 releases
2024-02-19 17:00:01 -08:00
Aleksei Bavshin
d59d6e8765
chore: remove duplicate fedora/c++20 job definition
2024-02-19 16:35:56 -08:00
Aleksei Bavshin
bdb2f2bd1a
chore: update Debian CI dependencies
...
This should speed-up "linux (debian)" and "clang-tidy" builds and enable
lints for more modules.
2024-02-19 16:35:21 -08:00
Jeremy Huang
4a5444d196
fix click special
2024-02-19 16:16:46 -08:00
Alexis Rouillard
ce5a1cf2f9
Merge pull request #2937 from alebastr/factory-includes
...
refactor: move all module includes to factory.cpp
2024-02-20 00:44:38 +01:00
Aleksei Bavshin
c6f5cbdf0c
refactor: move all module includes to factory.cpp
...
None of these includes are required in the header.
2024-02-19 15:11:08 -08:00
Alexis Rouillard
6048e23e09
Merge pull request #2926 from alebastr/meson-cleanup
...
build: refactorings and deprecation fixes
2024-02-19 23:44:52 +01:00
Alexis Rouillard
3d75167e67
Merge pull request #2936 from Alexays/revert-2773-waybarwindows
...
Revert "Implement windows formating in sway/workspaces"
2024-02-19 23:28:15 +01:00
Alexis Rouillard
ee2407496f
Revert "Implement windows formating in sway/workspaces"
2024-02-19 23:28:08 +01:00
Alex
175852e527
chore: auto label
2024-02-19 23:24:20 +01:00
Alexis Rouillard
d36f15c26b
Merge pull request #2935 from Alexays/revert-2915-cpu_style
...
Revert "Add style class for CPU state"
2024-02-19 23:10:20 +01:00
Alexis Rouillard
742cd7f371
Revert "Add style class for CPU state"
2024-02-19 23:10:10 +01:00
Alex
41b2d0cb29
chore(workflows): concurrency
2024-02-19 23:09:24 +01:00
Aleksei Bavshin
a95b6a39c9
build: mark bluetooth as Linux-specific
2024-02-19 14:08:22 -08:00
Alex
bd0bf836c7
fix: lint
2024-02-19 23:07:50 +01:00
Alexis Rouillard
ae1e11db22
Merge pull request #2773 from grimpy/waybarwindows
...
Implement windows formating in sway/workspaces
2024-02-19 23:05:24 +01:00
Alexis Rouillard
347197865f
Merge pull request #2885 from jones-josh/ordinal-date
...
Add ordinal date toolbar format specifier to clock module
2024-02-19 23:03:40 +01:00
Alexis Rouillard
91b79a2e9e
Merge pull request #2894 from jramrath/active-for-hyprland-special-workspaces
...
Add css classes to hyprland special workspaces
2024-02-19 23:02:17 +01:00
Alexis Rouillard
70dc388dff
Merge pull request #2915 from haasn/cpu_style
...
Add style class for CPU state
2024-02-19 22:58:21 +01:00
Alexis Rouillard
bba8da76b6
Merge pull request #2836 from alebastr/require-gtk-layer-shell
...
Require gtk-layer-shell
2024-02-19 22:57:50 +01:00
Alexis Rouillard
9abd0da1c7
Merge pull request #2603 from zjeffer/hyprland/persistent-workspaces
...
Hyprland/workspaces: use Hyprland's workspace rules for persistency
2024-02-19 22:55:28 +01:00
Alexis Rouillard
6fbae3bd7b
Merge pull request #2888 from imran1008/hwmon-path-abs-subdir
...
Search for the first hwmon* directory
2024-02-19 22:53:31 +01:00
Alexis Rouillard
9191cae13b
Merge pull request #2923 from jones-josh/custom-tooltip-format
...
Add check for tooltip-format for custom modules
2024-02-19 22:47:22 +01:00
Alexis Rouillard
a18b6dcc29
Merge pull request #2925 from LukashonakV/bump_cava
...
libcava bump 0.10.1
2024-02-19 22:47:04 +01:00
Alexis Rouillard
c553e3028e
Merge pull request #2928 from zjeffer/fix/zjeffer/build-warnings
...
fix build warning in bar.cpp
2024-02-19 22:41:44 +01:00
Tom Benham
745d5687b8
Fixed window#waybar.swallowing for module hyprland/window
2024-02-19 22:23:03 +01:00
Aleksei Bavshin
8a4a44896a
refactor: merge BarSurface into Bar
...
With only one implementation left, the abstraction is no longer
necessary.
2024-02-19 03:00:38 -08:00
Aleksei Bavshin
4420447e74
fix(bar): use std::string for mode names
...
`string_view` leads to UAF when reading custom mode definitions from the
configuration.
2024-02-19 01:50:40 -08:00
zjeffer
11310b89f0
hyprland/workspaces: Use hyprland's persistent workspaces configuration
2024-02-18 16:04:47 +01:00
zjeffer
a02bacdd53
fix build warning
2024-02-18 12:01:36 +01:00
Aleksei Bavshin
543290ab07
fix: -Wnon-virtual-dtor warning in CssReloadHelper
...
```
../include/util/css_reload_helper.hpp:15:7: warning: 'class waybar::CssReloadHelper' has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
```
2024-02-17 21:43:10 -08:00
Aleksei Bavshin
fd5a03dc5f
build: disable catch2 unit-tests
...
The library tests take more time to complie than the entire Waybar.
2024-02-17 21:43:09 -08:00
Aleksei Bavshin
f3063e86aa
build: install man pages only for enabled modules
2024-02-17 21:43:08 -08:00
Aleksei Bavshin
3cb587945a
fix: use gtk_layer_set_keyboard_mode()
...
`gtk_layer_set_keyboard_interactivity()` is deprecated and was removed
in gtk4-layer-shell.
Note that this bumps version requirement to 0.6.0
2024-02-17 11:23:19 -08:00
Aleksei Bavshin
9a21884272
feat!: drop RawSurfaceImpl with direct use of wlr-layer-shell
...
BREAKING CHANGE: gtk-layer-shell is now required and unconditionally
used. The corresponding config option is removed.
As a part of preparation for future versions of GTK, remove an ability
to use wlr-layer-shell directly. The APIs it required were dropped in
GTK4, and with the menus/tooltips positioning issue being practically
unsolvable it doesn't make sense to keep maintaining the code.
2024-02-17 11:23:17 -08:00
Aleksei Bavshin
4f5dd53571
chore: update gtk-layer-shell subproject to 0.8.2
2024-02-17 11:21:43 -08:00
Aleksei Bavshin
4b34486143
man: fix missing code block fence in hyprland-workspaces
2024-02-17 08:45:44 -08:00
Aleksei Bavshin
63935ba0fb
build: don't use sh for scdoc
2024-02-17 08:45:18 -08:00
Aleksei Bavshin
d9f9fb51ff
build: use / instead of join_paths
2024-02-17 08:45:17 -08:00
Aleksei Bavshin
c2f37705ad
build: address meson deprecation warnings:
...
- `ExternalProgram.path`
- `dependency.get_pkgconfig_variable`
- `meson.build_root`
- `meson.source_root`
2024-02-17 08:45:16 -08:00
Aleksei Bavshin
72406fa3f2
build: require gio-unix-2.0 unconditionally
...
We already use it without checking (`<gio/gdesktopappinfo.h>` in
wlr/taskbar), it's a transitive dependency of GTK and it's always
available on Unix platforms.
2024-02-17 08:33:31 -08:00
Aleksei Bavshin
104accdc34
build: drop std::filesystem checks
...
The `<experimental/filesystem>` and `-lc++experimental` aren't needed
since LLVM 9.0. And since we now require C++20, checking for the
`<filesystem>` support shouldn't be necessary either.
2024-02-17 08:33:22 -08:00
Viktar Lukashonak
d7d4dca6ba
libcava bump 0.10.1
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2024-02-17 18:20:03 +03:00
Josh Jones
7f3e396383
add tooltip-format to custom module man page
2024-02-16 15:26:36 +01:00
Alexis Rouillard
3cd311819b
Merge pull request #2921 from alebastr/module-classes
...
Add `module` class to the root elements of the modules
2024-02-16 13:34:50 +01:00
Josh Jones
9c3881f6f8
add check for tooltip-format for custom modules
2024-02-16 01:33:04 +01:00
Aleksei Bavshin
d590d508ca
feat: add module class to the root elements of the modules
...
Previously, the only way to select all the module labels was with the
following kind of selector:
```css
.modules-left > widget > label,
.modules-center > widget > label,
.modules-right > widget > label {
/* ... */
}
```
(and a matching block for the `box` containers).
Now, this can be expressed as
```css
label.module, box.module {
/* ... */
}
```
2024-02-14 22:41:13 -08:00
Aleksei Bavshin
2f555a6936
refactor(bar): use Gtk enums for position and orientation
...
Ensure that the position and the corresponding CSS class on window are
always set.
2024-02-14 22:11:21 -08:00
Alexis Rouillard
28cd9dff47
Merge pull request #2916 from alttabber/master
...
Add style classes for hyprland/submap
2024-02-13 13:25:23 +01:00
alttabber
77c7b91b40
Add style classes for hyprland/submap
2024-02-13 11:46:27 +01:00
Niklas Haas
a0bac34329
Add style class for CPU state
...
Fixes: https://github.com/Alexays/Waybar/issues/2911
2024-02-13 10:49:57 +01:00
Alexis Rouillard
2c244b5e83
Merge pull request #2912 from zjeffer/fix/zjeffer/build-warnings
...
Fix build warnings
2024-02-12 20:30:58 +01:00
zjeffer
dd8d6fbe6c
Fix build warnings
2024-02-12 20:09:22 +01:00
Jannik
acf6611098
clang-format
2024-02-10 17:35:46 +01:00
Jannik
a2925fa5da
fix 'visible' class for special workspaces
2024-02-10 17:26:44 +01:00
Jannik
240b49f9d2
Add 'empty' css class to special workspaces
2024-02-10 16:59:53 +01:00
Jannik
d4331ce7fe
improve handling of special workspace name
2024-02-09 13:49:39 +01:00
Alexis Rouillard
4d076a71f7
Merge pull request #2899 from OpenSauce04/battery-full-no-alt
...
Make battery estimate inaccessible in the "Full" state on default config
2024-02-09 10:54:22 +01:00
OpenSauce04
90c2415b64
Battery estimate is no longer accessible in the "Full" state on default config
2024-02-08 15:10:21 +00:00
Jannik
692f8f4ea4
add/remove 'active' on 'focusedmon' IPC event
2024-02-07 22:42:05 +01:00
Jannik
61be2267ab
add 'visible' css class to special workspaces
2024-02-07 21:10:17 +01:00
Jannik
c30541b954
remove whitespaces
2024-02-07 16:56:37 +01:00
Jannik
3bfcd5e086
Add 'active' css class to special workspaces
2024-02-07 16:33:19 +01:00
Alexis Rouillard
b6f4a0dae2
Merge pull request #2881 from jramrath/drawer-direction
...
Fix: drawer not appearing on configured side
2024-02-06 16:18:52 +01:00
Imran Haider
92875711c6
Search for the first hwmon* directory
...
Background and Motivation
-------------------------
When the `hwmon-path-abs` and the `input-filename` fields are used for
the temperature module, we evaluated the following path:
```
[hwmon-path-abs] / [gap] / [input-filename]
```
where `gap` is the first file or directory in the `hwmon-path-abs`
directory. This usually works but it doesn't seem to work for NVME or
WiFi temperature sensors. For those cases, there are a bunch of other
files in the `hwmon-path-abs` directory. In the bad case, the first
selected file is not the one with the prefix `hwmon` and we end up
checking the wrong location for the `input-filename`.
Change description
------------------
We are simply going through the `hwmon-path-abs` directory and searching
for the first file/directory that begins with `hwmon`.
Test case
---------
I tested this on a AMD based Framework 13 laptop.
2024-02-05 21:40:24 -05:00
Merlin Sievers
89b3203bfa
Add justify config option for Labels
...
This is especially useful for centering labels on vertical bars.
2024-02-05 14:44:59 +01:00
Jannik
08b32cb901
Removing unnecessary parts of transition_type handling
2024-02-04 16:17:06 +01:00
Josh Jones
1fa1045af9
remove duplicated segment
2024-02-04 16:11:39 +01:00
Josh Jones
e02cb9cfb9
add ordinal format specifier to man clock
2024-02-04 15:49:14 +01:00
Josh Jones
718dd4afae
add ordinal date toolbar format specifier to clock module
2024-02-04 15:41:39 +01:00
Jo De Boeck
c641d52e06
Implement windows formating in sway/workspaces
...
This implementation mimics to some extend the implementation of hyprland
Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com >
2024-02-03 12:31:06 +02:00
Jannik
029b380c15
Fix: drawer not appearing on configured side
2024-02-02 20:54:16 +01:00
Alexis Rouillard
4c5ff80bbd
Merge pull request #2874 from Alexays/fix-reload-style
...
fix: reload style
2024-01-31 23:09:54 +01:00
Alex
f1016322b9
fix: tpyo
2024-01-31 22:59:09 +01:00
Alex
6dcae2cade
fix: reload style
2024-01-31 22:57:20 +01:00
Alex
fb6658e8fd
chore: lint
2024-01-30 09:07:37 +01:00
Alexis Rouillard
1dce607c42
Merge pull request #2852 from dpayne/add_css_reload
...
Adding css reloader
2024-01-29 22:44:29 +01:00
dpayne
10cb4180f6
* Fixing clang tidy comments
...
* Fixing missing includes
* Fixing formatting
2024-01-28 14:44:25 -08:00
Alexis Rouillard
5534fc48b1
Merge pull request #2496 from zjeffer/tests/json
...
Fix JSON parsing with hexadecimal characters
2024-01-28 23:38:54 +01:00
dpayne
9556b0fe89
Adding a man page entry for the realod_style_on_change option
2024-01-28 14:25:00 -08:00
Alexis Rouillard
ddad6ce136
Merge pull request #2866 from Jay-716/pa-reconnect
...
pulseaudio: reconnect context when pulseaudio server restarts
2024-01-28 17:04:57 +01:00
Jay-716
14d168c254
pulseaudio: extract context connecting into connectContext()
2024-01-27 23:47:39 +08:00
Jay-716
167f04a4df
pulseaudio: reconnect context when pulseaudio server restarts
...
When pulseaudio server restarts, the context is not reconnect
automatically. So the pulseaudio module will stop updating.
2024-01-25 23:59:32 +08:00
Alexis Rouillard
5f115785cf
Merge pull request #2862 from Sryther/master
...
Move `.empty` CSS class from Img to Box in the Image module
2024-01-25 16:12:02 +01:00
Alexis Rouillard
7caf0b9ec4
Merge pull request #2865 from chntllh/Battery-animations
...
Using steps() in animation to reduce cpu usage.
2024-01-25 16:11:00 +01:00
Paul Rey
94633c346a
retrigger checks
2024-01-25 11:02:44 +01:00
Siddhartha Singh
7e76369ec8
Using steps() in animation
2024-01-25 14:00:21 +05:30
Paul Rey
002ff002fe
Move .empty CSS class from Img to Box in the Image module
...
Since the GTK Image is hidden, the CSS class wasn't used for every cases.
2024-01-24 11:10:16 +01:00
Alexis Rouillard
0948a407d0
Merge pull request #2810 from ArneshRC/master
...
feat(battery): added support for battery state-based classes on the entire waybar
2024-01-23 22:45:24 +01:00
Arnesh Roychowdhury
90b5b21394
Merge branch 'Alexays:master' into master
2024-01-24 02:01:17 +05:30
Alexis Rouillard
8e2fa0fdbd
Merge pull request #2859 from Sryther/master
...
Add "empty" class for Image module when path/exec is returning an empty value.
2024-01-23 18:50:50 +01:00
Paul Rey
0af8f5c691
Add "empty" class for Image module when path/exec is returning an empty value.
2024-01-23 18:15:47 +01:00
dpayne
970a7519d4
Merge branch 'master' of github.com:Alexays/Waybar into add_css_reload
2024-01-22 12:40:02 -08:00
Alexis Rouillard
0d9c492998
Merge pull request #2855 from SquishyPandaDev/upower-ptr-fix
...
Fix module UPower display device poniter
2024-01-22 09:49:55 +01:00
SquishyPandaDev
82b632e4ec
Fix module UPower display device poniter
...
Force displayDevice to be a nullptr on class setup
2024-01-22 03:22:19 -05:00
Alexis Rouillard
27fec51439
Merge pull request #2853 from dpayne/fix_use_after_free_on_task_close
2024-01-22 09:01:48 +01:00
dpayne
20fa578b12
Adding config option to enable reloading style on file change
2024-01-21 21:02:01 -08:00
dpayne
f7eca99496
Using Gio::FileMonitor for watching style changes
2024-01-21 20:49:13 -08:00
dpayne
53233e47a3
Fix use after free on task close
2024-01-21 19:08:23 -08:00
dpayne
d7ed4f1fa8
Adding css reloader
2024-01-21 18:23:46 -08:00
ArneshRC
d14a4a2b1a
fixed early dereference error
2024-01-19 16:00:13 +05:30
ArneshRC
dacffdb095
removed duplicate code
2024-01-19 15:27:11 +05:30
ArneshRC
74e863ed73
updated man waybar-battery
2024-01-19 14:45:49 +05:30
Arnesh Roychowdhury
3de6d2e859
Merge branch 'Alexays:master' into master
2024-01-17 18:29:14 +05:30
Alexis Rouillard
6e12f81223
Merge pull request #2840 from m-bdf/clock-tz-changes
...
clock: fix construction with calendar.format.today
2024-01-17 13:44:28 +01:00
Maëlys Bras de fer
4f0fbaba8e
clock: fix construction with calendar.format.today
2024-01-17 13:30:32 +01:00
Alexis Rouillard
392f83e71d
Merge pull request #2838 from m-bdf/clock-tz-changes
2024-01-16 22:48:31 +01:00
Maëlys Bras de fer
d343f616fc
clock: handle timezone changes (again again)
2024-01-16 21:35:42 +01:00
Arnesh Roychowdhury
8c502378aa
Merge branch 'Alexays:master' into master
2024-01-15 14:24:27 +05:30
Alexis Rouillard
07eabc5328
Merge pull request #2831 from JManch/tray-fix-spacing
...
fix(tray): completely hide tray when it is empty
2024-01-14 16:33:28 +01:00
Joshua Manchester
95ffc291f6
fix: hide tray event box instead of box
2024-01-14 15:06:06 +00:00
zjeffer
8f5d0098d6
Fixed json parsing with hexadecimal characters
...
* replace \x with \u00 to follow JSON spec
* fixes #2475 and #2495
* added unit tests for json parsing
2024-01-14 14:06:06 +01:00
Arnesh Roychowdhury
4eef1ce10f
Merge branch 'Alexays:master' into master
2024-01-13 16:07:11 +05:30
Alexis Rouillard
f744d906be
Merge pull request #2820 from oxalica/feat/systemd-failed-units
...
Add module systemd-failed-units to monitor failed systemd units
2024-01-12 09:45:40 +01:00
Alexis Rouillard
fa3ce14b25
Merge pull request #2817 from Syndelis/fix/window-rewrite-multiple-bars-no-overlap
...
Fix/Hyprland/Workspaces: Window Rewrite on multiple non-overlapping bars
2024-01-12 09:44:03 +01:00
Alexis Rouillard
e6097229ce
Merge pull request #2814 from khaneliman/flake-update
...
flake update and direnv fix
2024-01-12 09:43:19 +01:00
Austin Horstman
b239c77d74
fix: temporary catch2_3 override until upstreamed to nixpkgs
2024-01-10 12:17:46 -06:00
Brenno Lemos
9e08512927
feat: strip workspace qualifiers when creating windows
2024-01-10 02:24:51 -03:00
oxalica
eedd1f8e6a
Add module systemd-failed-units
2024-01-09 18:19:30 +08:00
Brenno Lemos
c69a6dde67
chore: update Hyprland's featureset in readme
2024-01-08 20:31:15 -03:00
Brenno Lemos
4339030c9d
feat: fetch clients data when moving workspaces accross monitors
2024-01-08 20:11:39 -03:00
Brenno Lemos
bc7acbde5c
fix: rename windows while queued for creation
...
this avoids the window arriving with the wrong icon when its eventually
able to be created
2024-01-08 18:30:53 -03:00
Brenno Lemos
512c6fb127
feat: add orphan windows attribute to workspaces
...
this attribute will keep every window that doesn't have an associated
workspace in the current bar
2024-01-08 18:30:53 -03:00
Austin Horstman
b90af74d15
feat: enable direnv and fix flake devshell output
2024-01-08 12:47:32 -06:00
Arnesh Roychowdhury
f1f3442e38
Merge branch 'Alexays:master' into master
2024-01-08 22:54:08 +05:30
Austin Horstman
d4d5a54e63
chore: flake lock update
2024-01-08 09:37:48 -06:00
Alexis Rouillard
748fc809b5
Merge pull request #2813 from yangyingchao/master
...
Improvements for Hyprland worskspaces & backend
2024-01-08 14:03:23 +01:00
yangyingchao
bdd7271da9
Improvements for Hyprland backend
...
1. Fix warnings reported by clang tidy
2. Use unique lock instead of manully lock/unlock on mutex.
The RAII style locking makes sure mutex is unlocked when exceptions are thrown
2024-01-08 09:26:16 +08:00
yangyingchao
a34e3ccc86
Improvements for Hyprland workspace
...
1. Utilize `m_mutex` to safeguard member fields of `hyprland::Workspaces` as they are modified by multiple threads, including the event listener thread and UI thread. This applies to all member fields, not just `m_workspacesToCreate`.
2. Tidy up the create/remove workspace code.
2024-01-08 09:14:36 +08:00
ArneshRC
3390c16f52
added support for battery state-based classes on the entire waybar
2024-01-07 17:22:34 +05:30
Alexis Rouillard
4b20f522f0
Merge pull request #2789 from DreamMaoMao/master
...
fix:#2769
2024-01-04 15:33:26 +01:00
Alexis Rouillard
4636309117
Merge pull request #2803 from LukashonakV/catch_bump
...
Catch2 bump
2024-01-04 15:33:06 +01:00
Viktar Lukashonak
7783c81861
Catch2 bump
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2024-01-04 17:22:27 +03:00
Alexis Rouillard
3e55d0d7f2
Merge pull request #2787 from scgtrp/master
...
hyprland/workspaces: allow using the original window class/title
2023-12-31 12:40:06 +01:00
Emily Ellis
ff09ef6d71
hyprland/workspaces: allow using the original window class/title
...
This turns the values of window rewrite rules in hyprland/workspaces from static strings to format strings with the values {class} and {title} available.
2023-12-30 21:07:40 -05:00
Alexis Rouillard
99d26e44ee
Merge pull request #2778 from an-prata/master
...
fix `restart-interval` being ignored while `signal` is defined (#2650 )
2023-12-29 10:59:13 +01:00
Evan Overman
19bf4d0544
clang format trailing whitespace
2023-12-28 19:38:01 -08:00
Evan Overman
6b860f8690
clang formating
2023-12-28 19:36:21 -08:00
Evan Overman
182272b8b5
fix #2650
2023-12-28 19:30:26 -08:00
DreamMaoMao
e64d66ab24
fix:the workspace data is null in a small probability
...
update
fix clang-format warn
no manual unlock
2023-12-25 21:55:46 +08:00
Alexis Rouillard
41ebdc3cb6
Merge pull request #2768 from zjeffer/feat/zjeffer/freebsd-bump
2023-12-25 08:31:03 +01:00
Alexis Rouillard
8ccb959992
Merge pull request #2767 from zjeffer/master
2023-12-25 00:28:32 +01:00
zjeffer
13e904c20d
Bump cross-platform-action to attempt fixing freebsd runner
2023-12-25 00:26:39 +01:00
zjeffer
77f0584d0d
Bump clang-tidy cpp-linter-action version to v2.7.5
2023-12-24 23:08:22 +01:00
Alexis Rouillard
d2767fb84a
Merge pull request #2760 from avannereau/wireplumber-scroll-fix
...
Fix wireplumber reverse-scroll option
2023-12-22 12:00:39 +01:00
Alan Vannereau
49caab47a6
Fix wireplumber reverse-scroll option
2023-12-22 11:50:41 +01:00
Alexis Rouillard
08361be9f0
Merge pull request #2756 from grimpy/custom_output_env_var
...
Pass WAYBAR_OUTPUT_NAME environment variable to custom exec scripts
2023-12-21 08:55:30 +01:00
Alexis Rouillard
2674982c7b
Merge pull request #2755 from zjeffer/master
...
Added clang-tidy GitHub action
2023-12-20 23:25:33 +01:00
Tuur Vanhoutte
dbe02ebe41
Added clang-tidy GitHub action
...
Created clang-tidy.yml
Renamed lint.yml to clang-format.yml
2023-12-20 14:31:27 +01:00
Jo De Boeck
0ea5143493
Pass WAYBAR_OUTPUT_NAME environment variable to custom exec scripts
...
Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com >
2023-12-19 22:54:12 +02:00
Alexis Rouillard
f5370fcff5
Merge pull request #2573 from CromFr/cabi_plugins
...
C ABI plugin system
2023-12-18 14:10:02 +01:00
Alexis Rouillard
7b79281437
Merge pull request #2742 from zjeffer/feat/zjeffer/debian-docker-add-clang-tidy-requirements
...
Added sudo, python3-pip & python3-venv to debian image, required for clang-tidy GH action
2023-12-18 09:06:54 +01:00
Alexis Rouillard
acc2da7310
Merge pull request #2744 from rpdelaney/jsonC
...
Specify config is JSONC
2023-12-18 09:06:28 +01:00
Ryan Delaney
68e525df58
Remove 'config' from list of valid locations
...
Since the file can also be named config.jsonc, that will remove ambiguity
2023-12-13 11:22:57 -05:00
Ryan Delaney
2cd67fdd0a
The file can also be named config.jsonc
2023-12-13 10:40:13 -05:00
Ryan Delaney
2600f53bdd
Clarify that the configuration file is JSON*C*
...
JSON is JSONC
2023-12-13 10:39:59 -05:00
zjeffer
da9cc77db8
Added sudo, python3-pip & python3-venv to debian image, required for clang-tidy GH action
2023-12-13 11:54:04 +01:00
Crom (Thibaut CHARLES)
75f9141cac
Added cffi man page
2023-12-12 16:23:03 +01:00
Alexis Rouillard
f03b684bd8
Merge pull request #2736 from Rice8Dyb6/master
2023-12-10 19:27:52 +01:00
Rice8Dyb6
4822f967b2
Sway/workspaces: fix persistent icon
2023-12-11 00:17:35 +07:00
Alexis Rouillard
dc208b66b3
Merge pull request #2720 from zjeffer/master
...
Applied clang-tidy suggestions for hyprland workspaces
2023-12-07 08:34:19 +01:00
Alexis Rouillard
77ebc45336
Merge pull request #2731 from mcepl/patch-1
2023-12-07 08:25:49 +01:00
Matěj Cepl
d94519a93c
Clear README.md from duplicated list of distributions
...
It doesn’t make sense to keep the list in README.md when we maintain it in Wiki as well.
2023-12-07 07:53:45 +01:00
zjeffer
4d5b715dc4
applied clang-tidy suggestions for hyprland workspaces
2023-12-06 21:58:26 +01:00
zjeffer
8a84cb609e
clang-tidy: added StaticConstantCase CheckOption
2023-12-06 21:58:26 +01:00
Alexis Rouillard
5f8ae44233
Merge pull request #2703 from czadowanie/master
...
upower: show-icon config option
2023-12-05 23:34:43 +01:00
czadowanie
4283195803
man: add dot in upower/show-icon
2023-12-04 21:32:08 +01:00
czadowanie
44f309678b
man: document upower/show-icon
2023-12-04 21:28:37 +01:00
Alexis Rouillard
4846ff7950
Merge pull request #2595 from zjeffer/master
...
Added initial .clang-tidy file
2023-12-04 09:29:12 +01:00
Alexis Rouillard
0ec2aada26
Merge pull request #2711 from chayleaf/flake
...
flake: update & cleanup
2023-12-04 09:28:16 +01:00
Alexis Rouillard
dfa0f5701e
Merge pull request #2712 from khaneliman/fix/nix-flake
...
chore: lint fix
2023-12-04 09:28:05 +01:00
Austin Horstman
b1744278d1
chore: lint fix
2023-12-01 22:05:40 -06:00
chayleaf
2e2cb67cf1
flake: update & cleanup
2023-12-02 02:41:59 +07:00
Alexis Rouillard
1572bc8c75
Merge pull request #2707 from alexbakker/fix-2154
2023-11-30 08:37:59 +01:00
Alexander Bakker
6be5f7cb29
Disconnect from PipeWire when destroying the WirePlumber module
...
This fixes a crash where PipeWire tries to send events to a destroyed
WirePlumber module.
2023-11-29 22:46:58 +01:00
czadowanie
2334faa7fd
upower: show-icon config option
2023-11-28 19:39:08 +01:00
Alexis Rouillard
58db0baaf4
Merge pull request #2701 from thejch/hl-ws-click
...
Add button click check to hyprland workspaces module
2023-11-28 09:20:51 +01:00
Jeremy Huang
0162dbd485
add button single click check to hyprland workspaces
2023-11-27 16:20:05 -08:00
Alexis Rouillard
1fe4a4ee9d
Merge pull request #2686 from aruhier/pr_privacy_visibility
...
privacy: fix visibility when a module is disabled
2023-11-23 09:52:44 +01:00
Anthony Ruhier
50a4fe9623
privacy: fix visibility when a module is disabled
...
Only consider a privacy module as visible if it is enabled in the
configuration. Otherwise, when screensharing or audio-in or audio-out is
in use but the associated module is not enabled, the privacy widget is
empty but still considered as visible.
2023-11-23 00:45:31 +01:00
Alexis Rouillard
061c68ce92
Merge pull request #2677 from sjoblomj/master
...
Using 'image-missing' fallback if no taskbar icon is found
2023-11-20 14:03:52 +01:00
Alexis Rouillard
20b89d5d13
Merge pull request #2679 from aserowy/master
...
hyprland module: added sort_workspaces after rename occured
2023-11-20 14:02:39 +01:00
Alexis Rouillard
c299ea9369
Merge pull request #2681 from tactikauan/master
2023-11-19 14:20:54 +01:00
Kauan Decarli
d2dd2d553f
cpu_usage/linux: count iowait toward idle time
2023-11-18 13:59:21 -03:00
aserowy
b6b495e1bc
hyprland module: added sort_workspaces after rename occured
...
Signed-off-by: aserowy <serowy@hotmail.com >
2023-11-18 11:36:47 +01:00
Johan Sjöblom
d4559c7f00
Using 'image-missing' fallback if no taskbar icon is found
2023-11-16 16:59:05 +01:00
Alexis Rouillard
0a747ddafc
Merge pull request #2672 from fdev31/master
2023-11-15 17:53:48 +01:00
fdev31
375a38a489
Fix for #2646
2023-11-14 21:26:17 +01:00
Alexis Rouillard
9ac27de7d8
Merge pull request #2668 from LukashonakV/cpp20_clock
2023-11-13 08:34:59 +01:00
Viktar Lukashonak
7308893adb
Happy clang. fmt9-10
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-11-13 09:59:50 +03:00
Alexis Rouillard
a51dd8fc52
Merge pull request #2659 from LukashonakV/cpp20_clock
...
c++20. clock chrono API. STL + format
2023-11-12 09:17:59 +01:00
Viktar Lukashonak
86a38980e4
c++20. clock chrono API. STL + format
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-11-10 17:57:26 +03:00
Alexis Rouillard
c4330a1e36
Merge pull request #2648 from Mrcarrot1/wp-segfault
...
Fix segmentation fault in WirePlumber module
2023-11-06 16:58:40 +01:00
Caleb Harper
4d339f05af
Fix segmentation fault in WirePlumber module
...
The WirePlumber module assumes that either the node's name or
description will not be null. This leads to a segmentation fault when
both are.
The solution provided is to set self->node_name_ to a default value in
this case.
2023-11-06 09:50:13 -06:00
Alexis Rouillard
e24adbc3c2
Merge pull request #2612 from ErikReider/privacy-module
...
Add Privacy Module
2023-11-06 09:42:35 +01:00
Alexis Rouillard
7d7a047fcc
Merge pull request #2643 from qbe/bugfix-dst-ambiguous-hour-err
2023-11-06 08:51:26 +01:00
Lukas Hannen
aa1f8a428b
avoid converting to local_time when converting to zoned_time afterwards
2023-11-06 01:28:48 +01:00
Erik Reider
f21b1dfa4d
fixed linter issues
2023-11-04 15:16:13 +01:00
Erik Reider
6050fa3a43
Added documentation
2023-11-04 15:16:13 +01:00
Erik Reider
ca7c9a68f1
Made creation of privacy modules more modular
2023-11-04 14:05:01 +01:00
Alex
48ec834ec9
chore: 0.9.24
2023-11-03 14:07:07 +01:00
Alex
e7c2e90236
Revert "custom: reap zombie processes on termination"
...
This reverts commit 1c1a39f597 .
2023-11-03 14:06:50 +01:00
zjeffer
23bc4d66bf
Added initial .clang-tidy file
2023-11-02 23:09:49 +01:00
Alex
c6a9b63189
chore: 0.9.23
2023-11-02 14:16:55 +01:00
Alexis Rouillard
7dfc72003f
Merge pull request #2629 from andresilva/custom-fix-zombie-processes
...
custom: reap zombie processes on termination
2023-11-02 10:12:21 +01:00
André Silva
1c1a39f597
custom: reap zombie processes on termination
2023-11-02 01:57:55 +00:00
Alexis Rouillard
121dcc645f
Merge pull request #2628 from andresilva/fix-hyprland-workspaces-init
...
hyprland/workspaces: fix crash on monitor off/on
2023-11-01 23:12:32 +01:00
André Silva
8555456050
hyprland/workspaces: fix crash on monitor off/on
2023-11-01 22:04:19 +00:00
Alexis Rouillard
22dc87934a
Merge pull request #2626 from akliuxingyuan/master
2023-11-01 17:35:42 +01:00
akliuxingyuan
335a736eed
tray: load_icon use request_size directly
2023-11-01 22:26:52 +08:00
Alexis Rouillard
1149e51f72
Merge pull request #2625 from LukashonakV/happyLinter
2023-11-01 08:27:13 +01:00
Viktar Lukashonak
9012cebbf2
Happy Linter
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-10-31 23:31:58 +03:00
Alexis Rouillard
6425bd2fe0
Merge pull request #2623 from LukashonakV/cavaBump
2023-10-31 21:13:52 +01:00
Alexis Rouillard
241938a86d
Merge pull request #2624 from sahib/master
2023-10-31 21:13:18 +01:00
Chris Pahl
f511e61832
fix: custom: do not crash if input text is not valid utf-8
2023-10-31 19:41:42 +01:00
Viktar Lukashonak
b9b89cce7e
Happy linter
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-10-31 20:47:56 +03:00
Viktar Lukashonak
e9a66d68b7
Fix debug mode. cava issue
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-10-31 20:27:00 +03:00
Erik Reider
49caa4bf31
Add the PrivacyNodeInfo object as pw_proxy data
2023-10-31 11:38:01 +01:00
Erik Reider
c60a8e9836
free pipewire listeners on proxy destruction
2023-10-31 08:52:54 +01:00
Alexis Rouillard
b37d0df89b
Merge pull request #2622 from nomads-land/master
2023-10-31 07:44:29 +01:00
cvhere
67422eea36
Skips logging NoActivePlayer error msgs
2023-10-31 11:14:23 +05:30
Erik Reider
c4226f3745
Readded signal_timeout instead of map to fix indicator being stuck
2023-10-30 18:01:47 +01:00
Erik Reider
d32da917e4
Added tooltips
2023-10-29 00:17:53 +02:00
Erik Reider
46e36c0e68
Simplified the privacy_item hiding/showing logic
2023-10-28 18:30:50 +02:00
Erik Reider
86491e1512
Call module emit in privacy module contructor
2023-10-28 16:47:06 +02:00
Alexis Rouillard
e46f66b468
Merge pull request #2613 from DreamMaoMao/master
...
Fixed variable synchronization exception caused by the "hyprland/workspace" module
2023-10-27 17:27:37 +02:00
DreamMaoMao
1f0ce1a5d9
Fixed variable synchronization exception caused by the "hyprland/workspace" module receiving create or delete IPC requests too quickly
2023-10-27 14:17:43 +08:00
Erik Reider
4a4c888d7d
Fixed linter complaining
2023-10-27 00:01:40 +02:00
Erik Reider
ace319b515
Updated default CSS to include the privacy module
2023-10-26 23:44:04 +02:00
Erik Reider
e73ea8d608
Fixed cases where the module would be hidden when it should be visible
2023-10-26 23:37:10 +02:00
Erik Reider
f7224d8459
Initial implementation
2023-10-26 23:22:02 +02:00
Alexis Rouillard
95b0647c91
chore: increase freebsd timeout
2023-10-26 22:17:20 +02:00
Alexis Rouillard
9ef8faf9b1
Merge pull request #2611 from taminob/bugfix/increase-freebsd-ci-timeout
2023-10-26 17:45:48 +02:00
Tamino Bauknecht
7d8c1494d7
cpu_usage: Fix ScopeGuard renaming in bsd-only file
2023-10-26 17:30:48 +02:00
Tamino Bauknecht
33f8a02fb5
ci: Increase freebsd timeout to 2h
...
After switching to a new FreeBSD action, the job seems to take longer
than 30 minutes.
Therefore, an increase in the timeout is necessary.
2023-10-26 17:19:26 +02:00
Alexis Rouillard
1618ee78b7
Merge pull request #2601 from taminob/bugfix/2598/fix-max-duration-sleep-for-bug
...
Fix sleep_for for max duration
2023-10-26 10:07:27 +02:00
Alex
efab1daa7e
chore: switch freebsd action
2023-10-25 18:35:58 +02:00
Alexis Rouillard
9a305b2d73
Merge pull request #2609 from taminob/feature/reduce-freebsd-ci-timeout
...
Reduce freebsd ci timeout
2023-10-25 18:28:10 +02:00
Crom (Thibaut CHARLES)
02c64f3f1e
Moved all waybar info into a single struct
2023-10-24 20:16:50 +02:00
Crom (Thibaut CHARLES)
d86059016e
Send update dispatcher though FFI
2023-10-24 20:16:50 +02:00
Crom (Thibaut CHARLES)
088ca6b963
Added cffi/* module for third-party advanced modules
2023-10-24 20:16:50 +02:00
Crom (Thibaut CHARLES)
6ae354f564
PoC
2023-10-24 20:16:23 +02:00
Tamino Bauknecht
799fce0dc6
ci: Set freebsd to timeout after 30min
...
The job runs very unreliably and often times out after 6h of being stuck
in a boot loop.
This commit reduces the timeout to 30min.
2023-10-24 19:01:40 +02:00
Tamino Bauknecht
68dfd6aa3a
scope_guard/modules: Rename scope_guard to ScopeGuard
...
Using pascal case for the class name keeps it more consistent with the
majority of the other class names.
2023-10-24 17:51:38 +02:00
Tamino Bauknecht
dd1de3efbf
Revert "Revert "Fix potential memory leaks""
...
This reverts commit 2d33c20231 and
reapplies various patches for memory leaks.
The reason for the revert was a bug for a maximum duration interval
which caused sleep_for() to cause unpredictable behavior.
2023-10-24 17:51:38 +02:00
Tamino Bauknecht
521dac8086
sleeper_thread: Make sleep_for more robust
...
In the previous fix for a passed max duration, the assumption was made
that at maximum one second will pass between the duration assignment and
the std::condition_variable::sleep_for() call.
This implementation makes the behavior more predictable by using
sleep_until() instead to emulate the sleep_for() behavior.
2023-10-24 17:51:34 +02:00
Tamino Bauknecht
ad7d4eb07d
sleeper_thread: Allow sleep_for with max duration
...
The standard library has the implicit requirement that for
std::condition_variable::sleep_for() the duration must not cause an
overflow if added to the current time.
This commit will reduce the duration accordingly to fit into the
duration type.
2023-10-24 17:44:35 +02:00
Alexis Rouillard
a459d8a9b3
Merge pull request #2605 from Syndelis/fix/hyprland-persistent-workspaces-disappear-when-empty
2023-10-24 08:31:11 +02:00
Brenno Lemos
4aee5977d6
fix: set workspace as persistent on create_workspace
2023-10-23 21:07:37 -03:00
Alexis Rouillard
f2085fcd92
Merge pull request #2592 from zjeffer/hyprland/workspaces
...
General cleanup in hyprland/workspaces
2023-10-23 08:45:52 +02:00
Alexis Rouillard
c47d75ceda
Merge pull request #2593 from x0rzavi/typo-fixes
...
docs: fix typos and improve language coherence
2023-10-23 08:45:08 +02:00
Alexis Rouillard
9ecdbcc7bc
Merge pull request #2596 from rehanzo/master
2023-10-22 09:46:35 +02:00
Alexis Rouillard
dafe49d28c
Merge pull request #2599 from Alexays/revert-2586-bugfix/fix-potential-memory-leaks
...
Revert "Fix potential memory leaks"
2023-10-22 09:44:57 +02:00
Alexis Rouillard
2d33c20231
Revert "Fix potential memory leaks"
2023-10-22 09:44:46 +02:00
Rehan
5963bf6ace
modules/mpris: change default interval value to 0
2023-10-21 18:14:46 -04:00
zjeffer
dab1493644
cleanup onEvent, dont use try/catch for flow control
2023-10-21 19:33:55 +02:00
zjeffer
acc911737d
update window count inside the on_window_* functions
2023-10-21 18:53:53 +02:00
zjeffer
2d614c68f5
code review
2023-10-21 18:15:22 +02:00
Avishek Sen
d0cab2a367
docs: fix typos and improve language coherence
2023-10-21 21:15:25 +05:30
zjeffer
7576611782
formatting
2023-10-21 17:06:02 +02:00
zjeffer
ed65d9cdbd
General cleanup in hyprland/workspaces
2023-10-21 16:52:23 +02:00
Alexis Rouillard
dbb887b4a9
Merge pull request #2585 from davxy/master
...
Show the network interface with highest priority (aka lower metric)
2023-10-21 14:10:21 +02:00
Alexis Rouillard
06f4028697
Merge pull request #2588 from taminob/bugfix/fix-custom-module-signal-without-interval
...
Custom module: Allow signal without interrupt
2023-10-21 14:09:12 +02:00
Alexis Rouillard
3413b70413
Merge pull request #2586 from taminob/bugfix/fix-potential-memory-leaks
...
Fix potential memory leaks
2023-10-21 14:08:58 +02:00
Alexis Rouillard
6a8b510db8
Merge pull request #2589 from taminob/bugfix/lint-check-hpp-header-files
2023-10-21 12:56:57 +02:00
Tamino Bauknecht
f598e348c4
ci: Update Linter job
2023-10-21 12:50:56 +02:00
Tamino Bauknecht
6dd2cfba34
ci: Lint header files with hpp file ending
2023-10-21 11:57:11 +02:00
Tamino Bauknecht
ae748b2644
modules+util: fix actual (potential) memory leaks
2023-10-21 11:51:33 +02:00
Tamino Bauknecht
a0b63d6b1e
modules: use scope_exit for deletion to make code more robust
2023-10-21 11:51:18 +02:00
Tamino Bauknecht
89e85db790
ALabel: make use of std::chrono::max() instead of magic number
2023-10-21 11:50:38 +02:00
Tamino Bauknecht
a73669be6a
modules/upower: use smart pointer to avoid memory leak
2023-10-21 11:50:28 +02:00
Tamino Bauknecht
8c57756556
util: add scope_guard
...
This custom small implementation avoids adding an extra dependency like
Boost.ScopeExit
2023-10-21 11:50:06 +02:00
Tamino Bauknecht
b8afde043c
sleeper_thread: allow interrupting sleep()
...
This keeps the function consistent with sleep_until() and sleep_for()
which both can be interrupted.
This is relevant to allow an update via a "signal" without an "interval"
in a custom module.
2023-10-20 23:57:54 +02:00
Alexis Rouillard
eefd6e8336
Merge pull request #2578 from Syndelis/fix/hyprland-windows-disappearing
2023-10-20 10:24:56 +02:00
Davide Galassi
6829ed1bb4
Different interfaces have different index
2023-10-20 08:25:28 +02:00
Brenno Lemos
7d5577a2ed
feat: create persistent workspaces after regular ones at init
...
feat: avoid recreating duplicate workspaces
2023-10-19 21:29:38 -03:00
Brenno Lemos
a41225c4e0
Revert "fix: fill persistent workspaces' windows at init"
...
This reverts commit e14a3b8687 .
2023-10-19 21:23:00 -03:00
Brenno Lemos
a0d2d95b41
chore: remove unused function
2023-10-19 21:21:55 -03:00
Brenno Lemos
e14a3b8687
fix: fill persistent workspaces' windows at init
2023-10-19 21:19:08 -03:00
Brenno Lemos
846842be80
feat: emit dispatcher when any window is created during update
2023-10-19 10:45:00 -03:00
Brenno Lemos
e845db84ad
feat: avoid recreating workspaces
2023-10-18 19:11:49 -03:00
Brenno Lemos
193040c41e
feat: attempt to move windows out of the create window payload before taking them from workspaces
2023-10-18 19:11:49 -03:00
Alex
871f9a1269
fix: revert clock
2023-10-18 08:45:56 +02:00
Alex
5319cb6e10
fix: upower hidded on start
2023-10-17 20:12:24 +02:00
Alex
208928ded5
fix: lint
2023-10-17 19:29:06 +02:00
Alexis Rouillard
4d7eb3bd15
Merge pull request #2515 from chrisjshore/clock_fix
...
fix clock to work with fmt 10.x
2023-10-17 19:25:58 +02:00
Alexis Rouillard
6b73e2aa58
Merge pull request #2114 from mmhat/split-cpu-module
...
Split cpu module
2023-10-17 19:25:29 +02:00
Brenno Lemos
6ddd283d0f
fix: special workspaces weren't registering windows because of the special qualifier prefix
2023-10-16 20:48:52 -03:00
Brenno Lemos
e70a67d958
chore: lint
...
chore: swap push_back to emplace_back
2023-10-16 19:14:50 -03:00
Brenno Lemos
67c0c9a66c
fix: delay window creation to await for hyprland to create a workspace
2023-10-16 19:07:00 -03:00
Alexis Rouillard
42741c963e
Merge pull request #2575 from Syndelis/feat/slider
2023-10-16 08:08:37 +02:00
Brenno Lemos
9d316de15a
fix: avoid compiling audio_backend if pulse is not available
2023-10-15 18:12:31 -03:00
Brenno Lemos
ecbcf242d5
feat: allow unmuting by moving the pulseaudio slider
2023-10-15 17:52:12 -03:00
Brenno Lemos
fd3710d869
chore: suppress compiler warning
2023-10-15 17:52:12 -03:00
Brenno Lemos
11d7ca1d73
feat: backlight slider
2023-10-15 17:52:12 -03:00
Brenno Lemos
c3779dd16e
refactor: move backlight backend out of backlight module
2023-10-15 17:52:12 -03:00
Brenno Lemos
442a4b0da0
feat: pulseaudio slider module
2023-10-15 17:52:12 -03:00
Brenno Lemos
c9e129cda2
feat: allow setting volume directly
2023-10-15 17:52:12 -03:00
Brenno Lemos
64d7fae03a
refactor: move pulseaudio handling to separate class
2023-10-15 17:52:12 -03:00
Alexis Rouillard
44d8245605
Merge pull request #2560 from akshettrj/mpris-click-fix
2023-10-15 21:26:33 +02:00
Alexis Rouillard
93daf089b5
Merge pull request #2574 from Syndelis/feat/group-drawers
2023-10-15 21:26:04 +02:00
Alexis Rouillard
7645ae1907
Merge pull request #2563 from Syndelis/feat/hyprland-window-rename-by-title
2023-10-15 21:21:32 +02:00
Alexis Rouillard
3d496c2200
Merge pull request #2554 from mutoroglin/cava-hide-on-silence
2023-10-15 21:19:17 +02:00
Brenno Lemos
ff9b6c9469
docs: fix weird man limitation
2023-10-14 22:14:13 -03:00
Brenno Lemos
05b97e9ec2
fix: add hover handler to every element in the group drawer
2023-10-14 22:13:01 -03:00
Brenno Lemos
8f32d102ae
docs: include group drawer documentation
2023-10-14 18:50:45 -03:00
Brenno Lemos
5a380da3bb
chore: remove redundant else statement
2023-10-14 18:39:42 -03:00
Brenno Lemos
5e44cb6ba2
refactor: move signal handler adding into separate method
...
fix: typo in handleMouseHover method name
2023-10-14 18:30:27 -03:00
Brenno Lemos
fad858782c
feat: improve drawer configuration
2023-10-14 18:24:50 -03:00
Brenno Lemos
5246ab15cb
feat: add drawer bool option to group
2023-10-14 17:17:52 -03:00
Brenno Lemos
bbb7fb0c82
refactor: don't use a group's box directly in bar
2023-10-14 13:23:11 -03:00
Brenno Lemos
c59264d6b4
fix: clang < 16 can't emplace back struct with no constructor
2023-10-12 17:30:32 -03:00
Alexis Rouillard
a3774dc586
Merge pull request #2568 from Syndelis/feat/hyprland-ignore-workspaces
2023-10-12 07:32:56 +02:00
Brenno Lemos
ee652677a6
feat: ignore windows with empty classes or titles (if any rule uses title)
2023-10-11 11:40:49 -03:00
Brenno Lemos
ceeb5bf8bd
docs: include new ignore-workspaces example and documentation
2023-10-11 11:03:18 -03:00
Brenno Lemos
c995bafa7a
feat: add option to ignore workspaces based on regex
2023-10-11 10:59:33 -03:00
Brenno Lemos
f8340d88be
chore: lint unrelated file
...
this file was edited in #2558 but not linted
2023-10-09 15:26:07 -03:00
Brenno Lemos
592d5645a5
docs: include new feature in manual
2023-10-09 14:58:21 -03:00
Brenno Lemos
f9a7ecf3a9
feat: optimize cache usage when window titles aren't involved
2023-10-09 14:49:38 -03:00
Brenno Lemos
387e54498e
docs: document new regex collection class
2023-10-09 14:46:57 -03:00
Brenno Lemos
fad43d4b16
feat: listen to windowtitle IPC event condiationally to update window rules
2023-10-09 14:42:53 -03:00
Brenno Lemos
8d057e6f96
refactor: separate regex rule matching and caching in separate class
2023-10-09 13:53:00 -03:00
Joerg Weislogel
b2e88347b3
added description for configuration option hide-on-silence in man file
2023-10-09 17:05:12 +02:00
Akshett Rai Jindal
1af02e0a67
fix(modules/mpris): fix on-*-click typos
...
In all other places, the norm is to use `on-click-(middle|right)` but in
the mpris module, `on-(middle|right)-click` was being used which caused
clicks to malfunction if set to some custom commands
2023-10-09 11:48:49 +05:30
Alexis Rouillard
30cc88a4c5
Merge pull request #2558 from SWarrener/master
2023-10-08 22:37:46 +02:00
SWarrener
32d326ca4a
Some missing backticks
2023-10-08 16:34:27 +01:00
SWarrener
ae92d7d186
Updating man page with details of options to force specific units in disk size output
2023-10-08 16:26:06 +01:00
SWarrener
c16e791cdc
Adding options to allow disk outputs to always be in a specific unit
2023-10-08 16:24:50 +01:00
Christopher Shore
fbd62e0071
Merge branch 'Alexays:master' into clock_fix
2023-10-07 18:39:56 -04:00
Joerg Weislogel
1eb0777799
add function to cava module to hide on silence
2023-10-07 12:50:24 +02:00
Alexis Rouillard
58e506a675
Merge pull request #2529 from Syndelis/feat/hyprland-window-workspaces
...
Feature: Hyprland dynamic window names on workspaces
2023-10-02 19:17:42 +02:00
Brenno Lemos
1b98a04c93
chore: lint unrelated files so the CI passes
2023-10-02 12:33:28 -03:00
Alexis Rouillard
4c0347d9f2
Merge pull request #2540 from Syndelis/fix/hyprland-special-workspaces
2023-09-25 22:33:36 +02:00
Brenno Lemos
9a3238c20b
chore: avoid the creation and deletion of doubled-special workspaces
...
see hyprwm/Hyprland#3424 for more info
Co-authored-by: Gabriel Fox <Inbox@GabrielFox.Dev >
2023-09-25 17:13:26 -03:00
Brenno Lemos
6e48b236a1
fix: workspace special wasn't removed
...
fixes #2505
Co-authored-by: Gabriel Fox <Inbox@GabrielFox.Dev >
2023-09-25 17:12:51 -03:00
Alexis Rouillard
16f6d9dfa0
Merge pull request #2534 from woojiq/fix-hyprland-default-icon
2023-09-24 09:25:37 +02:00
woojiq
d37954322a
fix(hyprland): use workspace name as default icon
...
Wlr and Sway modules use the workspace `name` as the default icon if no icon is provided. This adds the same behavior for the `hyprland/workspace` module.
Closes https://github.com/Alexays/Waybar/issues/2533
2023-09-23 21:55:18 +03:00
Brenno Lemos
258ab8b147
refactor: take window representation directly from old workspace on movewindow event
2023-09-22 21:12:42 -03:00
Brenno Lemos
6663ca3d75
chore: document new properties
2023-09-22 20:41:38 -03:00
Brenno Lemos
adbc9d95de
feat: optional default icon for 0-match classes
...
Co-authored-by: Gabriel Fox <Inbox@GabrielFox.Dev >
2023-09-22 19:16:59 -03:00
Brenno Lemos
fbe544984c
fix: ipc vs json window addr format mismatch
...
feat: ignore empty windows
Co-authored-by: Gabriel Fox <Inbox@GabrielFox.Dev >
2023-09-22 19:16:56 -03:00
Brenno Lemos
b9d5912a4f
feat: rewrite window classes
...
feat: cache window class rewrite resolution
Co-authored-by: Gabriel Fox <Inbox@GabrielFox.Dev >
2023-09-22 19:16:53 -03:00
Brenno Lemos
3e2761e81f
feat: dynamically assign windows to workspaces
...
Co-authored-by: Gabriel Fox <Inbox@GabrielFox.Dev >
2023-09-22 19:12:50 -03:00
Alexis Rouillard
6997b34a81
Merge pull request #2517 from an-prata/master
...
Lighter Weight Signal-Based Custom Modules
2023-09-21 23:48:22 +02:00
Alexis Rouillard
5960e8f1ee
Merge pull request #2518 from idm1try/fix-bl-asahi
...
fix(backlight): wrong percentage numbers for device apple-panel-bl
2023-09-21 23:47:23 +02:00
idm1try
81ffeebfb1
fix: style
...
Co-authored-by: Alexis Rouillard <alexisr245@gmail.com >
2023-09-21 09:03:13 +05:00
Evan Overman
f14fe96e19
add info to interval and signal in manpage for custom modules
2023-09-19 14:52:48 -07:00
idm1try
954bea36f4
chore: remove result dir by nix
2023-09-19 18:52:00 +05:00
idm1try
388c024298
fix(backlight): wrong percentage numbers for device apple-panel-bl
2023-09-19 18:50:39 +05:00
Alexis Rouillard
9b8adc1951
Merge pull request #2494 from KanuX-14/battery_fix
...
Fix battery not showing for some devices
2023-09-19 13:33:35 +02:00
Evan Overman
bf371f70d1
add waitingWorker() to Custom
2023-09-18 14:56:14 -07:00
Evan Overman
7c28ffc856
add indefinite sleep() function to SleeperThread
2023-09-18 14:55:50 -07:00
Christopher Shore
14820e5d18
fix clock to work with fmt 10.x
2023-09-17 16:32:19 -04:00
Mann mit Hut
80a34eec81
Fixed formatting again
2023-09-13 23:25:39 +02:00
Mann mit Hut
d5203e5b37
Fixed cpu module: Provide stub implementation for parseCpuFrequencies
2023-09-13 23:12:35 +02:00
Mann mit Hut
91b6629103
Fixed format errors
2023-09-13 21:59:42 +02:00
Mann mit Hut
93d66a9258
Moved cpu/common.cpp to cpu.cpp
2023-09-13 21:56:37 +02:00
Mann mit Hut
8d7341da6e
cpu module: Reuse getLoad of load module
2023-09-13 21:56:37 +02:00
Mann mit Hut
d1602e383c
cpu module: Reuse getCpuUsage of cpu_usage module
2023-09-13 21:56:36 +02:00
Mann mit Hut
c45f6681b3
cpu module: Reuse getCpuFrequency of cpu_frequency module
2023-09-13 21:56:35 +02:00
Mann mit Hut
dce6a98f38
Added changes made to the cpu module
2023-09-13 21:56:34 +02:00
Mann mit Hut
982ffde002
Use labels instead of buttons
2023-09-13 21:56:33 +02:00
Mann mit Hut
888adb57ec
Introduce cpu_usage module
2023-09-13 21:56:32 +02:00
Mann mit Hut
c36fe3a004
Introduce cpu_frequency module
2023-09-13 21:56:31 +02:00
Mann mit Hut
729564cc27
Introduced separate load module
...
The module provides the three system load averages. This is an
improvement compared what you can do with the cpu module: cpu
only provides the one minute sample and the state of the cpu module is
derived from the cpu usage which messes up the formating of the load
average. Also, at least on modern Linux systems, the load of a system
takes much more than the cpu utilization into account and it should
therefore live in a separate module.
2023-09-13 21:56:30 +02:00
Alexis Rouillard
4d32991bee
Merge pull request #2507 from hariseldon78/patch-1
...
Update workspaces.cpp
2023-09-13 18:21:22 +02:00
Roberto Previdi
69736d68aa
Update workspaces.cpp
...
Fix unchecked string to int conversion of workspace name (which can be a string)
Closes #2501
2023-09-13 18:20:13 +02:00
KanuX-14
28a2d15fef
Update 'bat-compatibility' option to manual
2023-09-12 13:39:09 -03:00
Alexis Rouillard
a90e275d5e
Merge pull request #2470 from 4e554c4c/darkmode
...
search for dark or light mode stylesheet
2023-09-11 09:36:05 +02:00
Alexis Rouillard
fc67558717
Merge branch 'master' into darkmode
2023-09-11 09:25:45 +02:00
Alexis Rouillard
196b400abf
Merge pull request #2468 from khaneliman/persistent-rename
...
deprecate persistent_workspaces in favor of persistent-workspaces
2023-09-11 09:22:07 +02:00
Alexis Rouillard
05a2af2d7c
Merge pull request #2486 from khaneliman/workspace-sorting
...
feat: hyprland workspaces add sort-by
2023-09-11 09:21:35 +02:00
KanuX-14
1ff4464b2f
Use adapter status if battery status is inexistent
2023-09-10 15:16:43 -03:00
KanuX-14
60611e9c2b
Fix battery not showing for some devices
...
Adds 'bat-compatibility' boolean checking from configuration file.
2023-09-10 14:41:40 -03:00
Austin Horstman
79cf33b9f1
refactor: enumparser create implementation file
2023-09-09 17:59:40 -05:00
Austin Horstman
b8630968b2
refactor: move capitalize string helper
2023-09-09 13:23:17 -05:00
Austin Horstman
2fee12d930
fix: enumparser capitalize everything to avoid issues
2023-09-09 12:14:52 -05:00
Austin Horstman
3ae2fe3272
refactor: PR review cleanup
2023-09-09 12:08:30 -05:00
Austin Horstman
2b8c92e8fd
refactor: enum utility allow overriding
2023-09-09 11:18:12 -05:00
Austin Horstman
8ce64ea784
refactor: make parsing sort-by more lenient
2023-09-09 10:04:49 -05:00
Austin Horstman
8ea2626de8
refactor: sort-by enum hyprland
2023-09-09 10:04:48 -05:00
Austin Horstman
65ba449460
chore: update man page index
2023-09-08 23:17:21 -05:00
Austin Horstman
cbc12e5443
feat: hyprland workspaces add sort-by
2023-09-08 22:49:15 -05:00
Austin Horstman
587bd0cd62
refactor: cleanup hyprland workspaces constructor
2023-09-08 22:24:05 -05:00
Alexis Rouillard
309edd0585
Merge pull request #2485 from khaneliman/active-rename
2023-09-08 23:11:58 +02:00
Austin Horstman
2837b72064
fix: rename workspace active fix
2023-09-08 14:11:02 -05:00
Alexis Rouillard
38ef38b72f
Merge pull request #2477 from zjeffer/fix/urgent-icon
2023-09-07 20:33:22 +02:00
zjeffer
6c3565c520
Add urgent icon
...
Fixes #2476
2023-09-07 19:33:56 +02:00
Calvin Lee
9bb2c01a44
clean up client.cpp
2023-09-07 13:43:59 +00:00
Calvin Lee
09873f0ed9
search for dark or light mode stylesheet
...
summary:
-------
This commit adds xdg-desktop-portal support to waybar. If a portal
supporting `org.freedesktop.portal.Settings` exists, then it will be
queried for the current colorscheme. This colorscheme will then be used
to prefer a `style-light.css` or `style-dark.css` over the basic
`style.css`.
technical details:
-----------------
Appearance is provided by several libraries, such as libhandy (mobile)
and libadwaita. However, waybar links to neither of these libraries. As
the amount of code required to communicate with xdg-desktop portal as a
client is rather minimal, I believe doing so is better than linking to
an additional library.
The Gio library for communicating with dbus is rather messy, Instead of
the `Portal` class containing a `Gio::Dbus::Proxy`, it extends it which
simplifies signal handling.
`Portal` then exposes its own signal, which can be listened to by waybar
to update CSS.
For a reference implementation, please see another one of my projects:
https://github.com/4e554c4c/darkman.nvim/blob/main/portal.go
test plan:
---------
If no desktop portal which provides `Settings` exists, then waybar
continues with the log line
```
[2023-09-06 14:14:37.754] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
```
Furthermore, if `style-light.css` or `style-dark.css` do not exist, then
`style.css` will still be searched for.
Waybar has been tested with both light and dark startup. E.g. if the
appearance is dark on startup the log lines
```
[2023-09-06 14:27:45.379] [info] Discovered appearance 'dark'
[2023-09-06 14:27:45.379] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style-dark.css
[2023-09-06 14:27:45.379] [debug] Found config file: $XDG_CONFIG_HOME/waybar/style-dark.css
[2023-09-06 14:27:45.379] [info] Using CSS file /home/pounce/.config/waybar/style-dark.css
```
will be observed.
If the color then changes to light during the operation of waybar, it
will change css files:
```
[2023-09-06 14:28:17.173] [info] Received new appearance 'dark'
[2023-09-06 14:28:17.173] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style-light.css
[2023-09-06 14:28:17.173] [debug] Found config file: $XDG_CONFIG_HOME/waybar/style-light.css
[2023-09-06 14:28:17.173] [info] Using CSS file /home/pounce/.config/waybar/style-light.css
```
Finally, tested resetting waybar and toggling style (works, and style is
only changed once).
fixes : Alexays/Waybar#1973
2023-09-06 15:19:56 +00:00
khaneliman
c9e1899594
refactor: deprecate instead of remove persistent_workspaces
2023-09-05 16:02:45 -05:00
khaneliman
b405dc436c
refactor!: wlr persistent workspaces config rename
2023-09-05 16:02:22 -05:00
khaneliman
4a6c1269fb
refactor!: sway persistent workspaces config name rename
2023-09-05 16:02:21 -05:00
khaneliman
44ac6b8044
refactor!: hyprland persistent workspaces config option name standardization
2023-09-05 16:02:19 -05:00
Alexis Rouillard
80de22a159
Merge pull request #2408 from zjeffer/hyprland/workspaces_active-only
...
Implement 'active_only' option and 'visible' class in hyprland/workspaces
2023-09-05 22:59:49 +02:00
zjeffer
04b39ea64e
hyprland/workspaces: implement 'active_only' option and visible class
2023-09-05 18:22:54 +02:00
Alexis Rouillard
116aa5cdbd
Merge pull request #2466 from maximbaz/hyprland-support-workspace-rename
...
hyprland/workspaces: react on renameworkspace event
2023-09-05 17:23:06 +02:00
Maxim Baz
9c49f46b01
hyprland/workspaces: react on renameworkspace event
2023-09-05 17:13:25 +02:00
Alexis Rouillard
f7ff005dd5
Merge pull request #2460 from xercesblue/set_urgent_segfault
...
modules/hyprland: Fix segfault when attempting to set_urgent on a missing workspace
2023-09-05 08:42:39 +02:00
xercesblue
d40ccd0da8
modules/hyprland: Fix segfault when attempting to set_urgent on a missing workspace
2023-09-04 16:57:00 -07:00
Alexis Rouillard
6f66af9ab9
Merge pull request #2134 from bruceblore/battery-weighted-percentage
...
Display battery percentage as weighted average of battery levels
2023-09-04 22:01:40 +02:00
Alexis Rouillard
2d27e484c7
Merge pull request #2417 from Cherser-s/sni-click-coordinate-fix
...
sni: fix passing relative coordinates to dbus methods
2023-09-04 22:01:04 +02:00
Alexis Rouillard
a77ccf4bd1
Merge pull request #2457 from khaneliman/hyprland-cleanup
...
Hyprland linting cleanup
2023-09-04 22:00:44 +02:00
Austin Horstman
4cb8efbecc
chore: cpplint fixes hyprland classes
2023-09-03 00:18:31 -05:00
Austin Horstman
8fc4187713
refactor: replace strcpy with snprintf
2023-09-02 23:56:06 -05:00
Austin Horstman
ce076927f3
chore: cpplint fixes hyprland headers
2023-09-02 23:56:04 -05:00
Alexis Rouillard
8eb614f69e
Merge pull request #2438 from khaneliman/hyprland-workspace-array
...
hyprland persistent workspace support new config declaration
2023-09-01 09:10:23 +02:00
Alexis Rouillard
347dd1c799
Merge pull request #2431 from zjeffer/fix/persistent-workspace-icon
...
hyprland/workspaces: Add "empty" icon and class
2023-09-01 09:09:32 +02:00
Alexis Rouillard
82b7e4ea01
Merge pull request #2414 from KosmX/add_release_v2
...
Release button event second attempt
2023-09-01 09:08:23 +02:00
Alexis Rouillard
d7d4a6c632
Merge pull request #2442 from PucklaJ/hyprland_persistent
...
Show workspaces on all outputs if persistent_workspaces value is empty
2023-09-01 09:06:41 +02:00
PucklaJ
a18b41911d
hyprland/workspaces: Show workspace on all outputs if an empty array is given
...
This behaviour is consistent with sway/workspaces and wlr/workspaces
2023-08-30 13:35:19 +02:00
Austin Horstman
52309615c1
hyprland new persistent_workspace configuration style
2023-08-29 00:11:25 -05:00
Cherser-s
65dfabc430
sni: fix passing relative coordinates to dbus methods
...
Doesn't correctly handle the case with both margin and width/height being set at the same time.
2023-08-25 20:37:16 +03:00
Cherser-s
936937ec78
store margins and global window offset in the bar object
2023-08-25 20:37:14 +03:00
zjeffer
e163dd8216
hyprland/workspaces: update manpage
2023-08-24 22:51:06 +02:00
zjeffer
06a9f98878
hyprland/workspaces: Add "empty" icon and class
2023-08-24 21:19:20 +02:00
Alexis Rouillard
b665843085
Merge pull request #2429 from khaneliman/hyprland-urgent
...
Hyprland urgent class support
2023-08-24 17:00:40 +02:00
Austin Horstman
ee4fbc58f7
hyprland add urgent ipc support
2023-08-23 12:52:29 -05:00
Austin Horstman
3081b0c576
flake lock update
2023-08-23 12:14:35 -05:00
Alexis Rouillard
b7a527b122
Merge pull request #2424 from asas1asas200/feat-keyboard-bindingkey
2023-08-20 09:40:36 +02:00
asas1asas200
54a6668846
feat(keyboard-state): add binding-keys options
2023-08-20 08:33:34 +08:00
Alexis Rouillard
ed0f7453c9
Merge pull request #2420 from Alexays/chore-subprojects
...
chore: update subprojects
2023-08-18 10:39:15 +02:00
Alex
19fe929d1f
chore: update subprojects
2023-08-18 09:48:03 +02:00
KosmX
392e863e6d
Apply formatting
2023-08-16 17:33:36 +02:00
KosmX
2ff347f9a8
Add handleRelease method to release events
...
This commit shouldn't change the handleToggle behaviour,
it shouldn't break anything.
2023-08-16 17:14:49 +02:00
KosmX
1d8331d0c5
Add release events to event map
2023-08-16 17:12:32 +02:00
KosmX
718db71638
Refactor enable click condition
...
This shouldn't change behaviour.
2023-08-16 17:11:44 +02:00
Alexis Rouillard
0a28b50a8c
Merge pull request #2413 from PucklaJ/bluetooth-no-controller
...
Add format-no-controller to bluetooth module and fix it still being visible if the format string is empty
2023-08-16 17:08:48 +02:00
PucklaJ
70bc318a01
Fix bluetooth module still being visible if format is empty
2023-08-16 16:30:59 +02:00
PucklaJ
22817089db
Add no-controller format to bluetooth module
2023-08-16 15:34:06 +02:00
Alexis Rouillard
aecd80702e
Merge pull request #2412 from jpalus/simpleclock-fmt-compile-fix
...
Fix simpleclock module compilation with recent fmt
2023-08-16 14:35:39 +02:00
Jan Palus
abd7a0cf25
Fix simpleclock module compilation with recent fmt
...
both `format_` and `tooltip_format` are dynamically provided formats so
wrap them in `fmt::runtime()`
2023-08-16 14:32:48 +02:00
Alex
e30fba0b8f
chore: 0.9.22
2023-08-16 13:34:05 +02:00
Alex
b5ea14c896
revert: release event
2023-08-16 13:31:24 +02:00
Alexis Rouillard
5b33a5917c
Merge pull request #2404 from eltociear/master-1
...
fix: typo in taskbar.cpp
2023-08-16 08:55:33 +02:00
Alexis Rouillard
66b71cc857
Merge pull request #2409 from jpalus/fmt-cast-ustring-to-string
2023-08-15 22:35:46 +02:00
Jan Palus
c8237437d2
Explicitly cast ustring to string when passing to fmt
...
don't rely on implicit conversion which is no longer present in fmt
10.1.0
Fixes #2403
2023-08-15 20:57:07 +02:00
Ikko Eltociear Ashimine
57544fe694
fix: typo in taskbar.cpp
...
ocurred -> occurred
2023-08-15 00:45:09 +09:00
Alex
e90c66a102
chore: 0.9.21
2023-08-14 15:33:52 +02:00
Alex
db1d859881
fix: lint
2023-08-14 14:20:08 +02:00
Alexis Rouillard
cc961d40b3
Merge pull request #2402 from frankebel/master
...
docs: fix Arch repository name
2023-08-14 13:28:54 +02:00
Frank Ebel
29cebaa0a7
docs: fix Arch repository name
2023-08-14 12:42:33 +02:00
Alexis Rouillard
2c7bbe9852
Merge pull request #2393 from zjeffer/hyprland/fixes
...
Hyprland/workspaces: use named icons instead of searching by id
2023-08-14 11:46:55 +02:00
Alexis Rouillard
eb74623b7d
Merge pull request #2399 from KosmX/click_release_action
...
Button release action
2023-08-14 11:46:27 +02:00
Alexis Rouillard
b9260575e5
Merge pull request #2401 from zjeffer/master
...
Updated hyprland-workspaces manpage
2023-08-14 11:23:35 +02:00
zjeffer
8cf676176d
Updated hyprland-workspaces manpage
2023-08-14 11:17:49 +02:00
KosmX
3db5673e70
register key hander
2023-08-13 18:48:23 +02:00
KosmX
46f5034030
Add button release events to eventMap
2023-08-13 18:20:43 +02:00
zjeffer
6f7e7c5199
formatting
2023-08-10 20:37:42 +02:00
zjeffer
2ba11e8401
Hyprland/workspaces: use named icons instead of searching by id
2023-08-10 20:09:30 +02:00
Alexis Rouillard
b084bf721e
Merge pull request #2377 from marshallmoats/master
...
Change default workspace format
2023-08-09 08:16:52 +02:00
Marshall Moats
e40860c3e9
keep id
2023-08-08 17:17:58 -05:00
Marshall Moats
2bcd0eb09f
Change default workspace format
2023-08-02 16:02:50 -05:00
Alexis Rouillard
94c34a29c4
Merge pull request #2370 from spikespaz/nix-fix-overlay
...
flake: fix infrec in package overlay
2023-08-02 08:41:39 +02:00
Alexis Rouillard
7fb37c0069
Merge pull request #2373 from marshallmoats/master
2023-08-02 08:35:10 +02:00
Marshall Moats
ce2ede70f2
Fix logical errors, formatting error
2023-08-01 15:55:37 -05:00
Jacob Birkett
b91adc9f29
flake: fix infrec in package overlay
2023-07-31 09:37:33 -07:00
Alexis Rouillard
86b3e456e1
Merge pull request #2341 from zjeffer/hyprland/workspaces
...
Persistent workspaces in hyprland/workspaces
2023-07-31 08:34:30 +02:00
Alexis Rouillard
1eb4684b60
Merge pull request #2367 from diederikdehaas/more-manpage-fixes
...
man: Fix several whitespace formatting issues
2023-07-31 08:33:09 +02:00
Diederik de Haas
a3904ff039
man: Fix several whitespace formatting issues
...
Fix the following whitespace formatting issues:
- Indentation in scdoc source files should be done with tabs.
- Lines where there (clearly) should be a line break, need to have '++'
at the end, but several were missing them.
- The scdoc manual (clearly) states that lines should be hard wrapped
at 80 columns, but when line(s) are indented, that causes rendering
issues. So lines where a line break was not clearly intended or
clearly not intended, have been put onto 1 line to circumvent the
rendering issue.
Link: https://lists.sr.ht/~sircmpwn/public-inbox/%3C8251560.T7Z3S40VBb%40bagend%3E
2023-07-30 17:37:30 +02:00
Alexis Rouillard
88828265c0
Merge pull request #2366 from zjeffer/fix/build-warnings
...
Fixed sway IPC compile warnings
2023-07-30 11:52:11 +02:00
zjeffer
600653538b
Persistent workspaces in hyprland/workspaces
2023-07-30 11:47:37 +02:00
zjeffer
28635c1f6d
Fixed sway IPC compile warnings
2023-07-30 11:43:34 +02:00
Alexis Rouillard
b09f6cc731
Merge pull request #2365 from diederikdehaas/manpage-fixes
...
Manpage fixes
2023-07-30 10:07:03 +02:00
Diederik de Haas
c8910901e5
man: Make NAME-ing consistent
...
Tools like `apropos` and `whatis` use the NAME section to generate their
database, so make sure every manpage has it.
Also make sure they all have a brief description and make it consistent
across the manpages.
2023-07-30 10:00:02 +02:00
Diederik de Haas
6b7fd36863
man/waybar-clock: Fix typo and formatting
...
typo: Adressed -> Addressed
formatting: Add missing spaces
2023-07-30 09:56:19 +02:00
Alexis Rouillard
20b091dcd8
Merge pull request #2360 from LukashonakV/ISSUE_2356
2023-07-30 01:12:40 +02:00
Viktar Lukashonak
106535e3eb
tooltip-format spaces breaks pango format
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-07-29 23:46:35 +03:00
Alexis Rouillard
d3520536c4
Merge pull request #2352 from Mr-Pine/hyprland-window-fix
2023-07-29 11:02:39 +02:00
MisterPine
05e5a7e5fd
Document icon for hyprland/window
2023-07-29 00:35:01 +02:00
MisterPine
2b07dea3a6
Fix broken start behavior for hyprland/window
2023-07-29 00:30:33 +02:00
Alexis Rouillard
629686f760
Merge pull request #2347 from MightyPlaza/typo
...
hyprland/workspaces fix typo
2023-07-28 09:58:09 +02:00
MightyPlaza
c71c0fca6e
fix typo
2023-07-25 14:48:20 +00:00
Alexis Rouillard
9207fff627
Merge pull request #2345 from LukashonakV/ISSUE_2344
...
Clock. Narrow seconds precision
2023-07-24 23:19:19 +02:00
Viktar Lukashonak
dae7794bdf
Clock. Narrow seconds precision
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-07-25 00:08:13 +03:00
Alexis Rouillard
c087d8c318
Merge pull request #2316 from MightyPlaza/workspaces
...
hyprland/workspaces improvements
2023-07-24 13:40:23 +02:00
Alexis Rouillard
6dfa74bd5d
Merge pull request #2322 from zjeffer/master
...
Use C++20 by default
2023-07-24 09:27:18 +02:00
Alexis Rouillard
e9b29613b2
Merge pull request #2340 from LukashonakV/ISSUE_2331
...
time conversion between time zones
2023-07-24 09:26:02 +02:00
Viktar Lukashonak
d01ce7d812
Rewview changes.
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-07-24 10:16:38 +03:00
Alexis Rouillard
8ce1d15885
Merge pull request #2323 from zjeffer/mediaplayer-improvements
...
Mediaplayer improvements
2023-07-24 08:56:46 +02:00
Viktar Lukashonak
4d9e0ea802
time conversion between time zones
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-07-24 01:21:33 +03:00
Tuur Vanhoutte
2f04a49129
Merge branch 'Alexays:master' into master
2023-07-23 14:30:14 +02:00
zjeffer
6dc33fe88f
Mediaplayer improvements
2023-07-23 13:55:25 +02:00
Alexis Rouillard
effad1a5c3
Merge pull request #2336 from Anakael/pr/anakael/add-high-priority-workspaces
...
[sway/workspaces] feat: add high-priority-named optiion
2023-07-21 17:33:10 +02:00
dmitry
05efdb74f0
format
2023-07-20 22:57:33 +03:00
dmitry
d3bcff31e5
add high-priority-named optiion
2023-07-20 22:56:15 +03:00
Alexis Rouillard
430f0e5d65
Merge pull request #2333 from LukashonakV/cava_man
...
cava man page
2023-07-19 21:47:33 +02:00
Viktar Lukashonak
4dff1d4b2b
cava man page
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-07-19 20:44:52 +03:00
Alexis Rouillard
56df72f61c
Merge pull request #2328 from LukashonakV/ISSUE_2281
...
cava bump
2023-07-18 16:59:38 +02:00
Viktar Lukashonak
8fdd456fa9
cava bump
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-07-18 17:51:23 +03:00
Alex
3e1176e896
fix: lint
2023-07-18 08:35:46 +02:00
Alexis Rouillard
52a8b1d911
Merge pull request #2234 from kris7t/offscreen-app-id
...
sway/window: app_id on unfocused workspaces
2023-07-18 08:32:32 +02:00
Alex
3ecd4030e3
chore: v0.9.20
2023-07-18 08:29:32 +02:00
Alex
841a004acd
fix: lint
2023-07-18 08:28:19 +02:00
Alexis Rouillard
839975c348
Merge pull request #2318 from calvinchd/hyprland-window-remove-empty-css
...
hyprland/window remove duplicate empty css
2023-07-18 08:22:27 +02:00
Alexis Rouillard
185aa104b0
Merge pull request #2326 from czM1K3/master
...
hyprland/language: Differentiating keyboard layout variants
2023-07-18 08:21:52 +02:00
MightyPlaza
24d56023fd
last fixes
2023-07-17 22:38:58 +00:00
MightyPlaza
d3e7a8c797
Merge branch 'Alexays:master' into workspaces
2023-07-17 22:38:13 +00:00
czM1K3
b2279c9565
Differencing keyboard layout variant for hyprland/language
2023-07-17 22:20:50 +02:00
MightyPlaza
52906407af
Merge pull request #3 from zjeffer/pr-fixes
...
Some more small improvements
2023-07-17 14:27:38 +00:00
zjeffer
2721e19ee6
small improvements
2023-07-17 16:22:59 +02:00
Alexis Rouillard
388912d4a7
Merge pull request #2324 from xytovl/fix-crash-on-resume
2023-07-17 08:26:53 +02:00
Patrick Nicolas
f62b3d0e9d
Ensure signal is disconnected in destructor
2023-07-16 23:29:28 +02:00
MightyPlaza
2d0fdaeec6
special fix
2023-07-16 18:22:14 +00:00
MightyPlaza
b9348180f5
Merge branch 'Alexays:master' into workspaces
2023-07-16 18:21:36 +00:00
Alexis Rouillard
1e2b9cb5ed
Merge pull request #2306 from stefonarch/patch-1
...
Fix wrong name for {name}
2023-07-16 18:21:00 +02:00
zjeffer
62702a4878
fixed lint
2023-07-16 16:00:26 +02:00
zjeffer
c85738574c
Use C++20 by default
2023-07-16 16:00:26 +02:00
MightyPlaza
96a8e5df83
Merge branch 'Alexays:master' into workspaces
2023-07-16 13:19:24 +00:00
Alexis Rouillard
85b4ff4f81
Merge pull request #2321 from calvinchd/hyprland-runtime-err
2023-07-16 15:10:03 +02:00
Calvin Chu
0f6eff1f20
hyprland: fix json parser runtime err from socket read ending early
2023-07-16 22:18:27 +10:00
Alexis Rouillard
7a5e702334
Merge pull request #2317 from m4rch3n1ng/backlight-percent
2023-07-16 09:34:47 +02:00
Calvin Chu
8687ed2068
Update man for hyprland/window to replace #window.empty with window#waybar.empty #window
2023-07-16 16:41:50 +10:00
Calvin Chu
2be0e966e1
hyprland/window: remove .empty css class for #window
2023-07-16 16:40:54 +10:00
may
facb53e81f
backlight: do not convert percent to string in fmt
2023-07-16 04:14:43 +02:00
MightyPlaza
2bfc0e1da6
moves createWorkspace to update()
2023-07-16 01:49:46 +00:00
MightyPlaza
6d24b22b21
moves createWorkspace to update()
2023-07-16 01:43:54 +00:00
MightyPlaza
5f0fa71f32
moves createWorkspace to update()
2023-07-16 01:43:25 +00:00
MightyPlaza
4f81e55e41
workspaces.hpp
2023-07-16 01:20:30 +00:00
MightyPlaza
ca0122c3cb
workspaces.cpp
2023-07-16 01:18:41 +00:00
MightyPlaza
7200b16520
documentation
2023-07-16 01:02:39 +00:00
MightyPlaza
e488daae16
Merge pull request #2 from zjeffer/pr-fixes
...
use IPC for click events, clang-tidy fixes
2023-07-15 22:18:24 +00:00
zjeffer
f3df15650a
use IPC for click events, clang-tidy fixes
2023-07-15 23:48:12 +02:00
MightyPlaza
f8a9a970b2
removes "sort-by-number"
2023-07-15 18:43:46 +00:00
MightyPlaza
75e21c4853
Update waybar-hyprland-workspaces.5.scd
2023-07-15 18:36:55 +00:00
MightyPlaza
495b63d7dc
workspaces.hpp
2023-07-15 17:44:57 +00:00
MightyPlaza
52983c7188
workspaces.cpp
2023-07-15 17:43:22 +00:00
Alexis Rouillard
2211a79840
Merge pull request #2308 from gardenappl/hidden-fix
...
hyprland/window: rename .hidden to .swallowing (and fix grouped windows)
2023-07-12 18:13:50 +02:00
gardenapple
daca57129f
hyprland/window: rename .hidden to .swallowing (and fix grouped windows)
2023-07-12 19:01:45 +03:00
Alexis Rouillard
19c7c0763f
Merge pull request #2307 from gardenappl/hidden-fix
...
hyprland/window: Fix overlap with .hidden class from default style
2023-07-12 17:27:37 +02:00
gardenapple
14c6550593
hyprland/window: Fix overlap with .hidden class from default style
2023-07-12 17:56:12 +03:00
Standreas
7aae93e7ed
Fix wrong name for {name}
2023-07-12 16:31:58 +02:00
Alexis Rouillard
dffba78401
Merge pull request #2303 from Mr-Pine/hyprland-window-icon
2023-07-11 08:08:20 +02:00
MisterPine
a8a1a4985f
Add removed secondary identifier
...
(class for xwayland under sway)
2023-07-10 23:48:18 +02:00
MisterPine
31683d9e2a
Implemented AAppIconLabel for sway/window
2023-07-10 22:55:46 +02:00
MisterPine
00e143d47e
Introducce AAppIconLabel class
...
Implemented for hyprland
2023-07-10 22:50:58 +02:00
MisterPine
6e9ba3fc01
Fix spacing if icon is false
2023-07-10 22:26:02 +02:00
MisterPine
a373f6b654
Icon working
2023-07-10 22:02:03 +02:00
Alexis Rouillard
91bd28d410
Merge pull request #2294 from Mr-Pine/hyprland-window-data
...
`hyprland/window` expose more data
2023-07-09 10:18:26 +02:00
Alexis Rouillard
acde076913
Merge pull request #2288 from LukashonakV/arch_cava
...
Arch CI cava
2023-07-09 10:17:55 +02:00
Alexis Rouillard
f5655526d0
Merge pull request #2296 from m-bdf/clock-tz-changes
2023-07-09 04:22:15 +02:00
Maëlys Bras de fer
56f956ff90
clock: handle timezone changes (again)
2023-07-09 01:44:39 +02:00
MisterPine
f97c1c7136
remove getWindowData
2023-07-08 23:22:29 +02:00
MisterPine
9ee883ee1b
No dashes is format arg name
2023-07-08 23:11:11 +02:00
MisterPine
1887512ba1
Update scd
2023-07-08 22:40:16 +02:00
MisterPine
2ae13c4092
consitent naming
2023-07-08 22:40:16 +02:00
MisterPine
c5f1771375
Use already existing queryActiveWorkspace()
2023-07-08 22:40:16 +02:00
MisterPine
c4bace504c
Separate query and struct
2023-07-08 22:40:16 +02:00
Alexis Rouillard
3bfeed31bc
Merge pull request #2293 from sigboe/master
2023-07-08 21:47:04 +02:00
sigboe
d774de6c46
fix, default to true, sway/workspaces: warp-on-scroll
2023-07-08 21:32:19 +02:00
ViktarL
b20041d85d
cava dependencies
2023-07-08 08:41:37 +00:00
Alexis Rouillard
e4900db9a2
Merge pull request #2286 from calvinchd/hyprland-window-noinfo
2023-07-06 08:24:11 +02:00
Calvin Chu
e2bfa5e019
hyprland/window: fix no info with separate-outputs=true
2023-07-06 11:01:24 +10:00
Alexis Rouillard
423d8495e4
Merge pull request #2284 from jbeich/dbus
2023-07-05 20:17:51 +02:00
Jan Beich
1fb2b8efd5
fix(util): don't abort modules from SleeperThread after 3c9cbc99d7
...
[warning] module sway/workspaces: Disabling module "sway/workspaces", Unable to connect to the SYSTEM Bus!...
[warning] module sway/mode: Disabling module "sway/mode", Unable to connect to the SYSTEM Bus!...
[warning] module sway/scratchpad: Disabling module "sway/scratchpad", Unable to connect to the SYSTEM Bus!...
[warning] module custom/media: Disabling module "custom/media", Unable to connect to the SYSTEM Bus!...
[warning] module sway/window: Disabling module "sway/window", Unable to connect to the SYSTEM Bus!...
[warning] module cpu: Disabling module "cpu", Unable to connect to the SYSTEM Bus!...
[warning] module memory: Disabling module "memory", Unable to connect to the SYSTEM Bus!...
[warning] module temperature: Disabling module "temperature", Unable to connect to the SYSTEM Bus!...
[warning] module sway/language: Disabling module "sway/language", Unable to connect to the SYSTEM Bus!...
[warning] module battery: Disabling module "battery", Unable to connect to the SYSTEM Bus!...
[warning] module battery#bat2: Disabling module "battery#bat2", Unable to connect to the SYSTEM Bus!...
2023-07-05 17:47:24 +00:00
Alexis Rouillard
3299d4a25c
Merge pull request #2270 from gardenappl/hypr-backend
...
hyprland/window: Add .hidden CSS class, account for hidden & fullscreen windows
2023-07-05 08:14:49 +02:00
gardenapple
e125bbeb4d
hyprland/window: properly check visibility for .floating class
2023-07-05 03:43:03 +03:00
gardenapple
55c59253d6
Update man pages
2023-07-05 03:15:59 +03:00
Alexis Rouillard
e7deab92c7
Merge pull request #2282 from zjeffer/fix/build-warnings
...
Fixed build warnings
2023-07-04 23:09:13 +02:00
zjeffer
d21f29cb14
Fixed build warnings
2023-07-04 23:05:26 +02:00
Alex
d8a808f76c
chore: 0.9.19
2023-07-04 23:03:50 +02:00
Alexis Rouillard
5ef6636237
Merge pull request #2265 from tengyifei/master
...
Partially revert 3af1853260 to fix use-after-free
2023-07-04 22:59:45 +02:00
Alex
fc632f50ec
fix: lint
2023-07-04 22:52:24 +02:00
Alexis Rouillard
31e4c9023e
Merge pull request #1872 from HarHarLinks/patch-1
...
Add output parameter format to manpage
2023-07-04 22:46:06 +02:00
Alexis Rouillard
3e1c341933
Merge branch 'master' into patch-1
2023-07-04 22:45:15 +02:00
Alexis Rouillard
0d1016d4d2
Merge pull request #2203 from rodrgz/mprisImprovement
...
mpris: dynamic tag ordering and separator customization
2023-07-04 22:44:21 +02:00
Alexis Rouillard
12725f4418
Merge pull request #2220 from sigboe/warp-on-scroll-toggle
...
sway/workspaces: setting to not warp to window when scrolling
2023-07-04 22:42:53 +02:00
Alexis Rouillard
5c64d034a2
Merge pull request #2010 from chayleaf/improve-flake
...
improve nix dev shell; override the nixpkgs waybar
2023-07-04 22:40:52 +02:00
Alexis Rouillard
14fa9cf7b7
Merge pull request #2128 from Alan-Kuan/image-tooltip
...
Image tooltip
2023-07-04 22:40:04 +02:00
Alex
6c196b8f8d
fix: lint
2023-07-04 22:35:27 +02:00
Alex
18d6dfea88
feat(man): start_hidden
2023-07-04 22:35:15 +02:00
Alexis Rouillard
d2eb8eb9fc
Merge pull request #2175 from maqrrr/start_hidden
...
Add a new start_hidden flag
2023-07-04 22:33:33 +02:00
Alexis Rouillard
65f73d3e95
Merge pull request #2269 from Arcus92/master
...
wlr/taskbar: add support for rewrite rules
2023-07-04 22:31:37 +02:00
Alexis Rouillard
265b4edb2e
Merge pull request #2276 from skligys/fix_mpris_ui_spamming
...
Stop MPRIS module from updating every ~20ms
2023-07-04 22:29:48 +02:00
Alexis Rouillard
18f5af835f
Merge pull request #2280 from zjeffer/fix/hyprland/workspaces
2023-07-04 19:58:07 +02:00
zjeffer
7ef80d563b
Formatting fixes
2023-07-04 19:48:04 +02:00
zjeffer
d3be9a7363
Fix rare segfault when destroying workspace
2023-07-04 19:40:43 +02:00
Alexis Rouillard
5f29e5a5e8
Merge pull request #2279 from LukashonakV/Catch_bump
2023-07-04 18:37:30 +02:00
Viktar Lukashonak
cf4d58f30a
Catch2 bump
2023-07-04 11:30:44 -04:00
Alexis Rouillard
bb61461aad
Merge pull request #2278 from Anakael/pr/anakael/hyprland-workspaces
2023-07-04 08:02:45 +02:00
Alexis Rouillard
c91c8bbc45
Merge pull request #2277 from Aparicio99/fix_icon_theme_segfault
2023-07-04 08:01:45 +02:00
dmitry
f26a125d15
format
2023-07-04 01:26:16 +03:00
dmitry
de626dcbbc
format
2023-07-04 01:24:34 +03:00
dmitry
c9b963e82b
fix segfault
2023-07-04 01:17:26 +03:00
André Aparício
a1cd0acac5
Fix random segfault on GTK icon functions
...
The segfaults were happening on GTK icon theme functions, which are
called via the C++ interface functions such as Gtk::IconTheme::has_icon.
There are multiple modules and threads using this functions on the default
icon theme by calling Gtk::IconTheme::get_default(), which returns the same
object for all callers, and was causing concurrent access to the same internal
data structures on the GTK lib. Even a seemingly read-only function such as
has_icon can cause writes due to the internal icon cache being updated.
To avoid this issues, a program wide global mutex must be used to ensure
a single thread is accessing the default icon theme instance.
This commit implements wrappers for the existing IconTheme function calls,
ensuring the global lock is held while calling the underling GTK functions.
2023-07-03 22:32:24 +01:00
Skirmantas Kligys
c2f9d889f4
Stop MPRIS module from updating every ~20ms as onPlayerMetadata(), onPlayerPlay()
...
callbacks get triggered without regard for update interval.
2023-07-03 13:52:57 -07:00
gardenapple
cdece498c1
hyprland/window: .solo class accounts for hidden & fullscreen windows
2023-07-02 20:58:42 +03:00
David Schulte
58bdc6a41c
fix spaces in waybar-wlr-taskbar.5.scd
2023-07-02 12:51:54 +02:00
David Schulte
c55cd82b39
wlr/taskbar: add support for rewrite rules
2023-07-02 12:23:36 +02:00
Alexis Rouillard
91588fb8bb
Merge pull request #2212 from evyatark2/wpscroll
...
wireplumber: Support for scrolling
2023-07-02 11:46:56 +02:00
Alexis Rouillard
6b9600fecd
Merge pull request #2267 from korylprince/reverse-scrolling
...
Don't apply reverse scrolling to mice wheels
2023-07-02 11:45:44 +02:00
Alexis Rouillard
0bfb29789c
Merge pull request #2268 from zjeffer/hyprland/workspaces
...
Fixes for hyprland/workspaces
2023-07-02 11:45:09 +02:00
zjeffer
f6a62e258e
fixes for hyprland/workspaces
2023-07-01 18:53:17 +02:00
Kory Prince
1ba05d1ffa
add reverse-mouse-scrolling to configure mouse wheel reverse scrolling
2023-07-01 10:35:37 -05:00
Kory Prince
7a01143359
ignore reverse-scrolling from mouse wheel
2023-07-01 10:33:55 -05:00
Kory Prince
35496f461f
fix regression from #2232 : reverse-scrolling was not applied to
...
GTK_SCROLL_SMOOTH events
2023-07-01 10:33:55 -05:00
Alex
b9cd0287f4
fix: typo
2023-07-01 11:12:46 +02:00
Alex
9d741f89e2
fix: lint
2023-07-01 11:12:14 +02:00
Alex
cc4370f1b2
fix: build
2023-07-01 11:08:31 +02:00
Alexis Rouillard
85854c71d6
Merge pull request #2219 from xytovl/wake_threads_on_resume
...
Wake all sleeping threads when leaving suspend
2023-07-01 11:02:13 +02:00
Alexis Rouillard
6ed550117c
Merge pull request #2237 from LukashonakV/Gentoo_CI
...
Refresh Gentoo docker
2023-07-01 10:57:33 +02:00
Alexis Rouillard
15fe85d18d
Merge pull request #2264 from Anakael/pr/anakael/hyprland-workspaces
...
feat: hyprland/workspaces
2023-07-01 10:55:24 +02:00
Alexis Rouillard
b62e5eb822
Merge pull request #2266 from zjeffer/master
...
Fixed some build warnings
2023-07-01 10:53:24 +02:00
zjeffer
25c2aaabcb
Fixed build warnings
2023-07-01 10:12:24 +02:00
Yifei Teng
cd49eef229
Partially revert 3af1853260 to fix use-after-free
...
After upgrading to the latest release of Waybar the bar will crash
whenever I close the laptop lid. After some debugging I believe it is
because the watching added by watch_name is not being correctly canceled
using unwatch_name. After the Tray object and Host object are destroyed,
additional callbacks will become use-after-free.
Looks like commit 3af1853260 removed the
unwatch_name. I'm not sure why it did that, but it seemed dangerous.
Additionally, bus_name_id_ is created by own_name. According to that
function's documentation, the correct inverse operation is unown_name.
2023-06-30 23:25:24 -07:00
dmitry
4f9fbbfa54
fix format
2023-07-01 02:25:15 +03:00
dmitry
0b602632f2
return catch2
2023-07-01 02:23:37 +03:00
dmitry
dbc7471f83
add docs
2023-07-01 02:13:36 +03:00
dmitry
887c44bf68
finish MVP
2023-07-01 00:18:57 +03:00
dmitry
33236c222f
save
2023-06-28 02:52:01 +03:00
Alexis Rouillard
4116490535
Merge pull request #2256 from luttermann/master
...
Add output port (display) of workspace to template function of sway/workspace
2023-06-27 13:50:54 +02:00
Lasse Luttermann
08e18387c9
Add output port of workspace to template
2023-06-27 13:41:42 +02:00
Alexis Rouillard
0fff38c751
Merge pull request #2258 from Anakael/pr/anakael/hide-empty-taskbar
...
[wrl/taskbare] fix: use empty class for empty taskbar
2023-06-27 08:58:54 +02:00
dmitry
afc489869a
fix format
2023-06-27 00:18:49 +03:00
dmitry
ce4da59f34
finish
2023-06-27 00:07:40 +03:00
Lasse Luttermann
43434254e0
Add output port of workspace to template
2023-06-26 11:01:50 +02:00
Erik Rodriguez
66ce74d29b
mpris: Rename dynamic-priority to dynamic-importance-order keeping backward compatibility
2023-06-22 02:13:44 -03:00
Erik Rodriguez
77a8420aaf
mpris: Add dynamic-order and dynamic-separator
...
This commit allows better handling of ordering and exclusion of the tags in Dynamics tags.
It also becomes possible to choose the separator between the tags.
2023-06-22 02:13:34 -03:00
Alexis Rouillard
b0f89f2bc1
Merge pull request #2241 from yangyingchao/master
...
support multiple items in hwmon-path of temperature module
2023-06-20 13:22:36 +02:00
Alexis Rouillard
7cda2dfd1a
Merge pull request #2245 from gardenappl/main
...
hyprland/window: Add CSS customization similar to sway/window
2023-06-20 13:22:12 +02:00
Alexis Rouillard
238cfa9547
Merge pull request #2247 from gardenappl/hypr-backend
...
More robust Hyprland backend
2023-06-20 13:21:34 +02:00
gardenapple
b163b21ace
More robust Hyprland backend
2023-06-20 13:36:48 +03:00
gardenapple
30c4f08773
hyprland/window: Correct application of .solo class
2023-06-20 03:54:02 +03:00
gardenapple
fd7c2a2012
hyprland/language: Show language on startup
2023-06-20 00:43:33 +03:00
gardenapple
4f14ce3285
hyprland/window: add .floating and .fullscreen CSS classes
2023-06-20 00:42:19 +03:00
gardenapple
e233022d1a
hyprland/window: Rework, add .empty, .solo and .<app_id> CSS classes
2023-06-19 23:44:20 +03:00
yangyingchao
e403c3b71b
support multiple items in hwmon-path of temperature module
...
So user can share configuration file among different machines with different hardware
configurations.
2023-06-17 11:33:14 +08:00
Alexis Rouillard
d367b7e1d6
Merge pull request #2229 from LukashonakV/Upower_nativePath
...
Upower native-path filter
2023-06-16 15:38:58 +02:00
Alexis Rouillard
038644f8d9
Merge pull request #2238 from LukashonakV/ISSUE#2204
...
Issue#2204
2023-06-16 15:38:20 +02:00
Viktar Lukashonak
d650c597f9
Renew clock man page
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-06-15 16:36:33 +03:00
Viktar Lukashonak
5196009656
Refresh Gentoo docker
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-06-15 13:58:33 +03:00
Viktar Lukashonak
4d8515930f
Use local TZ, when user sets blank TZ in config
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-06-13 23:32:28 +03:00
Viktar Lukashonak
192cea97f2
Upower man
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-06-13 18:44:29 +03:00
Kristóf Marussy
5bfdbf116d
sway/window: app_id on unfocused workspaces
...
If the unfocused workspace has a single window, use window-specific
styling when offscreen-css is enabled.
2023-06-13 01:52:13 +02:00
Alex
83f3c2321e
Merge pull request #2231 from RobertMueller2/appid-fix
...
sway/window: fix appid style not cleared
2023-06-12 15:40:56 +02:00
Alex
dff0583c12
Merge pull request #2232 from robertgzr/reverse-scroll
...
Lift reverse-scrolling option into AModule
2023-06-12 08:54:38 +02:00
Robert Günzler
73c7e54535
pulseaudio: document reverse-scrolling option
...
Signed-off-by: Robert Günzler <r@gnzler.io >
2023-06-12 14:08:22 +09:00
Robert Günzler
0f8c156f24
Lift reverse-scrolling option into AModule
...
The option is generally useful when scrolling is used, when configuring
input devices to use "natural scroll direction".
Both backlight and pulseaudio were using different implementations, this
unifies and documents them.
Signed-off-by: Robert Günzler <r@gnzler.io >
2023-06-12 14:08:18 +09:00
Rene D. Obermueller
fff4509723
sway/window: fix appid style not cleared ( #2227 )
...
Probably a rebase error during development of #1419 . The code block now
removed was not supposed to be there anymore.
2023-06-11 08:41:20 +02:00
Viktar Lukashonak
17af49d421
Upower native-path filter
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-06-09 18:22:24 +03:00
Alex
9f38631c7f
Merge pull request #2223 from Anakael/pr/shchemel/fix-class-priority
2023-06-09 08:36:34 +02:00
dmitry
62f4125927
change order
2023-06-08 23:31:14 +03:00
sigboe
a67e692d4a
sway: warp-on-scroll toggle
2023-06-07 15:49:11 +02:00
Patrick Nicolas
3c9cbc99d7
Wake all sleeping threads when leaving suspend
...
std::condition_variable::wait_for does not count time spent in sleep
mode, resulting in longer than expected waits.
2023-06-07 10:17:42 +02:00
Alex
c5379fa52d
Merge pull request #2218 from LukashonakV/Wdeprecated
...
deprecated: implicit capture of 'this' via '[=]'
2023-06-06 22:56:27 +02:00
Alex
070110af0c
Merge pull request #2217 from LukashonakV/g_bus_unwatch_name
...
Tray module causes: Invalid id passed to g_bus_unwatch_name()
2023-06-06 22:37:46 +02:00
Viktar Lukashonak
6bf5b15c13
deprecated: implicit capture of 'this' via '[=]'
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-06-06 23:31:12 +03:00
Viktar Lukashonak
a9779c2aa2
Happy Linter
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-06-06 23:06:11 +03:00
Viktar Lukashonak
3af1853260
Tray module cause error g_bus_unwatch_name()
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-06-06 23:02:36 +03:00
Alex
d638610db1
Merge pull request #2216 from LukashonakV/small_fixies
...
Small performance fixies
2023-06-06 13:03:52 +02:00
Viktar Lukashonak
87023c39f8
Small performance fixies
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-06-06 13:58:05 +03:00
Evyatar Stalinsky
e96610e31a
Use consistent tabbing
2023-06-06 12:01:25 +03:00
Evyatar Stalinsky
d61b1d54de
Document new wireplumber module functionality
2023-06-06 11:44:17 +03:00
Evyatar Stalinsky
e397f568b7
Round volume instead of truncating it
2023-06-06 11:42:31 +03:00
Evyatar Stalinsky
d22fd3bbd1
Use a minimum step as provided by wireplubmer; Default step to 1
2023-06-06 11:42:02 +03:00
Evyatar Stalinsky
75990c2867
Fix linting
2023-06-05 22:23:46 +03:00
Evyatar Stalinsky
88a1a702b4
wireplumber: Support for scrolling
2023-06-05 22:03:46 +03:00
Alex
24407dbf4a
Merge pull request #2196 from calvinchd/hyprland-window-empty-css
...
[hyprland/window] Add css class for empty window name
2023-06-05 16:48:59 +02:00
Alex
108285e9ac
Merge pull request #2210 from D3vil0p3r/patch-1
...
Fixing 'incomplete type error' during building
2023-06-05 16:30:00 +02:00
D3vil0p3r
b728a37b6d
Fixing 'incomplete type error' during building
...
Fixing errors during the building due to missing library after latest GCC updates.
2023-06-05 16:28:32 +02:00
Alex
938a93a0d7
Merge pull request #2209 from Matias-Hall/river_window_tooltip
2023-06-05 12:39:38 +02:00
Matias-Hall
ff6f727631
river/window: Add tooltip.
2023-06-05 18:29:19 +08:00
Alex
84077e0253
Merge pull request #2207 from dejor/dwl-module
2023-06-04 18:39:03 +02:00
dejor
d2787cc2d8
fix: typo to avoid null pointer
2023-06-04 12:45:33 +02:00
Calvin Chu
17a56aa4f7
hyprland/window: use empty() for empty window name check
2023-06-03 12:29:36 +10:00
Alex
ca52892ab9
Merge pull request #2200 from Visne/patch-1
2023-06-01 22:52:54 +02:00
Visne
655bc8f215
Fix broken link
2023-06-01 22:08:54 +02:00
Calvin Chu
a3912436be
hyprland/window: add css class for empty label
2023-06-01 21:38:27 +10:00
Alex
47193a3d2f
chore: v0.9.18
2023-05-29 09:25:01 +02:00
Alex
097cbc0c53
fix: lint
2023-05-29 09:24:33 +02:00
Alex
13a9c4a08b
Merge pull request #2185 from xdavidel/dwl-module
...
Update to new ipc version
2023-05-29 09:16:22 +02:00
David Delarosa
ebba529682
Apply clang-format
2023-05-25 01:29:28 +03:00
David Delarosa
b97b0ae605
Fix linter complains
2023-05-25 01:25:55 +03:00
David Delarosa
7e9bfc504c
Update to new ipc version
2023-05-25 00:27:50 +03:00
Alex
7b0d2e8043
Merge pull request #2184 from lfos/fix-battery-segfault
...
Fix SEGFAULT in battery module
2023-05-22 16:19:13 +02:00
Lukas Fleischer
75eacb95ef
Fix SEGFAULT in battery module
...
In waybar::modules::Battery::~Battery(), store a copy of the batteries_
iterator before calling erase(), as erase() invalidates the iterator.
Prior to this change, disconnecting outputs resulted in a SEGFAULT when
using the battery module; e.g.,
[debug] Received SIGCHLD in signalThread
[debug] Cmd exited with code 0
[debug] Received SIGCHLD in signalThread
[debug] Cmd exited with code 0
[debug] Received SIGCHLD in signalThread
[debug] Cmd exited with code 0
[debug] Output removed: AU Optronics 0x2336
[info] Bar configured (width: 1280, height: 25) for output: eDP-1
[info] Bar configured (width: 1280, height: 25) for output: eDP-1
zsh: segmentation fault (core dumped) ./build/waybar -l trace
Signed-off-by: Lukas Fleischer <lfleischer@lfos.de >
2023-05-22 10:16:30 -04:00
Alex
2b24b16023
Merge pull request #2182 from cptpcrd/fd-closing
2023-05-22 07:40:14 +02:00
cptpcrd
5cbbfd5c8a
Close pipe if fork() fails when spawning processes
...
Prevents potential file descriptor leakage, albeit in a bit of an edge
case.
2023-05-21 12:15:49 -04:00
cptpcrd
6163be687d
Open network module eventfd as close-on-exec
...
Ensures that it is not leaked to child processes.
2023-05-21 12:13:17 -04:00
cptpcrd
df65cab17a
Open command pipes as close-on-exec
...
Avoids a race where the pipe could be inherited by another process
spawning at about the same time. If the other process didn't exit
quickly (e.g. if it was a custom script that did its own looping), it
would keep the write end of the pipe open, and so reading from the pipe
to try to get the command's output would block.
This bug manifested as some custom modules randomly not appearing in the
bar, requiring a reload to fix. The custom script had run and exited,
but the pipe had been inherited by another process, and the thread that
updated the module's output was blocked trying to read from it.
2023-05-21 12:10:44 -04:00
maqrrr
339bea1213
Add a new start_hidden bool
2023-05-15 07:01:00 -04:00
Alex
7b704071ff
Merge pull request #2171 from FintasticMan/fix_mpris_man
...
mpris: Fix incorrect format replacement names
2023-05-13 23:25:30 +02:00
Finlay Davidson
5748e56aeb
mpris: Fix incorrect format replacement names
2023-05-13 21:45:29 +02:00
Alex
5b29119dab
Merge pull request #2170 from FintasticMan/hide_mpris_if_empty
...
mpris: Hide label if empty
2023-05-13 18:26:12 +02:00
Finlay Davidson
4bc30e040f
mpris: Hide label if empty
2023-05-10 13:43:43 +02:00
Alex
919ad0a8bb
Merge pull request #2156 from theRealCarneiro/master
...
Add persistent format-icon to wlr/workspaces
2023-05-05 14:05:32 +02:00
theRealCarneiro
5df43be11f
add persistent format-icon
2023-05-05 08:52:37 -03:00
Alex
56fa6b6afc
Merge pull request #2153 from MonstrousOgre/master
2023-05-04 22:21:13 +02:00
MonstrousOgre
c04485a5d0
separate css class for empty workspaces
2023-05-05 00:09:32 +05:30
Alex
b06953757e
Merge pull request #2144 from LukashonakV/cava_bump
2023-04-29 00:13:25 +02:00
Viktar Lukashonak
f5ef13c7f1
Gentoo docker. Add iniparser
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-04-28 15:46:51 +03:00
Viktar Lukashonak
8c83af75a1
happy linter
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-04-28 15:38:34 +03:00
Viktar Lukashonak
e253c34cd4
cava bump
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-04-28 13:38:35 +03:00
Alex
e4faf252b2
Merge pull request #2140 from 257/master
2023-04-26 21:35:46 +02:00
Paymon
3da3732cc9
network: detect if link is p2p and use local addr
...
without this we endup with peer's addr
Signed-off-by: Paymon MARANDI <darwinskernel@gmail.com >
2023-04-26 13:52:17 -04:00
Alex
757f20fc04
Merge pull request #2135 from eneshecan/master
2023-04-23 13:47:28 +02:00
Enes Hecan
f00602058c
Fix misinterpreting return value of getaddrinfo call which caused an early return for Hyprland language
2023-04-23 13:31:02 +02:00
Bruce Blore
bad6cfae6f
Added option to calculate battery percentage as total_energy * 100 / total_energy_full
2023-04-22 23:43:04 -07:00
Alan-Kuan
9389c8d854
chore: update manual of the image modle
2023-04-21 16:51:04 +08:00
Alan-Kuan
6a17139423
feat: tooltip for image module
2023-04-21 16:38:21 +08:00
Alex
a9a2223469
fix: lint
2023-04-17 09:09:13 +02:00
Alex
33d1ee413f
fix: typo
2023-04-17 09:07:59 +02:00
Alex
0b4c1cb877
Merge pull request #1950 from tleydxdy/shironeko
2023-04-17 09:06:43 +02:00
Alex
5e5569bb10
Merge pull request #1858 from uncomfyhalomacro/replace-gethostbyname-getaddrinfo
2023-04-17 09:05:35 +02:00
Alex
272d672953
fix: add missing man
2023-04-17 09:03:01 +02:00
Alex
ede1d25440
fix: lint
2023-04-17 09:01:14 +02:00
Alex
8be889c5aa
Merge pull request #2103 from xdavidel/dwl-module
...
Add DWL tags module
2023-04-17 09:01:00 +02:00
Alex
b1e3347fca
Merge pull request #2089 from MonstrousOgre/master
2023-04-17 08:59:22 +02:00
Alex
da2163ae41
Merge pull request #2092 from chayleaf/mpris-fix-non-dynamic-tag-escapes
2023-04-17 08:58:40 +02:00
Alex
1d7d1a8fe8
Merge pull request #2108 from yeheng282/backlight-fix
2023-04-17 08:58:03 +02:00
Alex
7d20034067
Merge pull request #2095 from alex-courtis/2094-pulseaudio-states
2023-04-17 08:56:26 +02:00
Alex
8aafe817bf
Merge pull request #2102 from LukashonakV/Cava
2023-04-16 18:06:53 +02:00
Viktar Lukashonak
a5607b66ca
Cava module
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-04-15 02:36:15 +03:00
Alex
61648c55d9
Merge pull request #2113 from LukashonakV/ISSUE#2073
2023-04-13 16:29:34 +02:00
David Delarosa
4dff1b91fe
Merge branch 'Alexays:master' into dwl-module
2023-04-13 17:18:27 +03:00
David Delarosa
1368ba64b5
Fix segfault in destructor
2023-04-13 17:16:37 +03:00
Viktar Lukashonak
6de3b58d6a
ISSUE#2073
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-04-13 17:16:03 +03:00
David Delarosa
731eaeb0be
Addapt to DWL new tag system
...
- tagscount is being used instead of tag array
2023-04-13 03:58:57 +03:00
yeheng282
022c9abad4
backlight: support tooltip
2023-04-11 21:01:02 +08:00
Alex
a46b8a0109
Merge pull request #2105 from skylar779/master
...
Made use of node_id_
2023-04-11 11:12:38 +02:00
skylar779
3b2dfeec01
Made use of node_id_
...
Checking against names for volume changes seems a bit weird to me and
also didn't really work, so I've made use of node_id_ to check against
this instead and also fixed an issue, where the volume update would
refuse to do its thing despite it being the same id that was used on launch.
2023-04-11 10:51:25 +02:00
Alex
e62d339b57
Merge pull request #2104 from numas13/master
2023-04-11 07:44:52 +02:00
Denis Drakhnia
18a2b90fc0
fix: generate wireplumber module man page
2023-04-11 08:17:45 +03:00
David Delarosa
60cdf10e64
Add DWL tags module
2023-04-11 04:50:21 +03:00
Alexander Courtis
51f0fc6b72
#2094 pulseaudio apply states
2023-04-07 14:19:45 +10:00
MonstrousOgre
6f3a27905d
preventing persistent_workspaces and all-outputs from being used together
2023-04-06 12:14:44 +05:30
chayleaf
659fea07ee
mpris: fix non-dynamic tags not being html escaped
2023-04-06 13:24:28 +07:00
Alex
bd908f6d97
Merge pull request #2090 from chayleaf/mpris-css-fix
2023-04-06 07:26:34 +02:00
chayleaf
cb82326b22
mpris: fix css class application
...
apply styles to label rather than event_box (fixes play/pause state and
per-player selectors)
2023-04-06 04:50:32 +07:00
MonstrousOgre
33c4964187
replacing spdlog::info with spdlog::debug
2023-04-06 00:34:52 +05:30
Alex
3d980f92a3
fix: build
2023-04-03 10:59:29 +02:00
Alex
626a1f58be
fix: build
2023-04-03 10:51:36 +02:00
Alex
1445dc4151
fix: lint
2023-04-03 10:06:01 +02:00
Alex
a6084ea7e6
Merge pull request #2068 from TheRealLorenz/master
2023-04-03 09:44:04 +02:00
Alex
60467ad7f2
Merge pull request #2064 from en3wton/hyprland-language-format-replacements
2023-04-03 09:43:28 +02:00
Alex
ef99b0226c
Merge pull request #1932 from ldelossa/wlr-taskbar-sort-app-id
2023-04-03 09:42:19 +02:00
Alex
60e0584d16
fix: lint
2023-04-03 09:41:24 +02:00
Alex
ba6faa7859
Merge pull request #2011 from chayleaf/improve-mpris
2023-04-03 09:40:01 +02:00
Alex
02b3c125a1
fix: init optional to null
2023-04-03 09:38:12 +02:00
Alex
20a8039a25
Merge pull request #2080 from cdump/master
2023-03-31 19:17:56 +02:00
Maxim Andreev
ffeef7f40f
modules/clock: fix calendar shift in months with 31 days
2023-03-31 20:07:59 +03:00
chayleaf
0cfd1c7094
mpris: don't put ellipsis after whitespace
2023-03-31 19:54:44 +07:00
chayleaf
e5524d5059
mpris: switch base class from AModule to ALabel
2023-03-31 19:54:39 +07:00
chayleaf
774d8880cd
mpris: fix potentially invalid seconds count on >1h media
2023-03-31 19:54:39 +07:00
chayleaf
a301b8c4cd
mpris: update docs
2023-03-31 19:54:27 +07:00
chayleaf
5383f7bd56
mpris: add unicode support; add position tag
2023-03-31 19:54:20 +07:00
chayleaf
a53c97f7f6
mpris: add tooltip and length limits
2023-03-31 19:53:53 +07:00
Alex
9fd2703cb9
Merge pull request #2077 from lilydjwg/master
2023-03-30 20:45:17 +02:00
lilydjwg
918de59988
custom module: free memory returned by libc's getline
2023-03-29 21:18:13 +08:00
TheRealLorenz
4b27385da2
Update manpage for sway/window module
2023-03-25 17:41:09 +01:00
TheRealLorenz
f557697e92
Rewrite entire label in sway/window module
...
Closes #1742
2023-03-25 17:37:49 +01:00
TheRealLorenz
63525ec956
Rename function name
2023-03-25 17:33:01 +01:00
MonstrousOgre
5791a6abc6
Reading persistent workspaces
2023-03-24 23:11:47 +05:30
en3wton
bbcfb5e138
remove use of new on Layout
2023-03-21 19:30:35 +00:00
en3wton
4ab4ff790e
add more format replacements for hyprland/language
2023-03-19 15:12:11 +00:00
Alex
473eb0982b
Merge pull request #2053 from paul-ri/exlude-in-array
2023-03-13 11:04:25 +01:00
Paul Riou
fa9f3a6dc5
make:Add phony 'test' rule
2023-03-13 00:50:19 +00:00
Paul Riou
c26849217e
test:Add test for output config with multiple exclusion/wildcard
2023-03-13 00:49:18 +00:00
Paul Riou
90206f55be
config:output:Allow multiple exclusions & wildcard
...
Covers the use case where needing to exclude more than 1 output but
still include all other displays.
e.g. I have 3 monitors: laptop + HD + 4K; and 3 bar types:
- The main bar is on the laptop. `output: "laptop-monitor-id"`
- The 4K has a specific waybar bar-1 configuration. `output: "4K-monitor-id"`
- I want all other displays (3rd HD monitor / any HDMI output when presenting)
to have a plain bar: `output: ["!laptop-monitor-id", "!4k-monitor-id", "*"]`
2023-03-13 00:44:07 +00:00
Alex
9a0dbd555d
Merge pull request #2049 from 2e0byo/lint
2023-03-08 15:46:41 +01:00
John Maximilian
a9015c7c98
refactor: make linter happy.
2023-03-08 14:35:07 +00:00
Alex
5b6e9d4e34
Merge pull request #2048 from LDAP/patch-1
2023-03-08 15:29:17 +01:00
Lucas Alber
8ccf00f0fe
Wireplumber: Free the default node name
...
The `default_node_name_` is reassigned without calling `g_free` on the old string.
2023-03-08 15:21:52 +01:00
Alex
823c13a8c0
Merge pull request #2046 from 2e0byo/fix/mpd
2023-03-07 18:12:40 +01:00
John Maximilian
3c96881a59
fix: mpd bug paused with no song.
2023-03-07 16:48:05 +00:00
Alex
b34d325a71
Merge pull request #2037 from LukashonakV/Happy_clang
...
Happy clang
2023-03-02 19:42:38 +01:00
Alex
3bda22da72
Merge pull request #1589 from qubidt/module-group-orientation
...
group module: configurable orientation
2023-03-02 19:42:22 +01:00
Viktar Lukashonak
61a6c00c02
Happy clang
2023-03-02 16:57:32 +03:00
Alex
39bc54e3ad
Merge pull request #2036 from LukashonakV/Clock_TZ_try_catch
2023-03-02 08:48:56 +01:00
Viktar Lukashonak
4cb7e55a91
ISSUE #878 . Try catch Clock timezones
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-03-02 10:10:34 +03:00
Viktar Lukashonak
43862ceb34
ISSUE #878 . Try catch Clock timezones
2023-03-02 10:07:10 +03:00
Alex
f29a400c97
Merge pull request #2035 from LukashonakV/AModule_forceEvents
2023-03-01 23:24:18 +01:00
Viktar Lukashonak
ce16e029ed
Issue #2030 . AModule enable_click & enable_scroll
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-03-01 23:39:36 +03:00
Louis DeLosSantos
79eb2f5bc1
wlr-taskbar: allow sorting by app_id
...
some users (maybe only myself) may want to sort the task bar by app_id
which then places occurrences of the same task next to each other.
Signed-off-by: Louis DeLosSantos <louis.delos@gmail.com >
2023-03-01 12:16:28 +00:00
Alex
b7e6a2dc25
Merge pull request #2034 from pascal-huber/master
2023-03-01 11:06:27 +01:00
Pascal Huber
23f39938fb
Revert "feat(sway): add workspace css class"
...
This reverts commit a10464d9bb .
2023-03-01 10:55:15 +01:00
Alex
8cc8820369
Merge pull request #2017 from pascal-huber/master
2023-03-01 09:43:44 +01:00
Alex
c9c8b09e3f
Merge pull request #1991 from alex-courtis/add-river-layout
2023-03-01 09:42:39 +01:00
Alex
fb1f550c1a
Merge pull request #2019 from LukashonakV/ISSUE#1977
2023-03-01 09:38:28 +01:00
Viktar Lukashonak
e25a7c9719
ISSUE#1977. AModule implements module actions call
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-02-28 15:32:28 +03:00
Alex
09142fa322
Merge pull request #2025 from ElyesH/master
2023-02-25 10:49:59 +01:00
Elyes Haouas
1af25094b7
Fix some typos
...
Signed-off-by: Elyes Haouas <ehaouas@noos.fr >
2023-02-25 09:55:04 +01:00
Elyes Haouas
0d99d38089
modules/network.cpp: Remove repeated "the"
...
Signed-off-by: Elyes Haouas <ehaouas@noos.fr >
2023-02-25 09:51:40 +01:00
Pascal Huber
a10464d9bb
feat(sway): add workspace css class
2023-02-18 20:31:12 +01:00
chayleaf
3f23792df0
use the recommended way of using flake-compat
2023-02-16 20:31:02 +07:00
chayleaf
529031f44f
fix typo
2023-02-16 20:26:57 +07:00
chayleaf
f51894614d
after updating nix.lock all this soup isn't needed
2023-02-16 20:25:07 +07:00
chayleaf
a7dbab79e5
add default.nix for compatibility; update flake.lock
2023-02-16 20:02:39 +07:00
chayleaf
4dcce810d2
improve nix dev shell; override the nixpkgs waybar
...
for example, the update from 0.9.16 to 0.9.17 broke this flake, after
this change the derivation will be the same as the nixpkgs one. This is
the better option since the flake is unmaintained in this repo (although
it may still break inbetween releases)
2023-02-16 19:45:58 +07:00
Alexander Courtis
43958ef560
fix: compilation errors with cpp_std=c++20
2023-02-11 13:26:03 +11:00
Alexander Courtis
5e4a47c0a8
Merge branch 'master' into add-river-layout
2023-02-11 13:22:46 +11:00
Alex
ea38eec2af
fix: lint
2023-02-09 13:25:39 +01:00
Alex
286a3c70f4
Merge pull request #1978 from kpanuragh/master
2023-02-09 13:25:15 +01:00
Alex
9049de583e
Merge pull request #1996 from Kuruyia/feat/brightness-control
...
Closes https://github.com/Alexays/Waybar/issues/1411
2023-02-09 13:24:35 +01:00
Alex
a6eaaad97f
Merge pull request #1998 from LukashonakV/Clock_revision
2023-02-09 09:32:57 +01:00
Alex
d25930793c
Merge pull request #2004 from bwaite/fix-memory-leak-upower
2023-02-08 09:02:06 +01:00
Bryan Waite
67ab269706
Fixing memory leak on update UPower tooltip
2023-02-08 17:19:51 +11:00
Alex
48312f4c91
Merge pull request #2001 from LukashonakV/ISSUE#1988
2023-02-04 23:30:12 +01:00
Viktar Lukashonak
677cbb3384
When no one timezone is provided use system's TZ
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-02-04 23:48:25 +03:00
Kuruyia
973aa09f8b
refactor(backlight): fix linter
2023-02-03 18:18:44 +01:00
Kuruyia
e8c4b85328
feat(backlight): use dbus to set the brightness
2023-02-03 12:58:52 +01:00
Viktar Lukashonak
b5ad77ea8c
Avoid of unnecessary string transformation
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-02-02 13:26:05 +03:00
Anuragh K P
74a8464c09
updating man page
2023-02-01 21:22:10 +05:30
Kuruyia
a78f0124d2
feat(backlight): add brightness control
2023-02-01 14:46:55 +01:00
Alex
8da5425189
Merge pull request #1994 from smoak/fix_wireplumber_invalid_pointer
2023-02-01 08:25:05 +01:00
Sasha Moak
a9c9f1d705
fix(wireplumber): free(): invalid pointer
...
When freeing the `default_node_name_` pointer using `free`, the `&`
operator was used to try to free the reference rather than the pointer.
This caused a core dump. In order to fix this, the pointer is freed
instead (ie the `&` operator is no longer used).
2023-01-31 17:56:58 -08:00
Alexander Courtis
301b106c48
add river/layout clang-format
2023-01-31 16:41:36 +11:00
Alexander Courtis
757a450324
add river/layout
2023-01-31 16:34:38 +11:00
Anuragh K P
7b3a6fbaa7
created local variable for _output
2023-01-30 18:35:06 +05:30
Alex
c93811b158
Merge pull request #1987 from adamant-pwn/patch-2
2023-01-30 08:57:28 +01:00
Anuragh K P
7554d7f071
Fixing build issue in image module
2023-01-29 19:13:01 +05:30
Oleksandr Kulkov
220b859948
Fix kbName initialization
...
Second argument of substr is the length of the substring, _not_ the position. With positions, it's better to do like this.
Example:
```sh
[2023-01-29 13:08:00.927] [debug] hyprland IPC received activelayout>>ITE Tech. Inc. ITE Device(8910) Keyboard,Russian (with Ukrainian-Belorussian layout)
[2023-01-29 13:08:00.927] [debug] kbName is ITE Tech. Inc. ITE Device(8910) Keyboard,Russian (with
```
After the fix it's correct:
```sh
[2023-01-29 13:11:11.408] [debug] hyprland IPC received activelayout>>ITE Tech. Inc. ITE Device(8910) Keyboard,Russian (with Ukrainian-Belorussian layout)
[2023-01-29 13:11:11.408] [debug] kbName is ITE Tech. Inc. ITE Device(8910) Keyboard
```
2023-01-29 13:14:05 +01:00
Anuragh K P
012baadaca
added exec condition check on image module
2023-01-29 10:41:24 +05:30
Alex
0ecfce9c61
Merge pull request #1975 from bd-g/fix-image
2023-01-27 14:38:26 +01:00
Alex
d2116acb62
Merge pull request #1982 from LukashonakV/ClockSimplify
2023-01-27 14:33:28 +01:00
Viktar Lukashonak
5d8f9a8273
Clock. Formating simplify
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-01-27 15:57:18 +03:00
Anuragh K P
9068b7548f
for image module get path from executable file
2023-01-25 22:29:33 +05:30
Anuragh K P
1495b957f1
for image module get path from executable file
2023-01-25 22:28:07 +05:30
Alex
47cdd6f988
Merge pull request #1976 from LukashonakV/ClockAltMode
2023-01-25 15:10:08 +01:00
Viktar Lukashonak
f3f0b008c6
Clock. Proper handletoggle propagation
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-01-25 16:56:45 +03:00
Brent George
c1ceb7ac42
fix linting issues
2023-01-24 14:53:49 -05:00
Brent George
e128c48573
image module CSS fix
2023-01-24 14:34:02 -05:00
Alex
dd9e3d0172
Merge pull request #1871 from Narice/feat/nix-flake-support
2023-01-24 09:34:03 +01:00
Alex
a9613892bb
Rename .envrc to .envrc.sample
2023-01-24 09:33:38 +01:00
Alex
e7af29ac1e
Merge pull request #1971 from LukashonakV/YearCalendar
2023-01-23 17:07:21 +01:00
Viktar Lukashonak
3b28af8b51
Merge remote-tracking branch 'origin/master' into YearCalendar
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-01-23 18:49:45 +03:00
Viktar Lukashonak
ed31b20c26
Merge branch 'master' into YearCalendar
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2023-01-23 18:42:32 +03:00
Alex
fea7ec9133
Merge pull request #1941 from eneshecan/master
...
Fixes https://github.com/Alexays/Waybar/issues/1940
2023-01-23 10:24:44 +01:00
Enes Hecan
3c8ca009ff
Sanitize hyprland language string only instead of the whole format. Fixes #1940
2023-01-23 09:50:40 +01:00
Alex
f4cfafd238
fix: lint
2023-01-23 09:25:02 +01:00
Alex
5182fadede
Merge pull request #1944 from PolpOnline/master
2023-01-23 09:22:27 +01:00
Alex
18e0e0c7c1
Merge pull request #1964 from tactikauan/master
2023-01-23 09:20:46 +01:00
Alex
69b95e6d71
Merge pull request #1959 from alebastr/gcc-13
2023-01-23 09:18:13 +01:00
Alex
5e2895ccb3
Merge pull request #1966 from asas1asas200/zeng-doc-image
2023-01-22 13:39:39 +01:00
asas1asas200
0ca1c3957a
docs(image): add image doc in meson and fix title
2023-01-22 20:16:46 +08:00
Kauan Decarli
de77787b60
Allow any module to implement signal handling
2023-01-21 21:57:28 -03:00
Aleksei Bavshin
51b6c22cab
ci: add glibc locales for date formatting tests.
...
Add some missing dependencies for Fedora.
2023-01-21 02:18:46 -08:00
Aleksei Bavshin
01cee153a4
ci: try to build with cpp_std=c++20
...
Add an extra job to build with `-std=c++20` on Fedora.
Update actions/checkout to v3.
2023-01-21 02:18:45 -08:00
Aleksei Bavshin
93e340a081
feat(clock): support chrono Time Zone extensions.
...
Use chrono Calendars and Time Zones (P0355R7, P1466R3) when available
instead of the `date` library.
Verified with a patched build of a recent GCC 13 snapshot.
2023-01-21 02:18:44 -08:00
Aleksei Bavshin
6225db0a48
test: refactor date formatter tests.
...
- Add tests for global locale.
- Warn about missing locales.
- Downgrade REQUIRE to CHECK.
- Skip tests if localized formatting does not work as expected.
2023-01-21 02:18:43 -08:00
Aleksei Bavshin
ea17a66dfc
fix: compilation errors with cpp_std=c++20
...
There were two main issues with fmtlib and C++20 mode:
- `fmt::format` defaults to compile-time argument checking and requires
using `fmt::runtime(format_string)` to bypass that.
- `std::format` implementation introduces conflicting declarations and
we have to specify the namespace for all `format`/`format_to` calls.
2023-01-20 22:50:02 -08:00
Aleksei Bavshin
67efe1af89
refactor(clock): remove struct waybar_time
...
The structure was used to pass the locale instance to the date
formatter. All the supported versions of `fmt` are passing the locale
parameter via `FormatContext.locale()` so we can remove the struct and
simplify the code.
While we at it, drop `date::make_zoned` in favor of CTAD on a
`date::zoned_time` constructor.
2023-01-20 22:50:01 -08:00
Aleksei Bavshin
ba498869c5
fix(clock): delete outdated warning
2023-01-20 22:50:00 -08:00
Aleksei Bavshin
43d52c59d9
test: fix build with Catch2 v2.x
...
Use smaller includes for Catch2 v3.
2023-01-20 22:49:59 -08:00
Aleksei Bavshin
ca9d237b00
fix(sway): add missing includes for GCC 13
...
See also: https://gcc.gnu.org/gcc-13/porting_to.html
2023-01-20 22:49:58 -08:00
Alex
bc07a82579
Merge pull request #1962 from maximbaz/hyprland-submap-init
2023-01-20 23:46:08 +01:00
Maxim Baz
6e9f21fc6b
hyprland/submap: run initial render on startup
2023-01-20 23:40:08 +01:00
Alex
eb9d2d9c5d
Merge pull request #1935 from multun/master
2023-01-17 09:40:45 +01:00
Alex
be3df41ae0
Merge pull request #1942 from smoak/fix-wireplumber-crashes
...
Fixes https://github.com/Alexays/Waybar/issues/1907
2023-01-17 09:36:05 +01:00
Sasha Moak
4e8ccf36b5
fix(wireplumber): waybar crashes when default node changes
...
In order to fix the issue, the default node name is cached rather than
the default node id. This is due to ids being unstable. So now when the
object manager is installed (ie ready), the default node name is
retrieved and stored for later.
Now when the mixer changed signal is emitted, the id of the changed node
is used to get the node from the object manager. The nodes name is
grabbed off that node and compared against the default node name, if
they match the volume is updated. Some safeguarding has been added such
that if the node cannot be found off the object manager, it's ignored.
Additionally, the "changed" signal on the default nodes api is now
utilized to update the default node name if it has changed. This way if
the default node changes, the module will be updated with the correct
volume and node.nick.
This adds additional debug logging for helping diagnose wireplumber
issues.
This also adds the wireplumber man page entry to the main waybar
supported section.
2023-01-16 10:29:35 -08:00
shironeko
5649c3f552
river/tags: refactor to support special purpose tags
...
adds the set-tags and toggle-tags setting so it's possible to have
different tags set vs toggled. This enables the use of e.g. sticky tags
Also clean-up the code a bit.
2023-01-15 12:16:30 -05:00
PolpOnline
a4b1b0a211
modules/custom: Added percentage rounding
2023-01-13 22:39:59 +01:00
Alex
6c8e186586
Merge pull request #1939 from RobertMueller2/master
2023-01-13 15:31:50 +01:00
Rene D. Obermueller
544c6deb88
sway/window: fix manpage
2023-01-13 15:08:59 +01:00
Alex
e59b4e4c93
Merge pull request #1419 from RobertMueller2/sway-window-newstyles
2023-01-13 13:58:43 +01:00
Alex
d71a4569fe
Merge pull request #1937 from cyrinux/fix/battery-time-remaining
...
fix https://github.com/Alexays/Waybar/pull/1867#pullrequestreview-1246756355
2023-01-13 09:51:40 +01:00
Cyril LEVIS
120cba0f5e
fix: battery time remaining
...
time is reported in second and should be divided by 3600 and not 1000.
2023-01-13 09:44:39 +01:00
Rene D. Obermueller
328573332f
sway-window, Issue 1399: new style classes
...
Provides CSS classes empty, floating, tabbed, tiled, solo, stacked and
app_id.
Adds offscreen-css bool option (default false), only effective when
"all-outputs" is true. This adds styles on outputs without focused
node, according to its focused workspaces window situation.
Adds an "offscreen-css-text" string option (default empty), only
effective when "all-outputs" and "offscreen-style" are set. This
is shown as a text on outputs without a focused node.
Adds a "show-focused-workspace" bool option (default false) to indicate
the workspace name if the whole workspace is focused when nodes are
also present. If not set, empty text is shown, but css classes
according to nodes in the workspace are still applied.
Limitation:
When the top level layout changes, there is no sway event so the
module cannot react. Perhaps in the future recurring polling can
be added to go around this limitation.
2023-01-12 05:53:59 +01:00
Victor "multun" Collod
df0fdce92b
get_desktop_app_info: fix crash on failed DesktopAppInfo::create
...
Even though it makes little sense for this call to fail,
it sometimes randomly does, and takes down waybar with it.
2023-01-11 23:02:12 +01:00
Kim Brose
1130e8c8ec
Add output parameter format to manpage
2022-12-06 19:05:08 +01:00
Narice
d5a86526bc
dev: Added Nix Flake support
...
- Enables Nix users to get the git version of waybar
- Enables Nix users to develop waybar easily
- Adds a fully reproducible development environment
- The user only has to install Nix, no other depencencies
- Automatic dev env on directory entry through .envrc
2022-12-06 18:44:26 +01:00
Soc Virnyl S. Estela
55d7868f86
fix(2): use getaddrinfo() instead of gethostbyname()
2022-12-02 22:18:32 +08:00
Soc Virnyl S. Estela
0540977e45
format: remove some newlines
2022-12-02 21:42:58 +08:00
Soc Virnyl S. Estela
385726e701
fix: use getaddrinfo() instead of gethostbyname()
2022-12-02 21:36:14 +08:00
Bao Trinh
f5a24d12e5
group module: configurable orientation
...
currently, the orientation of group modules is always the opposite of
the bar. Change it so that:
* the default orientation of the group module is always the opposite of
its parent, even for nested groups
* the orientation can be overridden in the config
* css ID and class are set for the group element
2022-09-03 18:37:35 -05:00