Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[env]
MACOSX_DEPLOYMENT_TARGET = "10.15"
68 changes: 8 additions & 60 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,62 +1,10 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
target/
debug/

## User settings
xcuserdata/
**/*.rs.bk
**/mutants.out*/
rustc-ice-*.txt
*.pdb

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output
.DS_Store
.idea/
16 changes: 16 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "netcaps"
version = "1.6.1"
edition = "2024"
description = "A network activity light on your Caps Lock key"
license = "MIT"
repository = "https://github.com/forcequitOS/netcaps"

[dependencies]
libc = "0.2"

[profile.release]
codegen-units = 1
lto = true
strip = true
16 changes: 0 additions & 16 deletions Package.swift

This file was deleted.

9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ brew install forcequitOS/brew/netcaps

It couldn't get much simpler than this.

### Build From Source
```
cargo build --release --locked
```

---
### Run At Startup
**Globally:**
Expand All @@ -30,7 +35,7 @@ It couldn't get much simpler than this.
And you're off to the races!

>[!NOTE]
All functionality of your Caps Lock key is 100% preserved with netcaps. Also, netcaps is proudly written in Swift. Yay.
All functionality of your Caps Lock key is 100% preserved with netcaps. Also, netcaps is proudly written in Rust. Yay.

>[!WARNING]
I don't know if this will impact your battery life or if it'll kill your Caps Lock key LED over time. Your mileage may vary. I'm not responsible if this somehow blows up your computer, but it probably shouldn't.
Expand Down Expand Up @@ -69,4 +74,4 @@ Want to monitor disk activity instead of network activity? Check out the sister

--utun-only, -U - only listen on utunX

That really. Is about it. Have fun.
That really. Is about it. Have fun.
Loading