Compare commits
7 commits
850bfd6e68
...
5a7b956474
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a7b956474 | |||
| bf7be16138 | |||
| dd1532c5c8 | |||
| 4e0b14002c | |||
| 10ec3a3a37 | |||
| 4d7450727c | |||
| 7dde4cc946 |
5 changed files with 13 additions and 6 deletions
|
|
@ -92,6 +92,8 @@
|
||||||
|
|
||||||
(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))
|
||||||
|
|
@ -139,7 +141,6 @@
|
||||||
("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
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ Requires=get-nasa-apod.service
|
||||||
|
|
||||||
[Timer]
|
[Timer]
|
||||||
Unit=get-nasa-apod.service
|
Unit=get-nasa-apod.service
|
||||||
OnCalendar=daily
|
OnCalendar=hourly
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=timers.target
|
WantedBy=timers.target
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,17 @@ 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"
|
||||||
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"')"
|
rate_remaining="$(printf '%s' "${response}" | jq '."rate-limit"')"
|
||||||
echo "Remaining requests until rate limit: ${rate_remaining}"
|
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)"
|
||||||
|
|
||||||
echo "Generating output filename"
|
echo "Generating output filename"
|
||||||
extension="${picture_url##*.}"
|
extension="${picture_url##*.}"
|
||||||
filename="${picture_date}.${extension}"
|
filename="${picture_date}.${extension}"
|
||||||
|
|
@ -51,4 +57,4 @@ ln \
|
||||||
"${outfile}" \
|
"${outfile}" \
|
||||||
"${WALLPAPERS}/today"
|
"${WALLPAPERS}/today"
|
||||||
echo "Refreshing the desktop background"
|
echo "Refreshing the desktop background"
|
||||||
swaymsg output "*" bg "${SWAY_WALLPAPER}" fill
|
swaymsg output "*" bg "${outfile}" fill
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ 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
|
||||||
|
|
|
||||||
1
.profile
1
.profile
|
|
@ -43,4 +43,5 @@ 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue