Skip to content

Commit

Permalink
replace more migrated utf code FA icon defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna-f1sh committed Jun 25, 2024
1 parent acd9ffa commit 8455975
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@

- Full dumps of device descriptors for matching `--lsusb --verbose` ([#15](https://github.com/tuna-f1sh/cyme/issues/15))

## [1.7.0] - 2024-25-06

### Changed

- Replace [udev-rs](https://github.com/Smithay/udev-rs) and indirectly libudev-sys with Rust native [udev](https://github.com/cr8t/udev); libudev dependency (and system requirement) is now optional but can be used with `--no-default-features -F=udevlib`. ([#19](https://github.com/tuna-f1sh/cyme/pull/19))

### Fixes

- Replace more font-awesome icons in default look-up that have been deprecated ([#20](https://github.com/tuna-f1sh/cyme/issues/20))

## [1.6.1] - 2024-13-06

### Fixes
Expand Down
4 changes: 2 additions & 2 deletions doc/cyme.1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.TH cyme 1 "cyme 1.6.0"
.TH cyme 1 "cyme 1.7.0"
.SH NAME
cyme \- List system USB buses and devices; a modern cross\-platform `lsusb`
.SH SYNOPSIS
Expand Down Expand Up @@ -399,6 +399,6 @@ Print help (see a summary with \*(Aq\-h\*(Aq)
\fB\-V\fR, \fB\-\-version\fR
Print version
.SH VERSION
v1.6.0
v1.7.0
.SH AUTHORS
John Whittington <john@jbrengineering.co.uk>
4 changes: 2 additions & 2 deletions src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1634,8 +1634,8 @@ fn attributes_to_icons(attributes: &Vec<ConfigAttributes>, settings: &PrintSetti
if settings.icons.is_some() {
for a in attributes {
match a {
ConfigAttributes::SelfPowered => icon_strs.push("\u{fba4}"), //
ConfigAttributes::RemoteWakeup => icon_strs.push("\u{f654}"), //
ConfigAttributes::SelfPowered => icon_strs.push("\u{f06a5}"), // 󰚥
ConfigAttributes::RemoteWakeup => icon_strs.push("\u{f0155}"), // 󰅕
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions src/icon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ lazy_static! {
(Icon::UnknownVendor, "\u{f287}"), // usb plug default 
(Icon::Vid(0x05ac), "\u{f179}"), // apple 
(Icon::Vid(0x8086), "\u{f179}"), // apple bus 
(Icon::Vid(0x045e), "\u{f871}"), // microsoft
(Icon::Vid(0x045e), "\u{f0372}"), // microsoft 󰍲
(Icon::Vid(0x18d1), "\u{f1a0}"), // google 
(Icon::Vid(0x1D6B), "\u{f17c}"), // linux foundation 
(Icon::Vid(0x1d50), "\u{e771}"), // open source VID 
(Icon::VidPid((0x1915, 0x520c)), "\u{f00a3}"), // specialized 󰂣
(Icon::VidPid((0x1915, 0x520d)), "\u{f00a3}"), // specialized 󰂣
(Icon::VidPid((0x0483, 0x572B)), "\u{f00a3}"), // specialized 󰂣
(Icon::Vid(0x046d), "\u{f87c}"), // logitech
(Icon::Vid(0x046d), "\u{f037d}"), // logitech 󰍽
(Icon::Vid(0x091e), "\u{e2a6}"), // garmin 
(Icon::VidPid((0x1d50, 0x6018)), "\u{f188}"), // black magic probe 
(Icon::Vid(0x1366), "\u{f188}"), // segger 
Expand All @@ -261,30 +261,30 @@ lazy_static! {
(Icon::Vid(0x0483), "\u{f2db}"), // stm 
(Icon::Vid(0x1915), "\u{f2db}"), // nordic 
(Icon::Vid(0x1fc9), "\u{f2db}"), // nxp 
(Icon::Vid(0x1050), "\u{f805}"), // yubikey
(Icon::Vid(0x1050), "\u{f084}"), // yubikey
(Icon::VidPid((0x18D1, 0x2D05)), "\u{e70e}"), // android dev 
(Icon::VidPid((0x18D1, 0xd00d)), "\u{e70e}"), // android 
(Icon::VidPid((0x1d50, 0x606f)), "\u{f191d}"), // candlelight_fw gs_can 󱤝
(Icon::VidPidMsb((0x043e, 0x9a)), "\u{f878}"), // lg monitor
(Icon::VidPid((0x0781, 0xf7c9)), "\u{f878}"), // sandisk external disk
(Icon::VidPidMsb((0x043e, 0x9a)), "\u{f0379}"), // lg monitor 󰍹
(Icon::VidPid((0x0781, 0xf7c9)), "\u{f02ca}"), // sandisk external disk 󰋊
(Icon::Classifier(ClassCode::Audio), "\u{f001}"), // 
(Icon::Classifier(ClassCode::Image), "\u{f03e}"), // 
(Icon::Classifier(ClassCode::Video), "\u{f03d}"), // 
(Icon::Classifier(ClassCode::Printer), "\u{f02f}"), // 
// (Icon::Classifier(ClassCode::MassStorage), "\u{fc05}".into()),
(Icon::Classifier(ClassCode::Hub), "\u{f126}"), // 
(Icon::Classifier(ClassCode::ContentSecurity), "\u{f805}"), //
(Icon::Classifier(ClassCode::SmartCart), "\u{f805}"), //
(Icon::Classifier(ClassCode::ContentSecurity), "\u{f084}"), //
(Icon::Classifier(ClassCode::SmartCart), "\u{f084}"), //
(Icon::Classifier(ClassCode::PersonalHealthcare), "\u{f21e}"), // 
(Icon::Classifier(ClassCode::AudioVideo), "\u{fd3f}"), // ﴿
(Icon::Classifier(ClassCode::AudioVideo), "\u{f0841}"), // 󰡁
(Icon::Classifier(ClassCode::Billboard), "\u{f05a}"), // 
(Icon::Classifier(ClassCode::I3CDevice), "\u{f493}"), // 
(Icon::Classifier(ClassCode::Diagnostic), "\u{f489}"), // 
(Icon::Classifier(ClassCode::WirelessController), "\u{f1eb}"), // 
(Icon::Classifier(ClassCode::Miscellaneous), "\u{f074}"), // 
(Icon::Classifier(ClassCode::CDCCommunications), "\u{e795}"), // serial 
(Icon::Classifier(ClassCode::CDCData), "\u{e795}"), // serial 
(Icon::Classifier(ClassCode::HID), "\u{f80b}"), //
(Icon::Classifier(ClassCode::HID), "\u{f030c}"), // 󰌌
(Icon::UndefinedClassifier, "\u{2636}"), //☶
])
};
Expand Down

0 comments on commit 8455975

Please sign in to comment.