diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2021-04-28 14:36:31 +0200 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2021-04-28 14:36:31 +0200 |
commit | 82e7ae32867c9f46576d99fdc78bc0185410fe47 (patch) | |
tree | fd8764e91741f90967801e0e254aafeeb847d031 /Common/rofi/applets/menu/time.sh | |
parent | 045c955f835fdb11983117ca6e27aa4543de4109 (diff) | |
download | dotfiles-82e7ae32867c9f46576d99fdc78bc0185410fe47.tar.gz dotfiles-82e7ae32867c9f46576d99fdc78bc0185410fe47.zip |
Do some mods and add i3 things
Diffstat (limited to 'Common/rofi/applets/menu/time.sh')
-rwxr-xr-x | Common/rofi/applets/menu/time.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Common/rofi/applets/menu/time.sh b/Common/rofi/applets/menu/time.sh new file mode 100755 index 0000000..4432676 --- /dev/null +++ b/Common/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)" |