ae1e11db22
Merge pull request #2773 from grimpy/waybarwindows
...
Implement windows formating in sway/workspaces
2024-02-19 23:05:24 +01:00
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
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
70dc388dff
Merge pull request #2915 from haasn/cpu_style
...
Add style class for CPU state
2024-02-19 22:58:21 +01:00
bba8da76b6
Merge pull request #2836 from alebastr/require-gtk-layer-shell
...
Require gtk-layer-shell
2024-02-19 22:57:50 +01:00
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
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
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
a18b6dcc29
Merge pull request #2925 from LukashonakV/bump_cava
...
libcava bump 0.10.1
2024-02-19 22:47:04 +01:00
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
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
11310b89f0
hyprland/workspaces: Use hyprland's persistent workspaces configuration
2024-02-18 16:04:47 +01:00
a02bacdd53
fix build warning
2024-02-18 12:01:36 +01:00
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
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
d7d4dca6ba
libcava bump 0.10.1
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2024-02-17 18:20:03 +03:00
9c3881f6f8
add check for tooltip-format for custom modules
2024-02-16 01:33:04 +01:00
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
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
77c7b91b40
Add style classes for hyprland/submap
2024-02-13 11:46:27 +01:00
a0bac34329
Add style class for CPU state
...
Fixes: https://github.com/Alexays/Waybar/issues/2911
2024-02-13 10:49:57 +01:00
acf6611098
clang-format
2024-02-10 17:35:46 +01:00
a2925fa5da
fix 'visible' class for special workspaces
2024-02-10 17:26:44 +01:00
240b49f9d2
Add 'empty' css class to special workspaces
2024-02-10 16:59:53 +01:00
d4331ce7fe
improve handling of special workspace name
2024-02-09 13:49:39 +01:00
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
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