inital commit
This commit is contained in:
6
.local/bin/statusbar/getpomminutesft
Executable file
6
.local/bin/statusbar/getpomminutesft
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
day=$(date '+%Y%b%d')
|
||||
logged=$(grep -v Break ~/bks/pomodoros_freetime | grep $(date '+%Y%b%d') | grep -Eo "\(.*\)" | paste -sd+ | bc)
|
||||
temp=$(cat /tmp/pomptemptimesft 2>/dev/null)
|
||||
min=$([ "$logged" != "" ] && ([ "$temp" != "" ] && echo "$logged + $temp" | bc || echo $logged ) || ([ "$temp" != "" ] && echo $temp))
|
||||
[ -n "$min" ] && echo '📚'$min
|
Reference in New Issue
Block a user