Added git roam template for ieee papers
Added script for battery logging Adjusted nushell/starship config for nushell v0.78.0 Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
7
config/.scripts/battery_stats.nu
Executable file
7
config/.scripts/battery_stats.nu
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env nu
|
||||
|
||||
let filename = (date now | date format "%s")
|
||||
while 1 == 1 {
|
||||
(sudo tlp-stat -b | grep Charge | split column '=' | str trim ) | insert a (date now | date format "%s") | reject column1 | rename Charge Timestamp | to csv -n | str replace " \\[%\\]" "" |save -a $"$filename".csv;
|
||||
sleep 50ms;
|
||||
}
|
||||
Reference in New Issue
Block a user