Skip to content

Commit 29c47e4

Browse files
authored
Merge pull request #6 from unsecretised/configuration-files
Configuration files... WOOOHOOOO!!!
2 parents c8beff3 + 7e8ce82 commit 29c47e4

10 files changed

Lines changed: 670 additions & 253 deletions

File tree

Cargo.lock

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ objc2 = "0.6.3"
1414
objc2-app-kit = "0.3.2"
1515
objc2-foundation = "0.3.2"
1616
rand = "0.9.2"
17+
serde = { version = "1.0.228", features = ["derive"] }
1718
tokio = { version = "1.48.0", features = ["full"] }
19+
toml = "0.9.8"
1820

1921
[package.metadata.bundle]
2022
name = "RustCast"

LICENSE.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
Copyright 2025 Umang Surana
22

3-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the “Software”), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7+
the Software, and to permit persons to whom the Software is furnished to do so,
8+
subject to the following conditions:
49

5-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
612

7-
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,24 @@
1414
3. Open it, and if there is a "this app is damaged", run the command
1515
`xattr -cr <RustCast.app directory here>`
1616

17+
## Config:
18+
19+
The config file should be located at: `~/.config/rustcast/config.toml` RustCast
20+
doesn't create the default configuration for you, but it does use its
21+
[default options](docs/default.toml) Here's a full list of what all you can
22+
configure [The list](docs/config.toml) The blurring and background is still a
23+
bit wonky, and will be fixed in the upcoming releases
24+
1725
## Feature list:
1826

1927
### Planned:
2028

21-
- [ ] Tray Icon for quitting the app 12/12/2025
2229
- [ ] Select the options using arrow keys 13/12/2025
2330
- [ ] Calculator 15/12/2025
2431
- [ ] Popup note-taking 18/12/2025
2532
- [ ] Clipboard History 20/12/2025
26-
- [ ] Customisable themes (21/12/2025)
27-
- [ ] Blur / transparent background
28-
- [ ] Configurable colours for selected option
2933
- [ ] Plugin Support 31/12/2025
34+
- [ ] Blur / transparent background (Partially implemented on 13/12/2025)
3035

3136
### Finished:
3237

@@ -36,6 +41,13 @@
3641
the app. Simply type `randomvar` and it will generate the num for you
3742
- [x] Image icons next to the text 13/12/2025
3843
- [x] Scrollable options 12/12/2025
44+
- [x] Customisable themes (13/12/2025)
45+
- [x] Configurable colours
46+
47+
### Not Planned:
48+
49+
- [ ] Tray Icon for quitting the app. One may ask why? Well, because I CAN'T GET
50+
IT TO WORK.. I've SPENT TOO LONG ON THIS
3951

4052
## Motivations:
4153

docs/config.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Things you can configure
2+
3+
# Full list of modifiers: https://docs.rs/global-hotkey/0.7.0/global_hotkey/hotkey/struct.Modifiers.html#impl-Modifiers
4+
# Do note, CMD is Super on MacOS
5+
# If you are not sure, use google or GenAI to find out.
6+
toggle_mod = "SHIFT"
7+
8+
# Full list of keys: https://docs.rs/global-hotkey/0.7.0/global_hotkey/hotkey/enum.Code.html#variants
9+
# Same things as Modifiers, google if unsure. If something should work, but isn't working, open an issue and I'll help
10+
toggle_key = "1"
11+
placeholder = "Oopsie Dasies"
12+
13+
# Buffer (all fields are optional bools)
14+
clear_on_hide = false
15+
clear_on_enter = true
16+
17+
[theme]
18+
19+
text_color = [0.95, 0.95, 0.96]
20+
background_color = [0.11, 0.11, 0.13]
21+
22+
background_opacity = 1.0
23+
24+
blur = false
25+
show_icons = true
26+
show_scroll_bar = true

docs/default.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Default Config
2+
3+
toggle_mod = "ALT"
4+
toggle_key = "Space"
5+
placeholder = "Time to be productive!"
6+
7+
[buffer_rules]
8+
clear_on_hide = true
9+
clear_on_enter = true
10+
11+
[theme]
12+
text_color = [0.95, 0.95, 0.96]
13+
background_color = [0.11, 0.11, 0.13]
14+
background_opacity = 1.0
15+
blur = false
16+
show_icons = true
17+
show_scroll_bar = true

0 commit comments

Comments
 (0)