Skip to content

Commit 5a1389b

Browse files
committed
Merge remote-tracking branch 'upstream/master' into gtk4
Resolving conflicts with f9acc1f (Alexays#3730) was a somewhat complicated. Conflicts: include/AModule.hpp src/AModule.cpp src/bar.cpp src/modules/network.cpp src/util/backlight_backend.cpp
2 parents 6089f52 + 5346649 commit 5a1389b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+416
-91
lines changed

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

include/AModule.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class AModule : public IModule {
2222
/// Emitting on this dispatcher triggers a update() call
2323
Glib::Dispatcher dp;
2424

25+
bool expandEnabled() const;
26+
2527
protected:
2628
// Don't need to make an object directly
2729
// Derived classes are able to use it
@@ -52,6 +54,7 @@ class AModule : public IModule {
5254

5355
private:
5456
const bool isTooltip;
57+
const bool isExpand;
5558
const bool isAfter{true};
5659
bool enableClick_{false};
5760
bool enableScroll_{false};

include/bar.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ class Bar : public sigc::trackable {
8888
void onConfigure(int width, int height);
8989
void configureGlobalOffset(int width, int height);
9090
void onOutputGeometryChanged();
91+
// Set hexpend or vexpand to true, depending on orientation
92+
void setExpand(Gtk::Widget &widget);
9193

9294
Glib::RefPtr<Gdk::Surface> gdk_surface_;
9395
int x_global;

include/modules/network.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class Network final : public ALabel {
4343
std::optional<std::pair<unsigned long long, unsigned long long>> readBandwidthUsage();
4444

4545
int ifid_;
46-
sa_family_t family_;
4746
struct sockaddr_nl nladdr_ = {0};
4847
struct nl_sock* sock_ = nullptr;
4948
struct nl_sock* ev_sock_ = nullptr;

include/modules/sway/workspaces.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class Workspaces final : public AModule, public sigc::trackable {
4444
std::vector<std::string> workspaces_order_;
4545
Gtk::Box box_;
4646
std::string m_formatWindowSeperator;
47-
std::string m_windowRewriteDefault;
4847
util::RegexCollection m_windowRewriteRules;
4948
util::JsonParser parser_;
5049
std::unordered_map<std::string, Gtk::Button> buttons_;

man/waybar-backlight-slider.5.scd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ The brightness can be controlled by dragging the slider across the bar or clicki
3131
typeof: string ++
3232
The name of the preferred device to control. If left empty, a device will be chosen automatically.
3333

34+
*expand*: ++
35+
typeof: bool ++
36+
default: false ++
37+
Enables this module to consume all left over space dynamically.
38+
3439
# EXAMPLES
3540

3641
```

man/waybar-backlight.5.scd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ The *backlight* module displays the current backlight level.
9999
typeof: array ++
100100
The actions corresponding to the buttons of the menu.
101101

102+
*expand*: ++
103+
typeof: bool ++
104+
default: false ++
105+
Enables this module to consume all left over space dynamically.
106+
102107
# EXAMPLE:
103108

104109
```

man/waybar-battery.5.scd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ The *battery* module displays the current capacity and state (eg. charging) of y
122122
typeof: array ++
123123
The actions corresponding to the buttons of the menu.
124124

125+
*expand*: ++
126+
typeof: bool ++
127+
default: false ++
128+
Enables this module to consume all left over space dynamically.
129+
125130
# FORMAT REPLACEMENTS
126131

127132
*{capacity}*: Capacity in percentage

man/waybar-bluetooth.5.scd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ Addressed by *bluetooth*
142142
typeof: array ++
143143
The actions corresponding to the buttons of the menu.
144144

145+
*expand*: ++
146+
typeof: bool ++
147+
default: false ++
148+
Enables this module to consume all left over space dynamically.
149+
145150
# FORMAT REPLACEMENTS
146151

147152
*{status}*: Status of the bluetooth device.

man/waybar-cffi.5.scd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ Addressed by *cffi/<name>*
1515
typeof: string ++
1616
The path to the dynamic library to load to control the widget.
1717

18+
*expand*: ++
19+
typeof: bool ++
20+
default: false ++
21+
Enables this module to consume all left over space dynamically.
22+
1823
Some additional configuration may be required depending on the cffi dynamic library being used.
1924

2025

0 commit comments

Comments
 (0)