mirror of
https://github.com/adi1090x/rofi.git
synced 2024-11-23 06:38:21 -05:00
25 lines
559 B
Bash
25 lines
559 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
## Author : Aditya Shakya
|
||
|
## Mail : adi1090x@gmail.com
|
||
|
## Github : @adi1090x
|
||
|
## Twitter : @adi1090x
|
||
|
|
||
|
style="$($HOME/.config/rofi/applets/applets/style.sh)"
|
||
|
|
||
|
dir="$HOME/.config/rofi/applets/applets/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 " $DN, $TIME" -dmenu -selected-row 1)"
|