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

View file

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

View file

@ -19,16 +19,10 @@ echo "Received response from API"
# shellcheck disable=SC2005 # shellcheck disable=SC2005
echo "$(printf '%s' "${response}" | jq '.')" echo "$(printf '%s' "${response}" | jq '.')"
echo "Parsing data" 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_date="$(printf '%s' "${response}" | jq --raw-output .date)"
picture_url="$(printf '%s' "${response}" | jq --raw-output .hdurl)" 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" echo "Generating output filename"
extension="${picture_url##*.}" extension="${picture_url##*.}"
@ -57,4 +51,4 @@ ln \
"${outfile}" \ "${outfile}" \
"${WALLPAPERS}/today" "${WALLPAPERS}/today"
echo "Refreshing the desktop background" 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 rev: v0.0.18
hooks: hooks:
- id: forbid-binary - id: forbid-binary
exclude: ^\.local/share/jupyter/kernels/python3\.12/logo-
- id: shellcheck - id: shellcheck
- repo: https://github.com/Yelp/detect-secrets - repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0 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 # Autolaunch sway for tty1 logins
[ "$(tty)" = "/dev/tty1" ] && [ "$(tty)" = "/dev/tty1" ] &&
zellij delete-all-sessions --yes
exec systemd-cat --identifier sway sway exec systemd-cat --identifier sway sway