68 lines
1.8 KiB
Bash
Executable File
68 lines
1.8 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
cmd="$HOME/scripts/blinddate/target/release/blinddate"
|
|
|
|
prompt="Day"
|
|
|
|
today="today"
|
|
tomorrow="tomorrow"
|
|
yesterday="yesterday"
|
|
daybeforeyesterday="day before yesterday"
|
|
dayaftertomorrow="day after tomorrow"
|
|
nextmonday="next Monday"
|
|
nexttuesday="next Tuesday"
|
|
nextwednesday="next Wednesday"
|
|
nextthursday="next Thursday"
|
|
nextfriday="next Friday"
|
|
nextsaturday="next Saturday"
|
|
nextsunday="next Sunday"
|
|
lastmonday="last Monday"
|
|
lasttuesday="last Tuesday"
|
|
lastwednesday="last Wednesday"
|
|
lastthursday="last Thursday"
|
|
lastfriday="last Friday"
|
|
lastsaturday="last Saturday"
|
|
lastsunday="last Sunday"
|
|
|
|
day=$(echo "$today
|
|
$tomorrow
|
|
$yesterday
|
|
$daybeforeyesterday
|
|
$dayaftertomorrow
|
|
$nextmonday
|
|
$nexttuesday
|
|
$nextwednesday
|
|
$nextthursday
|
|
$nextfriday
|
|
$nextsaturday
|
|
$nextsunday
|
|
$lastmonday
|
|
$lasttuesday
|
|
$lastwednesday
|
|
$lastthursday
|
|
$lastfriday
|
|
$lastsaturday
|
|
$lastsunday" | rofi -dmenu -i -p "$prompt")
|
|
|
|
case $day in
|
|
"$today") "$cmd" today;;
|
|
"$tomorrow") "$cmd" tomorrow;;
|
|
"$yesterday") "$cmd" yesterday;;
|
|
"$daybeforeyesterday") "$cmd" daybeforeyesterday;;
|
|
"$dayaftertomorrow") "$cmd" dayaftertomorrow;;
|
|
"$nextmonday") "$cmd" nextmonday;;
|
|
"$nexttuesday") "$cmd" nexttuesday;;
|
|
"$nextwednesday") "$cmd" nextwednesday;;
|
|
"$nextthursday") "$cmd" nextthursday;;
|
|
"$nextfriday") "$cmd" nextfriday;;
|
|
"$nextsaturday") "$cmd" nextsaturday;;
|
|
"$nextsunday") "$cmd" nextsunday;;
|
|
"$lastmonday") "$cmd" lastmonday;;
|
|
"$lasttuesday") "$cmd" lasttuesday;;
|
|
"$lastwednesday") "$cmd" lastwednesday;;
|
|
"$lastthursday") "$cmd" lastthursday;;
|
|
"$lastfriday") "$cmd" lastfriday;;
|
|
"$lastsaturday") "$cmd" lastsaturday;;
|
|
"$lastsunday") "$cmd" lastsunday;;
|
|
esac
|