mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-26 06:35:28 -08:00
17 lines
507 B
Bash
Executable file
17 lines
507 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
|
|
moonstate=$(gcal --resource-file=$HOME/.config/eww/scripts/moontime | awk '{print $4}')
|
|
|
|
sunstate=$(gcal --resource-file=$HOME/.config/eww/scripts/suntime | awk '{print $4}')
|
|
|
|
moonrise=$(echo $moonstate | awk '{print $1}')
|
|
moonset=$(echo $moonstate | awk '{print $2}')
|
|
moonphase=$(echo $moonstate | awk '{print $3}')
|
|
|
|
sunrise=$(echo $sunstate | awk '{print $1}')
|
|
sunset=$(echo $sunstate | awk '{print $2}')
|
|
|
|
|
|
|
|
echo "{ \"has_color\": false, \"is_sun\": true, \"gradient_angle\": 45 }"
|