Commit graph

44 commits

Author SHA1 Message Date
Cheong Lau
3835133af1 fix (network): reversed order of WAPs
Don't use `sort_by_key` when wanting a descending order search...
2025-10-22 10:08:15 -04:00
Vukašin Vojinović
02fb6e145a cargo fmt 2025-10-08 12:30:43 -04:00
Tomas Hlavacek
6a7fa04067
feat(network): add VPN connection management 2025-10-08 16:37:21 +02:00
Cheong Lau
38c037c977 perf: use unstable sorting when async
Unstable sorting should be slightly faster than stable sorting, and if
the vector was built asynchronously then preserving the initial order
doesn't matter too much.

Continue to use stable sorting where the vector is not built
asynchronously, or if the vector is partially sorted (e.g. when new
elements are pushed to a sorted vector).
2025-10-07 17:04:51 +02:00
Cheong Lau
dd0158d8f0 perf: refactor to reduce memory allocations and cpu work 2025-10-07 17:04:51 +02:00
Cheong Lau
8e0f1c4a09
chore: apply recommendations from clippy 2025-10-04 02:51:18 +02:00
Vukašin Vojinović
2b7b4cba56 chore: update to Rust 2024 edition 2025-08-18 16:44:50 +02:00
Ian Douglas Scott
d3ef5b181b Fix calls to rfkill on distros that put in in sbin
This makes the network applet work on Debian, for instance.

It may be better to directly use `/dev/rfkill`, but this improves things
for now.
2025-08-01 20:38:23 -07:00
Lampan-git
114f849143 fix(wifi): reconnect issue 2025-07-08 16:56:33 +02:00
Ashley Wulber
31afd3fa8b feat(network): support for eap peap networks 2025-04-18 12:21:16 -04:00
Ashley Wulber
e7f24828f1 fix(network): skip connections if getting settings fails 2025-04-16 10:49:26 -04:00
András
9f9bb9c673 Cleaned up code a bit 2024-12-31 17:08:37 +01:00
András
95abfcab27 Fixed connecting and disconnecting to wrong hw_device 2024-12-31 17:08:37 +01:00
András
2198fa9b9a Added comparing hw_address everywhere 2024-12-31 17:08:37 +01:00
András
b743c724ff Added UI for several wifi adapters 2024-12-31 17:08:37 +01:00
Ashley Wulber
5b5cd77e7c update iced 2024-10-31 17:52:33 -04:00
Ian Douglas Scott
b0e4e6fc6d Remove unused imports 2024-07-28 20:25:23 -07:00
Ashley Wulber
d1a6e089b4
fix: allow network resets
also updates libcosmic and cosmic-protocolss, and adds clipboard support to the network applet
2024-06-13 19:45:37 -04:00
Ashley Wulber
87250b5e50 zbus update 2024-05-18 01:38:41 +02:00
Ashley Wulber
fd5be28bea fix: use path for active connection after creating and connecting & cleanup 2024-04-17 06:28:57 +02:00
Ashley Wulber
db47edf9b6 fix(network): add connection if it doesn't exist when it is selected 2024-04-16 21:24:02 +02:00
Ashley Wulber
4510e81f6f
fix: better handling of request results in the network applet 2024-03-25 15:33:30 -06:00
Ashley Wulber
e6ec592cb0 fix(network): open a browser when connection is behind a captive portal 2024-02-02 16:27:11 -05:00
daniel.eades
03bb6ea3be collapse nested 'if' statements 2023-11-16 15:47:20 -05:00
daniel.eades
3d81eb874f remove redundant closures 2023-11-16 15:47:20 -05:00
daniel.eades
6cb69bc63b remove redundant pattern matching 2023-11-16 15:47:20 -05:00
daniel.eades
12ef9ce993 remove useless conversions 2023-11-16 15:47:20 -05:00
daniel.eades
41b88532c9 remove needless borrows 2023-11-16 15:47:20 -05:00
Ashley Wulber
a9b82222c4 refactor(network): update the icon name for disconnected state, and improve subscriptions 2023-11-01 19:14:44 -04:00
Ashley Wulber
3ad64df5f3
Refactor icons jammy (#108)
* chore: add icons and installation

* refactor: use the new battery icons

* refactor: use audio applet icons

* chore dependency cleanup

* chore: remove icons included in cosmic-icons package

* refactor: use icons for signal strength and fix handling of new connections

* fix: improve some logic for the networking applet

* chore: add cosmic-icons to Depends

* feat: use notifications icons

* chore: set bluetooth icon depending on state

* fix: set default font and text size

* feat (network): add airplane-mode message

* feat (battery): add display icons to the battery applet

* fix (battery): logic for selecting the battery icon & use new battery icons
2023-08-08 16:18:12 -04:00
Ashley Wulber
4b9f46b388 refactor(network): use channel subscriptions 2023-07-10 20:11:04 -04:00
Ashley Wulber
fad3b097d9 fix(network): better handle disconnect 2023-07-10 20:11:04 -04:00
Brock
3ec06bef80
Init Animations: animate toggler widgets (#96) 2023-06-07 13:43:49 -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
a5fe9e8d77
feat(network): improve state handling & add disconnect option 2023-02-14 20:08:10 -05:00
Ashley Wulber
4b5cc64e30
fix: longer timeouts & cleanup 2023-01-10 14:56:16 -05:00
Ashley Wulber
d35732d120
refactor nm state 2023-01-10 14:56:15 -05:00
Ashley Wulber
e43fe95b99
fix: use timeouts 2023-01-10 14:53:27 -05:00
Ashley Wulber
6b5ce0f35f
wip: handle state after activating connections 2023-01-10 14:53:27 -05:00
Ashley Wulber
cdca1d96ac
feat: select access point 2023-01-10 14:53:26 -05:00
Ashley Wulber
d377e8055c
feat: handle passwords 2023-01-10 14:53:26 -05:00
Ashley Wulber
833e68d63b
refactor: simplify state updates from network manager subscription 2023-01-10 14:53:25 -05:00
Ashley Wulber
c10087a55d
feat: more improvements to network applet 2023-01-10 14:53:25 -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-network/src/network_manager/mod.rs (Browse further)