Compare commits
No commits in common. "d90c70b0508db7e5b98b102d5035bdab42e1690e" and "4405481c0c851e03e697c12a270aa2b565043e7c" have entirely different histories.
d90c70b050
...
4405481c0c
7 changed files with 6 additions and 94 deletions
|
|
@ -183,11 +183,7 @@
|
|||
;; EPUB reader
|
||||
(use-package nov
|
||||
:init
|
||||
(setq auto-mode-alist
|
||||
(map-merge 'list
|
||||
'(("\\.epub\\'" . nov-mode))
|
||||
auto-mode-alist))
|
||||
)
|
||||
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)))
|
||||
|
||||
(use-package company
|
||||
:init (global-company-mode)
|
||||
|
|
@ -247,21 +243,18 @@
|
|||
(defun load-python-env ()
|
||||
"Set up the Python IDE in the current project."
|
||||
(interactive)
|
||||
(when (derived-mode-p 'python-mode)
|
||||
(progn
|
||||
(poetry-venv-workon)
|
||||
(eglot-ensure))))
|
||||
(ignore-errors (poetry-venv-workon))
|
||||
(eglot-ensure)))
|
||||
|
||||
(use-package python
|
||||
:bind (:map python-mode-map
|
||||
("C-c C-p" . nil)
|
||||
("C-c C-l" . nil)
|
||||
("C-c t" . elpy-test))
|
||||
:hook (hack-local-variables . load-python-env)
|
||||
:hook (python-mode . load-python-env)
|
||||
:config
|
||||
(load "python-tests.el")
|
||||
:custom
|
||||
(elpy-test-runner 'elpy-test-pytest-runner)
|
||||
)
|
||||
|
||||
;; Jupyter notebook integration
|
||||
|
|
@ -287,19 +280,6 @@
|
|||
(rustic-lsp-client 'eglot)
|
||||
)
|
||||
|
||||
(use-package go-config
|
||||
:ensure nil
|
||||
:hook
|
||||
(go-ts-mode . eglot-ensure)
|
||||
:init
|
||||
(setq auto-mode-alist
|
||||
(map-merge 'list
|
||||
'(("\\.go\\'" . go-ts-mode)
|
||||
("/go\\.mod\\'" . go-mod-ts-mode)
|
||||
("/go\\.work\\'" . go-work-ts-mode))
|
||||
auto-mode-alist))
|
||||
)
|
||||
|
||||
(use-package gptel
|
||||
:custom
|
||||
; keep-sorted start
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@ DEB_PKGS=(
|
|||
fuzzel
|
||||
gdb
|
||||
gnumeric
|
||||
gopls
|
||||
graphviz
|
||||
grim
|
||||
guile-3.0
|
||||
|
|
@ -87,14 +86,12 @@ DEB_PKGS=(
|
|||
xdg-desktop-portal-wlr
|
||||
xournalpp
|
||||
yt-dlp
|
||||
awscli
|
||||
zip
|
||||
# keep-sorted end
|
||||
)
|
||||
META_PKGS=(
|
||||
# keep-sorted start
|
||||
fonts-noto
|
||||
golang
|
||||
podman-compose
|
||||
# keep-sorted end
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
[Unit]
|
||||
Description=Refresh the wallpaper using the NASA Astronomy Picture of the Day
|
||||
Wants=get-nasa-apod.timer
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=%h
|
||||
ExecStart=%h/.local/bin/get-nasa-apod
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
[Unit]
|
||||
Description=Daily NASA wallpaper fetch
|
||||
Requires=get-nasa-apod.service
|
||||
|
||||
[Timer]
|
||||
Unit=nasa-apod.service
|
||||
OnCalendar=daily
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
|
@ -10,10 +10,6 @@
|
|||
[remote]
|
||||
pushDefault = .
|
||||
[git-sync]
|
||||
# keep-sorted start
|
||||
syncEnabled = true
|
||||
syncNewFiles = true
|
||||
syncSkipHooks = true
|
||||
# keep-sorted end
|
||||
[include]
|
||||
path = .hostgitconfig
|
||||
|
|
|
|||
|
|
@ -1,41 +0,0 @@
|
|||
#! /usr/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
API_KEY="${NASA_API_KEY:-DEMO_KEY}"
|
||||
if [ "${API_KEY}" = "DEMO_KEY" ]; then
|
||||
echo "No API key set! using demo key."
|
||||
fi
|
||||
|
||||
WALLPAPERS="$(systemd-path user)"/Wallpapers
|
||||
|
||||
mkdir --parents "${WALLPAPERS}"
|
||||
|
||||
APOD_URL="https://api.nasa.gov/planetary/apod?api_key=${API_KEY}"
|
||||
response="$(curl --silent "${APOD_URL}")"
|
||||
picture_date="$(printf '%s' "${response}" | jq --raw-output .date)"
|
||||
picture_url="$(printf '%s' "${response}" | jq --raw-output .hdurl)"
|
||||
|
||||
extension="${picture_url##*.}"
|
||||
filename="${picture_date}.${extension}"
|
||||
outfile="${WALLPAPERS}/${filename}"
|
||||
|
||||
if [ -f "${outfile}" ]; then
|
||||
echo "Target file already exists"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
tempfile="$(mktemp)"
|
||||
curl \
|
||||
--location \
|
||||
--output "${tempfile}" \
|
||||
--silent \
|
||||
"${picture_url}"
|
||||
mv "${tempfile}" "${outfile}"
|
||||
ln \
|
||||
--force \
|
||||
--symbolic \
|
||||
"${outfile}" \
|
||||
"${WALLPAPERS}/today.${extension}"
|
||||
swaymsg reload
|
||||
|
|
@ -12,7 +12,7 @@ sync_repo () {
|
|||
repo=$1
|
||||
|
||||
echo git-sync "${repo}"
|
||||
( cd "${repo}" && "$(systemd-path user-state-private)"/git-sync/git-sync sync )
|
||||
( cd "${repo}" && "$(systemd-path user-state-private)"/git-sync/git-sync -n -s sync )
|
||||
echo
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue