diff options
| author | Alec Goncharow <alec@goncharow.dev> | 2022-01-09 15:28:58 -0500 |
|---|---|---|
| committer | Alec Goncharow <alec@goncharow.dev> | 2022-01-09 15:28:58 -0500 |
| commit | 72cf398a6292fa56d57e82caa4d21570e5573294 (patch) | |
| tree | e536efb8c5fedb0aceeae2951330b985e34e4ec8 /.config/rofi/applets/menu/time.sh | |
| parent | fa93303ea8313cf08c437953d53c18de2006b899 (diff) | |
:)
Diffstat (limited to '.config/rofi/applets/menu/time.sh')
| -rwxr-xr-x | .config/rofi/applets/menu/time.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/rofi/applets/menu/time.sh b/.config/rofi/applets/menu/time.sh new file mode 100755 index 0000000..4432676 --- /dev/null +++ b/.config/rofi/applets/menu/time.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +## Author : Aditya Shakya +## Mail : adi1090x@gmail.com +## Github : @adi1090x +## Twitter : @adi1090x + +style="$($HOME/.config/rofi/applets/menu/style.sh)" + +dir="$HOME/.config/rofi/applets/menu/configs/$style" +rofi_command="rofi -theme $dir/time.rasi" + +## Get time and date +TIME="$(date +"%I:%M %p")" +DN=$(date +"%A") +MN=$(date +"%B") +DAY="$(date +"%d")" +MONTH="$(date +"%m")" +YEAR="$(date +"%Y")" + +options="$DAY\n$MONTH\n$YEAR" + +## Main +chosen="$(echo -e "$options" | $rofi_command -p " at $TIME on $DN in $MN" -dmenu -selected-row 1)" |
