Commit graph

23 commits

Author SHA1 Message Date
Michael Aaron Murphy
8527257ddd chore: add SPDX license identifiers 2024-05-06 21:56:50 +02:00
Ian Douglas Scott
216d88e977 audio: Mpris media control fixes
The panel buttons for next/previous didn't do anything since `on_press`
wasn't set. Now they work.

Fixed `autosize` which I had accidentally committed after using it for
testing. (It would be good to figure out why the applets don't work
properly with autosize when run outside of the panel, since that's handy
for testing.)

I noticed with VLC, skipping a track makes the media controls disappear
very briefly, and sometimes the pause button didn't return. I guess
`can_play` (etc.) are temporarily set to false, probably expecting the
controls to be greyed out and not hidden from a panel. Anyway,
monitoring for changes to these properties as well will hopefully fix
the part where it could remain missing. Though I can't reproduce that
consistently.
2024-04-05 16:31:01 -06:00
Ian Douglas Scott
fbd1489c7b audio: Set source/sink mute state
Setting the volume to a non-zero value will unmute the source or sink,
and setting it to zero will mute it. This matches the behavior on Gnome.
2024-04-04 13:25:16 +02:00
Michael Aaron Murphy
ed335b256a chore: migrate volume change sound to cosmic-osd 2024-04-02 23:29:17 +02:00
Michael Aaron Murphy
847db3a4f2 feat(audio): play audio-volume-change sound on volume change 2024-02-06 16:21:48 -05:00
Ashley Wulber
d4e0dd8fb8 fix: make all subscriptions resistant to being restarted
many of the errors we've been seeing the last few days are because of subscriptions which are restarting
2024-01-18 23:16:17 -05:00
Ashley Wulber
ebe688c747 chore: use dbus config subscription for app list 2024-01-18 23:16:17 -05:00
Ashley Wulber
ea1db02280 fix: log errors when sending fails instead of panic 2024-01-17 09:46:41 -07:00
daniel.eades
aa2d9fe374 add linting CI jobs 2023-11-21 16:59:14 -05:00
daniel.eades
b9723dd5e0 use 'Self' to refer to own type 2023-11-16 15:47:20 -05:00
daniel.eades
a88cbad37f remove needless mutable references 2023-11-16 15:47:20 -05:00
daniel.eades
6cb69bc63b remove redundant pattern matching 2023-11-16 15:47:20 -05:00
Ashley Wulber
eef73793bf refactor(audio): update the connection after it has disconnected or been initialized 2023-10-31 11:40:23 -04:00
Ashley Wulber
557a43517d feat: mpris support for audio applet 2023-10-24 15:34:21 -04:00
Ashley Wulber
1074f3f49b refactor(audio) use channel subscription 2023-08-02 12:35:26 -06:00
Ashley Wulber
9ebd9b511a
wip: update libcosmic (#93)
* wip: update libcosmic

* fix: damge issue resolved by updating iced

* fix: high cpu usage by time applet and app-list

* refactor subscriptions to produce fewer events

* refactor network applet to use less cpu

* fix: text size

* refactor: i18n for audio applet

* refactor: power applet i18n setup

* fix (battery): always send profile update

* fix (battery): set toggler width to layout correctly

* fix (app-list): backoff for restarts of toplevel subscription

* fix (network): alignment

* feat: ask for comfirmation before applying power applet actions

* wip: integrate cosmic-config

* update zbus

* feat: update to use latest libcosmic

* update iced

* udpate deps

* update deps

* refactor: move applet helpers to this repo, outside of libcosmic.

this should help alleviate some dependency hell

* chore update deps

* update deps

* cleanup
2023-06-01 12:23:12 -04:00
Ashley Wulber
56ac958de7 fix(audio): panic when messages arrive without a connection 2023-03-14 11:55:16 -04:00
Ashley Wulber
58694c8735 chore(audio): more log statements in the UpdateConnection handler 2023-03-14 11:55:16 -04:00
Ashley Wulber
92bacfdf0b feat(audio): allow switching input/output and update outputs/inputs when the popup or revealer is toggled 2023-02-16 18:07:58 -05:00
Ashley Wulber
a76353981f feat: update pulse connection every time the audio applet popup is opened 2023-01-31 16:11:45 -05:00
Ian Douglas Scott
b9a2655210 audio: Fix clippy lints 2023-01-05 09:55:44 -08:00
Ashley Wulber
a1aa87f5bd refactor: move projects into a workspace 2022-12-23 16:14:55 -05:00
13r0ck
a682b8deb0 Move Cosmic Applets into new Dir & remove old applets 2022-12-23 16:14:55 -05:00
Renamed from applets/cosmic-applet-audio/src/pulse.rs (Browse further)