Compare commits

..

No commits in common. "5a7b956474d86b188e4f75dcba7d2ed0ad2b1542" and "850bfd6e68c8a256fce184dd21191bda34790ee1" have entirely different histories.

5 changed files with 6 additions and 13 deletions

View file

@ -92,8 +92,6 @@
(use-package transient)
(use-package cond-let
:ensure (:repo "https://github.com/tarsius/cond-let"))
(use-package magit
:bind (("C-x g" . magit-status)
("C-x M-g" . magit-list-repositories))
@ -141,6 +139,7 @@
("C-<return>" . ivy-immediate-done))
:init
(ivy-add-actions 'project-find-file '(("x" counsel-locate-action-extern "open externally")))
:config
(setq ivy-re-builders-alist
'((t . ivy--regex-ignore-order)))
:custom

View file

@ -5,7 +5,7 @@ Requires=get-nasa-apod.service
[Timer]
Unit=get-nasa-apod.service
OnCalendar=hourly
OnCalendar=daily
[Install]
WantedBy=timers.target

View file

@ -19,16 +19,10 @@ echo "Received response from API"
# shellcheck disable=SC2005
echo "$(printf '%s' "${response}" | jq '.')"
echo "Parsing data"
rate_remaining="$(printf '%s' "${response}" | jq '."rate-limit"')"
echo "Remaining requests until rate limit: ${rate_remaining}"
if [ "$(printf '%s' "${response}" | jq 'has("hdurl")')" == "false" ]; then
echo "Response contains no download URL"
exit 1
fi
picture_date="$(printf '%s' "${response}" | jq --raw-output .date)"
picture_url="$(printf '%s' "${response}" | jq --raw-output .hdurl)"
rate_remaining="$(printf '%s' "${response}" | jq '."rate-limit"')"
echo "Remaining requests until rate limit: ${rate_remaining}"
echo "Generating output filename"
extension="${picture_url##*.}"
@ -57,4 +51,4 @@ ln \
"${outfile}" \
"${WALLPAPERS}/today"
echo "Refreshing the desktop background"
swaymsg output "*" bg "${outfile}" fill
swaymsg output "*" bg "${SWAY_WALLPAPER}" fill

View file

@ -23,6 +23,7 @@ repos:
rev: v0.0.18
hooks:
- id: forbid-binary
exclude: ^\.local/share/jupyter/kernels/python3\.12/logo-
- id: shellcheck
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0

View file

@ -43,5 +43,4 @@ done < <(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-g
# Autolaunch sway for tty1 logins
[ "$(tty)" = "/dev/tty1" ] &&
zellij delete-all-sessions --yes
exec systemd-cat --identifier sway sway