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:
TuDatTr
2023-04-10 10:05:35 +02:00
parent b5b511404b
commit d5483d49ad
7 changed files with 83 additions and 29 deletions

View 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;
}