Created
January 21, 2013 06:34
-
-
Save efaisal/4584017 to your computer and use it in GitHub Desktop.
Papar jadual waktu solat untuk persekitaran berasas GTK. Jadual boleh di muatturun menggunakan skrip di https://gist.github.com/4583986.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Jadual terletak di $HOME/.solat/jadual | |
tarikh=`/bin/date +"%Y-%m-%d"` | |
jadual=`/usr/bin/awk -v t=$tarikh -F "|" '{ if ($1 == t) print $2; }' $HOME/.solat/jadual` | |
#echo $tarikh | |
#echo $jadual | |
/usr/bin/notify-send "Waktu Solat Hari Ini" "$jadual" | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment