inital commit
This commit is contained in:
13
voc
Executable file
13
voc
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
english=$(sed -E 's/.*\|.*\|([0-9]{2})\.([0-9]{2})\.([0-9]{4})\|[0-9\|]+/\3\2\1/g' ~/.vokabeln/English.csv | while read line; do [[ $line -le $(date +%Y%m%d) ]] && echo $line; done | wc -l | sed -E 's/^([1-9][0-9]*)$/🇺🇸:\1/g;s/^0$//g')
|
||||
|
||||
franz=$(sed -E 's/.*\|.*\|([0-9]{2})\.([0-9]{2})\.([0-9]{4})\|[0-9\|]+/\3\2\1/g' ~/.vokabeln/Französisch.csv | while read line; do [[ $line -le $(date +%Y%m%d) ]] && echo $line; done | wc -l | sed -E 's/^([1-9][0-9]*)$/🇫🇷:\1/g;s/^0$//g')
|
||||
|
||||
echo $english $franz
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) ($TERMINAL -e vokabeln.py && (pkill -RTMIN+20 "${STATUSBAR:-blocks}" >/dev/null 2>&1 ) 2>/dev/null ) & ;;
|
||||
3) notify-send "Vocablurary module" "\- Left click to open vokabeln.py in a terminal" ;;
|
||||
esac
|
||||
|
||||
|
||||
Reference in New Issue
Block a user