dotfiles/.local/bin/statusbar/getpomminutesft
Alexander Bocken e7db5a5ee3
Various changes
modified:   .config/aliasrc
	modified:   .config/coc/history.json
	modified:   .config/gtk-2.0/gtkfilechooser.ini
	modified:   .config/nvim/init.vim
	modified:   .config/qutebrowser/autoconfig.yml
	modified:   .config/qutebrowser/bookmarks/urls
	modified:   .config/qutebrowser/qsettings/QtProject.conf
	modified:   .config/qutebrowser/quickmarks
	modified:   .config/xprofile
	modified:   .config/zsh/.zshrc
	modified:   .local/bin/bt
	modified:   .local/bin/statusbar/getpomminutes
	modified:   .local/bin/statusbar/getpomminutesft
	modified:   .local/bin/statusbar/nettraf
2020-10-02 15:33:33 +02:00

8 lines
379 B
Bash
Executable File

#!/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" ] && printf '📚%s'"$min"
printf '\n'