-
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Predefined variables/Magic vars (#117)
* basic idea * generates docs * hardcoded the gen script * trying to hide magic vars * eww-state is good now * structure for cpu var is now there * renamed cpu to diskstat, bc lib supports it after all * not going to implement disk IO. go back to this commit, to see a rough idea * removed it * formatting * stopped data race * Update src/config/system_stats/ram.rs Co-authored-by: ElKowar <[email protected]> * Update src/config/system_stats/disk.rs Co-authored-by: ElKowar <[email protected]> * Explains macos better * Update battery.rs * Function for each OS when getting battery, a bit cleaner * reworked battery a little * all in one big file * facepalm * cleaner gen script and one huge file for the system stat stuff * merge conflicts * github interface for resolving merge conflicts sucks, this fixes it * Apply suggestions from code review Co-authored-by: ElKowar <[email protected]> * Update src/config/inbuilt.rs Co-authored-by: ElKowar <[email protected]> * Apply suggestions from code review Co-authored-by: ElKowar <[email protected]> * code suggestions * component temperature is a json struct * newlines in magic vars descriptions * disks is now json, numbers are not wrapped in strings, and more idiomatic code * Update gen-docs.ts Co-authored-by: mlvzk <[email protected]> * removes a unneeded heading * more doc updates and EWW_CPU_USAGE is now json * calculates battery total avg and it's a json struct Co-authored-by: ElKowar <[email protected]> Co-authored-by: mlvzk <[email protected]>
- Loading branch information
1 parent
6eea3e0
commit df5793b
Showing
15 changed files
with
433 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
+++ | ||
title = "Magic Variables" | ||
slug = "magic variables documenation" | ||
weight = 3 | ||
+++ | ||
|
||
These are variables that are always there, without you having to import them. | ||
|
||
The delay between the updating variables is always 2s. | ||
|
||
|
||
## Updating magic variables | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ title = "Widgets" | |
slug = "widget documentation" | ||
weight = 3 | ||
+++ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.