Austin Horstman
b19890c0b1
network: clang-format
2024-07-15 09:02:27 -05:00
Austin Horstman
b41fcdedff
hyprland/window: fix crash when no return from socket
...
Gracefully handle lack of response from the IPC. If socket isn't
available, we already log the IPC isn't running. We dont need to crash
program just because we couldn't get responses. We can just return an
empty object.
2024-07-15 09:02:27 -05:00
Siddhant Kameswar
e117bd7cb6
network: add bssid format replacement
2024-07-12 20:46:26 -05:00
yangyingchao
21d42baa8e
(temperature) fix clang-tidy lint .
2024-07-06 08:16:45 +08:00
Austin Horstman
702e10649e
modules/hyprland/workspace: ignore empty window-rewrite
...
I'd like to ignore some windows from having icons or empty space taken
on the bar. By filtering out empty repr we can supply rewrite rules that
will ignore them from being processed and showing an empty space or
default icon.
2024-07-03 00:21:49 -05:00
Alexis Rouillard
9997155617
Merge pull request #3267 from luttermann/upower_model
...
Add config option to select UPower device based on device model.
2024-07-01 09:22:59 +02:00
Alexis Rouillard
ff0f408ab8
Merge pull request #3380 from alerque/debug-keyboard-layout
...
Add keyboard debug info to hyprland language module
2024-07-01 09:22:08 +02:00
Alexis Rouillard
494cedb3bc
Merge pull request #3393 from RobertMueller2/issue_3366
...
workaround for icons not rendered for apps existing before waybar launch
2024-07-01 09:21:40 +02:00
Rene D. Obermueller
fb24e8cb1f
add hide-empty-text option to hide module whenever output is empty but format is not
2024-06-30 21:16:52 +02:00
Rene D. Obermueller
64a3133083
workaround for icons not rendered for apps existing before waybar launch
2024-06-30 14:52:49 +02:00
Austin Horstman
c08660d837
modules/hyprland/backend: handle empty json responses
...
Fixes https://github.com/Alexays/Waybar/issues/3388
2024-06-28 13:18:44 -05:00
Austin Horstman
f6482c36dc
hyprland: clangd cleanup
2024-06-28 13:06:14 -05:00
OpenSauce04
d68bcbd292
modules/battery: Deprioritize `capacity` /sys value
2024-06-23 14:39:41 +01:00
Caleb Maclennan
4126502fe8
Add debug information for keyboard layout selection
2024-06-23 00:02:48 +03:00
Austin Horstman
b114b1155c
treewide: clang-format
2024-06-15 18:44:46 -05:00
Austin Horstman
f9e693b2a2
modules/hyprland/backend: remove testing log warn
2024-06-15 18:37:25 -05:00
Austin Horstman
bac4d03813
modules/hyprland/workspaces: remove deprecated property
2024-06-15 18:34:45 -05:00
Lukas Fink
0df3c84c0f
Fix device list not being updated on selecting new bluetooth controller
2024-06-14 14:00:55 +02:00
Lukas Fink
ab91d0bac3
Add hotplug detection of bluetooth controllers
2024-06-14 02:24:24 +02:00
Alexis Rouillard
79a6229522
Merge pull request #3353 from locked-out/muted_icons
...
Support for muted icons for pulseaudio devices/ports
2024-06-13 08:47:53 +02:00
Alex
0bc43c1aa7
fix: lint
2024-06-12 23:08:27 +02:00
Alexis Rouillard
e8a2882796
Merge pull request #3320 from rtgiskard/dev
...
fix mpris: hide on current player vanished
2024-06-12 23:08:00 +02:00
Alexis Rouillard
b955e92276
Merge pull request #3244 from rtgiskard/fix.privacy
...
fix privacy: consider only configured modules
2024-06-12 23:07:51 +02:00
Oliver Locke
892042eb92
Support muted icons for pulseaudio devices/ports
2024-06-12 17:03:39 +10:00
giskard
1cd013a09b
clock: respect tooltip option
2024-06-10 17:31:00 +08:00
giskard
7721dcdae8
mpris: some clang-tidy fix
2024-06-10 17:31:00 +08:00
giskard
e8d91eb14b
mpris: hide on current player vanished
2024-06-10 17:31:00 +08:00
giskard
0773786766
privacy: consider only configured modules
...
along with the local clang-tidy warning fixes
2024-06-10 17:31:00 +08:00
Austin Horstman
08c5df3633
modules/sway/workspaces: clang-format fix
2024-06-09 13:05:47 -05:00
Austin Horstman
959422f143
modules/hyprland/backend: protect against crash when XDG_RUNTIME_DIR not set
2024-06-09 10:18:20 -05:00
Austin Horstman
fa2e21dfd5
modules/hyprland/backend: move getSocketFolder to class
2024-06-09 10:18:20 -05:00
Austin Horstman
0055ee6910
modules/hyprland/workspaces: remove unneccesary visibleWorkspaces variable
2024-06-07 13:56:49 -05:00
Peter Jones
637b220f82
sway/workspaces: Correct behavior when "current-only" is set
...
The `current-only` workspace setting should display only the active
workspace name as determined by its `focused` attribute. However,
according to the `get_tree` output, workspaces that contain a focused
window will report `"focused": false` and the window will report
`"focused": true.` In this case, Waybar will not display a workspace
name at all.
This change updates the logic for determining if a workspace is
focused by also looking for a focused window.
2024-06-06 15:29:33 -07:00
zspher
1b1442e3ba
fix: taskbar not applying empty class on empty
2024-06-06 03:23:47 +08:00
giskard
4fbd4f212a
privacy: consider only configured modules
...
along with the local clang-tidy warning fixes
2024-06-02 04:07:12 +08:00
Alexis Rouillard
9332697ec1
Merge pull request #3064 from alttabber/master
...
Hyprland/Workspaces: Added option to hide non-visible special workspaces
2024-05-29 10:23:26 +02:00
Austin Horstman
c5b5b64dfa
modules/temperature: remove unused import
2024-05-28 15:41:10 -05:00
Austin Horstman
24e8766aaa
hyprland/backend: use /tmp
...
Was hardcoded to /tmp in previous versions
2024-05-28 11:00:20 -05:00
alttabber
29e3d8c371
Hide non-visible special workspaces
2024-05-28 17:45:01 +02:00
Alexis Rouillard
d4413f5fa6
Merge pull request #3255 from LukashonakV/ISSUE#2240
...
Fix Clock. Tooltip calendar text overflows(#2240 )
2024-05-28 09:08:31 +02:00
Alexis Rouillard
af7945197e
Merge pull request #3260 from zjeffer/clang-tidy
...
clang-tidy fixes in the privacy module
2024-05-28 09:07:57 +02:00
Alexis Rouillard
ac2fa9870f
Merge pull request #3241 from rtgiskard/master
...
temperature: allow hwmon-path-abs as array
2024-05-27 09:03:08 +02:00
Austin Horstman
f5bb086460
hyprland/workspaces: sort methods
2024-05-24 14:41:59 -05:00
Austin Horstman
9ba9d57c8c
hyprland/windowcreationpayload: sort methods
2024-05-24 14:30:31 -05:00
Austin Horstman
82ae474002
hyprland/workspace: sort methods
2024-05-24 14:29:03 -05:00
Austin Horstman
56319a4705
hyprland/workspaces: break up implementations
2024-05-24 14:21:31 -05:00
Austin Horstman
d73051e980
hyprland/workspaces: break up doUpdate
2024-05-24 14:21:31 -05:00
Austin Horstman
9fe51af6b0
hyprland/workspaces: break up parseConfig
2024-05-24 14:21:31 -05:00
Viktar Lukashonak
60a613ae51
cava bump: 0.10.2
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2024-05-23 16:15:48 +03:00
yangyingchao
b8e68b0e63
(hyprland) fix crash when failed to parse IPC message
...
IPC messages are parsed in a dedicated thread, and the thread terminates when
an exception is not caught, which causes the waybar process to crash with
SIGABORT.
While this issue might be related to Hyprland, it is really annoying to see
waybar crash. It would be better to catch those exceptions and report errors
instead of crashing.
2024-05-22 12:52:01 +08:00
Viktar Lukashonak
5a1454ab31
Cava. $XDG_CONFIG_HOME validation
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2024-05-18 11:28:10 +03:00
Viktar Lukashonak
b288fdf8c1
ISSUE#2240. Clock Gtk::Label as a calendar tooltip
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2024-05-17 20:17:33 +03:00
Lasse Luttermann
d2a719d67c
Redo to minimize code duplication.
2024-05-16 12:37:53 +02:00
Lasse Luttermann
28ef5b7db2
Fix formatting
2024-05-14 10:21:24 +02:00
Lasse Luttermann
6413f25b8d
Add config option to select UPower device based on device model.
2024-05-14 10:13:22 +02:00
Lasse Luttermann
3c075bcc53
Fixed formatting
2024-05-14 08:26:44 +02:00
Lasse Luttermann
ba8a88acfb
Do not try to compare a string that may be a null-pointer
2024-05-14 08:16:10 +02:00
zjeffer
e27488b48c
clang-tidy improvements in privacy module
2024-05-11 16:19:46 +02:00
Viktar Lukashonak
5fe99ea0e1
Upower. Fix segmentation fault
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2024-05-10 00:00:47 +03:00
giskard
e298bf922f
temperature: allow hwmon-path-abs as array
2024-05-08 23:55:51 +08:00
ViktarL
2ead1bbf84
Upower refactoring ( #3220 )
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com>
2024-05-07 10:29:52 +02:00
Tuur Vanhoutte
29917fb073
Fix hyprland/language events not working with keyboard names with commas in them ( #3224 )
2024-05-07 08:26:05 +02:00
Eldar Yusupov
df1a9c5509
Remove listener when window is destroyed ( #3215 )
2024-05-06 10:51:14 +02:00
Lars-Ragnar A. Haugen
a453ea3c70
fix( #3210 ): tooltip-format on custom modules not working in some cases ( #3213 )
2024-05-06 10:47:52 +02:00
Lars-Ragnar A. Haugen
8e8ce0c6bc
feat( #3182 ): style tray icon on hover ( #3203 )
2024-05-06 10:47:25 +02:00
Tuur Vanhoutte
f41458ea24
Fix Hyprland socketpath changed to XDG_RUNTIME_DIR ( #3183 )
2024-04-29 19:46:28 +02:00
Kiri
a2c5a8215b
style(battery): Capitalize float 'F' suffix
2024-04-24 15:07:26 +02:00
Kiri
57197b8e01
feat(battery): Also support energy_full (instead of charge_full)
2024-04-24 14:57:11 +02:00
Kiri
5c4e368819
style(battery): Indent level
...
It's now *inconsistent* in the file, but clang-tidy should be happy, sooo...
2024-04-24 09:05:11 +00:00
Kiri
8d962430dd
fix(battery): Remove duplicate line
...
This is what happens when you copy-paste from GitHub actions
2024-04-24 09:02:03 +00:00
Kiri
54a85ea15f
style: Apply clang-format change
...
At least I hope I copy-pased it correctly
2024-04-24 08:56:24 +00:00
Kiri
efa7dc7ba4
fix(battery): Register health replacement for main format
2024-04-24 10:34:35 +02:00
drendog
2123995b03
fix: update clock tooltip without placeholders scenario
2024-04-21 18:02:26 +02:00
Alex
937bf2ba5d
fix: lint
2024-04-19 06:21:10 +02:00
Alexis Rouillard
77df0c3e3b
Merge pull request #3147 from joesri/joesri-patch-1-custom
...
Escape tooltip in custom module
2024-04-19 06:20:45 +02:00
vawvaw
f75b2ae91f
sway/workspaces: Fix scroll on unfocused monitor
2024-04-18 22:56:49 +02:00
joesri
2673a5a4f1
Escape tooltip in custom module
2024-04-18 14:17:30 +00:00
Alex
8ef4ddd7ef
fix: lint
2024-04-18 08:34:02 +02:00
Alexis Rouillard
f26efae569
Merge pull request #3130 from kiriDevs/kiridevs/battery-cycles
...
battery: Add {cycles}, {health} format replacements
2024-04-18 08:33:17 +02:00
Kiri
67bf98a93e
style: Change more var names to camelCase
2024-04-17 14:46:35 +02:00
Alexis Rouillard
dd092a5fc1
Merge pull request #3143 from tomben13/fix_workspaces
...
Fixes for hyprland/workspaces
2024-04-17 08:28:00 +02:00
Alexis Rouillard
3efebc2822
Merge pull request #3142 from janpeterd/master
...
calendar: add shift_reset action
2024-04-15 22:18:17 +02:00
Jan-Peter Dhallé
fb88c06d78
calendar: add shift_reset action
2024-04-15 21:59:35 +02:00
Raphael Nestler
133dfc2e85
Remove unused variable in Workspaces::updateWindows
2024-04-15 13:50:41 +02:00
Kiri
3d54a6002d
style: Remove superfluous 'const' on getInfo()
...
was here before, but is an easy fix for a clang-tidy warning
2024-04-13 13:19:54 +02:00
Kiri
da47c94480
fix: Also use camelCase for usages of new vars
2024-04-13 13:18:50 +02:00
Kiri
986b348bc7
style: Change new variables to camelCase
2024-04-13 13:11:14 +02:00
Kiri
421ba6e31a
fix: Add dummy information for battery cycles,health on FreeBSD
2024-04-12 18:48:54 +02:00
Tom Benham
084b561d5b
[hyprland/workspaces] Update window count and sort workspaces AFTER their creation
2024-04-12 11:40:05 +02:00
Tom Benham
cd3d588abd
[hyprland/workspaces] Fix active workspace not getting updated on multi monitor setups
2024-04-12 11:33:29 +02:00
Kiri
24690248db
fix: Calculate battery health the right way around
...
I even did this originally, then got confused when my battery in particular showed 102% and, instead of checking the values I calculate with, just decided to do the stupid thing and do maths the wrong around
2024-04-11 02:40:04 +02:00
Kiri
805faa47e6
style: Remove debug output
...
Oops
2024-04-10 18:48:03 +02:00
Kiri
a59593fde1
feat(battery): Add {health} format replacement
2024-04-10 18:19:55 +02:00
Kiri
7f1e623f77
style: Refactor battery cycle count choosing
2024-04-10 17:30:47 +02:00
Kiri
43511992d9
feat(battery): Add {cycles} format replacement
2024-04-10 17:00:50 +02:00
Alex
a9088c7e7d
fix: lint
2024-04-10 10:20:21 +02:00
Hristo Venev
f68ac9119a
Use $TZ for local time if it is set
...
libstdc++ doesn't.
2024-04-09 23:27:36 +03:00
Bruce Mills
245043f9e7
taskbar: search user directories first for desktop files
2024-04-01 14:30:31 -04:00
kvark
9b4fc6d16b
fix(sway/workspaces): floating_nodes and focused icon
...
Floating nodes are not taken into account for visible and empty workspaces
And fix focused icon (#3095 )
2024-03-31 21:53:56 +07:00
Kuruyia
fe15530f34
refactor(privacy): clean up the module
2024-03-25 20:16:47 +01:00
Alexis Rouillard
b652b4296d
Merge pull request #3066 from MauroGuida/master
...
fix(sway/workspaces): Visible class doesn't work on visible and empty workspaces
2024-03-25 19:03:06 +01:00
encbar5
abd7ca2a1e
Fix clock on-scroll value not being used for calendar, which was broken by 86a3898
2024-03-24 10:37:31 -05:00
Mauro Guida
7cd2a6c003
fix(sway/workspaces): Visible class doesn't work on visible and empty workspaces
2024-03-23 13:02:39 +01:00
Alexis Rouillard
cc084f5f86
Merge pull request #3028 from bartelsielski/upower-warning_level
...
Upower warning level
2024-03-22 23:22:56 +01:00
Alex
19f3ce6f85
fix: lint
2024-03-22 23:21:57 +01:00
Alexis Rouillard
32e241dc47
Merge pull request #2917 from alttabber/master
...
Add always on option for hyprland/submap
2024-03-22 23:21:17 +01:00
Alexis Rouillard
c4907a6065
Merge pull request #3005 from eyusupov/dwl-title
...
Add dwl/window module
2024-03-22 23:20:26 +01:00
Alexis Rouillard
e30ddda23a
Merge pull request #2987 from tomben13/master
...
[hyprland/workspaces] New options to change on click behaviour and active workspace status
2024-03-22 23:16:57 +01:00
Alexis Rouillard
38634a0ca8
Merge pull request #3034 from wispl/master
...
Add empty workspace style for Sway
2024-03-22 23:13:29 +01:00
Alex
fe0716bf39
fix: lint
2024-03-22 23:13:10 +01:00
Alexis Rouillard
9d95eaaac4
Merge pull request #2919 from tokyovigilante/wireplumber-0.5
...
Update Wireplumber API to 0.5
2024-03-22 23:12:07 +01:00
Ryan Walklin
2326727ccb
Update Wireplumber API to 0.5
...
The WP component loader API has changed to be asynchronous, so implement a (GAsyncReadyCallback)-based loader to manage them. Logging integration change was required for 0.5.0 RCs but not for the 0.5.0 release.
Fix clang-tidy and clang-format warnings. Note these are significantly wider than the changes for 0.5.0 so optional beyond the existing patchset.
2024-03-21 13:37:03 +13:00
Mauro Guida
c841bf567b
fix(sway/workspaces): visible class doesn't work
2024-03-20 15:03:25 +01:00
Mauro Guida
6d690ad48b
fix(wlr/taskbar): crash on taskbar drag and drop event
2024-03-20 13:28:35 +01:00
Alexis Rouillard
b9688eb067
Merge pull request #3032 from leiserfg/ppd-right-click
...
Make right-click to circle down ppd
2024-03-20 10:34:10 +01:00
wispl
cf3389e5d7
Add empty workspace style for Sway
2024-03-19 22:56:20 -04:00
Alexis Rouillard
cbe42a8536
Merge pull request #3037 from grimpy/fixperistentclass
...
Fix peristent class on buttons
2024-03-19 22:56:37 +01:00
hrdl
856a34e16d
Also consider floating nodes when checking for flags
...
Fixes #3030
2024-03-19 11:53:04 +01:00
Jo De Boeck
2ffd9a94a5
Fix peristent class on buttons
...
Fixes : #3009
Signed-off-by: Jo De Boeck <deboeck.jo@gmail.com>
2024-03-19 08:22:33 +02:00
leiserfg
67218d5554
Make right-click to circle down ppd
2024-03-18 21:49:40 +01:00
Bartel Sielski
bbb69bd977
upower: Initialize variables
...
There are code paths in which some of these variables were used but not
initialized, causing undefined behavior.
2024-03-18 20:38:50 +01:00
Bartel Sielski
bd8b215416
upower: Add 'low' and 'critical' CSS classes
...
Add secondary CSS class based on the 'warning_level' field reported by UPower
over D-Bus. This makes it possible to add custom styling when the battery is
near empty.
2024-03-18 20:36:46 +01:00
Tom Benham
736309ef1f
Fixed segfault
2024-03-17 23:00:48 +01:00
Alexis Rouillard
ca17bdb214
Merge pull request #2968 from jramrath/hyprland_workspaces_monitor_class
...
Hyprland workspaces `hosting-monitor` css class
2024-03-17 13:06:50 +01:00
Jannik
f014a7d2e5
man docs & different css class name
2024-03-16 21:22:01 +01:00
DreamMaoMao
c5a6299398
fix:dwl tag crash when use wlr-randr enable monitor
2024-03-16 20:10:05 +08:00
Nicola Revelant
01ff7ebb36
Fix clang-format to src/modules/temperature.cpp
2024-03-15 17:12:31 +01:00
Nicola Revelant
fbf66530a3
Explicit convert from std::string to const char*
2024-03-15 16:52:52 +01:00
Nicola Revelant
e1f876b981
Fix fmt::format: missing argument
2024-03-15 16:36:54 +01:00
Nicola Revelant
2d12236726
Use the correct thermal zone in FreeBSD
2024-03-15 16:09:18 +01:00
Aleksei Bavshin
dcddddd3f1
fix(power-profiles-daemon): correctly set initial visibility
...
The bus error when the daemon is not reachable prevents the initial
update and keeps the module visible, as an empty section on the bar.
Do the update explicitly before connecting to set initial visibility.
While we at it, remove a couple of redundant `update()` calls.
2024-03-14 20:47:07 -07:00
Eldar Yusupov
17734f0364
Add dwl/window module
2024-03-14 23:51:46 +03: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
Tom Benham
68889494d0
Removed option `active-per-monitor`
2024-03-05 11:12:46 +01:00
Alessio Molinari
ea4b95fdd2
Fix: move init gdbusproxy after proxy_device_bat nullcheck
...
Co-authored-by: Alexis Rouillard <alexisr245@gmail.com>
2024-03-04 16:34:45 +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
Tom Benham
df7f1fffcf
feat(hyprland/workspaces): added options `move-to-monitor` and `active-per-monitor`
2024-03-04 13:17:52 +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
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é
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é
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
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
Félix Baylac Jacqué
162b41c4d0
modules/power-profiles-daemon: apply clang-tidy suggestions
2024-02-29 21:46:27 +01:00
alttabber
d9abc080e1
Fix merge conflict with #2930
2024-02-28 22:52:08 +01: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
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
c59bb509bd
fix: hide icon if window is unfocused
2024-02-26 21:00:16 +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
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
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
Jannik
9bc8de8876
fix clang complaints
2024-02-25 13:46:49 +01:00
zjeffer
42f4386e2e
fix clang-tidy errors in hyprland module
2024-02-25 12:11:22 +01:00
Jannik
4cc2800a78
add 'onThisMonitor' css class
2024-02-25 00:52:33 +01:00
Jannik
16079eae09
update m_output
2024-02-25 00:51:52 +01: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
aokblast
514d00803c
feat: implement cpufreq for bsd by sysctl
2024-02-22 04:47:09 +08: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
Alex
a45932973a
fix: lint
2024-02-20 11:33:41 +01: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
Alexis Rouillard
197bc6a877
Merge pull request #2938 from thejch/click-special
2024-02-20 08:03:16 +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
Jeremy Huang
4a5444d196
fix click special
2024-02-19 16:16:46 -08:00
Alexis Rouillard
ee2407496f
Revert "Implement windows formating in sway/workspaces"
2024-02-19 23:28:08 +01:00
Alexis Rouillard
742cd7f371
Revert "Add style class for CPU state"
2024-02-19 23:10:10 +01: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
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
Tom Benham
745d5687b8
Fixed window#waybar.swallowing for module hyprland/window
2024-02-19 22:23:03 +01:00
zjeffer
11310b89f0
hyprland/workspaces: Use hyprland's persistent workspaces configuration
2024-02-18 16:04:47 +01: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
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
alttabber
9ea470410f
Add always on option for hyprland/submap
2024-02-13 17:02:14 +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
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
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
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
Alessio Molinari
d831a45622
fix: restore signature
2024-02-04 18:01:26 +01:00
Alessio Molinari
2de8a83d84
feat: fetch battery percentage from upower if not found from bluez
2024-02-04 17:20:45 +01:00
Josh Jones
1fa1045af9
remove duplicated segment
2024-02-04 16:11:39 +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
Alex
fb6658e8fd
chore: lint
2024-01-30 09:07:37 +01:00
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
Arnesh Roychowdhury
90b5b21394
Merge branch 'Alexays:master' into master
2024-01-24 02:01:17 +05:30
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
53233e47a3
Fix use after free on task close
2024-01-21 19:08:23 -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
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
Joshua Manchester
95ffc291f6
fix: hide tray event box instead of box
2024-01-14 15:06:06 +00: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
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
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
Arnesh Roychowdhury
f1f3442e38
Merge branch 'Alexays:master' into master
2024-01-08 22:54:08 +05:30
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
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
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
Alan Vannereau
49caab47a6
Fix wireplumber reverse-scroll option
2023-12-22 11:50:41 +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
Rice8Dyb6
4822f967b2
Sway/workspaces: fix persistent icon
2023-12-11 00:17:35 +07:00
zjeffer
4d5b715dc4
applied clang-tidy suggestions for hyprland workspaces
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
Austin Horstman
b1744278d1
chore: lint fix
2023-12-01 22:05:40 -06: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
Jeremy Huang
0162dbd485
add button single click check to hyprland workspaces
2023-11-27 16:20:05 -08: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
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
fdev31
375a38a489
Fix for #2646
2023-11-14 21:26:17 +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
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
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
Lukas Hannen
aa1f8a428b
avoid converting to local_time when converting to zoned_time afterwards
2023-11-06 01:28:48 +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
André Silva
8555456050
hyprland/workspaces: fix crash on monitor off/on
2023-11-01 22:04:19 +00:00
akliuxingyuan
335a736eed
tray: load_icon use request_size directly
2023-11-01 22:26:52 +08: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
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
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
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
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
Tamino Bauknecht
7d8c1494d7
cpu_usage: Fix ScopeGuard renaming in bsd-only file
2023-10-26 17:30:48 +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
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
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
9ecdbcc7bc
Merge pull request #2596 from rehanzo/master
2023-10-22 09:46:35 +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
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
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
a73669be6a
modules/upower: use smart pointer to avoid memory leak
2023-10-21 11:50:28 +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
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
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
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
ee652677a6
feat: ignore windows with empty classes or titles (if any rule uses title)
2023-10-11 11:40:49 -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
f9a7ecf3a9
feat: optimize cache usage when window titles aren't involved
2023-10-09 14:49:38 -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
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
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
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
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
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