Commit Graph

2046 Commits

Author SHA1 Message Date
692f8f4ea4 add/remove 'active' on 'focusedmon' IPC event 2024-02-07 22:42:05 +01:00
61be2267ab add 'visible' css class to special workspaces 2024-02-07 21:10:17 +01:00
c30541b954 remove whitespaces 2024-02-07 16:56:37 +01:00
3bfcd5e086 Add 'active' css class to special workspaces 2024-02-07 16:33:19 +01:00
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
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
08b32cb901 Removing unnecessary parts of transition_type handling 2024-02-04 16:17:06 +01:00
1fa1045af9 remove duplicated segment 2024-02-04 16:11:39 +01:00
718dd4afae add ordinal date toolbar format specifier to clock module 2024-02-04 15:41:39 +01:00
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
029b380c15 Fix: drawer not appearing on configured side 2024-02-02 20:54:16 +01:00
f1016322b9 fix: tpyo 2024-01-31 22:59:09 +01:00
6dcae2cade fix: reload style 2024-01-31 22:57:20 +01:00
fb6658e8fd chore: lint 2024-01-30 09:07:37 +01:00
1dce607c42 Merge pull request #2852 from dpayne/add_css_reload
Adding css reloader
2024-01-29 22:44:29 +01:00
10cb4180f6 * Fixing clang tidy comments
* Fixing missing includes
* Fixing formatting
2024-01-28 14:44:25 -08:00
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
14d168c254 pulseaudio: extract context connecting into connectContext() 2024-01-27 23:47:39 +08:00
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
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
90b5b21394 Merge branch 'Alexays:master' into master 2024-01-24 02:01:17 +05:30
0af8f5c691 Add "empty" class for Image module when path/exec is returning an empty value. 2024-01-23 18:15:47 +01:00
970a7519d4 Merge branch 'master' of github.com:Alexays/Waybar into add_css_reload 2024-01-22 12:40:02 -08:00
20fa578b12 Adding config option to enable reloading style on file change 2024-01-21 21:02:01 -08:00
f7eca99496 Using Gio::FileMonitor for watching style changes 2024-01-21 20:49:13 -08:00
53233e47a3 Fix use after free on task close 2024-01-21 19:08:23 -08:00
d7ed4f1fa8 Adding css reloader 2024-01-21 18:23:46 -08:00
d14a4a2b1a fixed early dereference error 2024-01-19 16:00:13 +05:30
dacffdb095 removed duplicate code 2024-01-19 15:27:11 +05:30
3de6d2e859 Merge branch 'Alexays:master' into master 2024-01-17 18:29:14 +05:30
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
4f0fbaba8e clock: fix construction with calendar.format.today 2024-01-17 13:30:32 +01:00
392f83e71d Merge pull request #2838 from m-bdf/clock-tz-changes 2024-01-16 22:48:31 +01:00
d343f616fc clock: handle timezone changes (again again) 2024-01-16 21:35:42 +01:00
8c502378aa Merge branch 'Alexays:master' into master 2024-01-15 14:24:27 +05:30
95ffc291f6 fix: hide tray event box instead of box 2024-01-14 15:06:06 +00:00
4eef1ce10f Merge branch 'Alexays:master' into master 2024-01-13 16:07:11 +05:30
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
9e08512927 feat: strip workspace qualifiers when creating windows 2024-01-10 02:24:51 -03:00
eedd1f8e6a Add module systemd-failed-units 2024-01-09 18:19:30 +08:00
4339030c9d feat: fetch clients data when moving workspaces accross monitors 2024-01-08 20:11:39 -03:00
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
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
f1f3442e38 Merge branch 'Alexays:master' into master 2024-01-08 22:54:08 +05:30
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
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
3390c16f52 added support for battery state-based classes on the entire waybar 2024-01-07 17:22:34 +05:30
4b20f522f0 Merge pull request #2789 from DreamMaoMao/master
fix:#2769
2024-01-04 15:33:26 +01:00
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
19bf4d0544 clang format trailing whitespace 2023-12-28 19:38:01 -08:00