mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-12-04 10:25:27 -08:00
18 lines
507 B
Bash
18 lines
507 B
Bash
|
#!/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 }"
|