Commit graph

59 commits

Author SHA1 Message Date
Fred
8320b54074
fix wired speed detection and layout (#1156)
* fix wired speed detection and layout

* show 2.5 Gbps and 2.5 Tbps interface with decimal values
2025-11-13 16:34:42 -07:00
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
Cheong Lau
5369b4eb29
perf: use rustc-hash for HashMap and HashSet 2025-10-22 04:33:30 +02: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
7876fd1b36
fix(network): reversed ordering of networks 2025-10-07 22:52:31 +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
mkljczk
82ca8bab37
feat: display WPS hint only when WPS is available 2025-02-10 13:16:33 +01: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
Vukašin Vojinović
0640e88412 chore: merge imports 2024-07-09 16:26:27 +02: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
Michael Aaron Murphy
32229c16f0
chore(cargo): replace log dependency with tracing 2024-03-25 15:33:22 -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
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
b472a155fc remove redundant clones 2023-11-16 15:47:20 -05:00
daniel.eades
6f48241613 remove redundant field names 2023-11-16 15:47:20 -05:00
daniel.eades
51d270bc91 use 'into_values' 2023-11-16 15:47:20 -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
ed2ab8d91a update deps and cleanup 2023-11-13 12:41:37 -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
a423aaa27a
refactor: Vec::with_capacity where possible 2023-01-10 17:29:19 -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