diff --git a/bin/.bin/changepaper b/bin/.bin/changepaper index da24004..24f025d 100755 --- a/bin/.bin/changepaper +++ b/bin/.bin/changepaper @@ -33,11 +33,9 @@ hsetroot -cover $BASEDIR/$date.jpg #link slim background to new image SLIM_BG_FILE=/usr/share/slim/themes/default/background.jpg -if test -f "$SLIM_BG_FILE"; then - echo "Setting Slim background image" - rm $SLIM_BG_FILE - ln -s $BASEDIR/$date.jpg $SLIM_BG_FILE -fi +echo "Setting Slim background image" +rm $SLIM_BG_FILE +cp $BASEDIR/$date.jpg $SLIM_BG_FILE SEARX_BG_FILE=/usr/local/lib/python2.7/site-packages/searx/static/themes/courgette/img/bg-body-index.jpg echo "Setting Searx background image" diff --git a/bin/.bin/nyt b/bin/.bin/nyt new file mode 100755 index 0000000..49ad2e2 --- /dev/null +++ b/bin/.bin/nyt @@ -0,0 +1,16 @@ +#!/bin/bash +BASEDIR="$HOME/var/media/nyt" +DATE=$(date +"%Y-%m-%d") +TMPFILE=/tmp/nyt.pdf +OUTFILE=$BASEDIR/$DATE.jpg + +if test -f "$OUTFILE"; then + echo "NYT front page already found. Not downloading." +else + DATEPATH=$(date +"%Y/%m/%d") + curl -o /tmp/nyt.pdf -L https://static01.nyt.com/images/$DATEPATH/nytfrontpage/scan.pdf + convert -density 150 -quality 100 $TMPFILE $OUTFILE + rm $TMPFILE +fi + +sxiv $OUTFILE & diff --git a/bin/.bin/syncmail b/bin/.bin/syncmail index 09897bd..80ed369 100755 --- a/bin/.bin/syncmail +++ b/bin/.bin/syncmail @@ -1,3 +1,2 @@ #!/bin/sh -OUTPUT=$(script -c "muchsync mail.local > $(tty)") -notify-send "New mail" "$OUTPUT" +muchsync mail.local diff --git a/emacs/.doom.d/config.el b/emacs/.doom.d/config.el index 93a7647..13355b5 100644 --- a/emacs/.doom.d/config.el +++ b/emacs/.doom.d/config.el @@ -182,6 +182,14 @@ (find-file +todo-file)) (setq org-roam-directory "~/var/org/") +(setq org-roam-dailies-directory "") + +(setq org-roam-dailies-capture-templates + '(("d" "default" entry + #'org-roam-capture--get-point + "* %?" + :file-name "%<%Y-%m-%d>" + :head "#+title: %<%Y-%m-%d>\n\n"))) (setq org-fc-directories "~/var/org/") (require 'org-fc-hydra) @@ -268,8 +276,6 @@ "gs" "magit-status" "gc" "magit-commit")) -;(add-hook 'python-mode-hook 'eglot-ensure) - (after! lsp (setq lsp-file-watch-threshold nil)) diff --git a/emacs/.doom.d/config.org b/emacs/.doom.d/config.org index 8b03b7c..39791f3 100644 --- a/emacs/.doom.d/config.org +++ b/emacs/.doom.d/config.org @@ -251,7 +251,19 @@ I add only two custom mappings to the default org mode maps, a shortcut to my In I am absolutely in love with [[https://org-roam.readthedocs.io/en/develop/][Org-roam]]. Everything about it makes taking notes easier. I just need to level up with Zettels and web publishing of my notes. #+BEGIN_SRC emacs-lisp (setq org-roam-directory "~/var/org/") +(setq org-roam-dailies-directory "") + +(setq org-roam-dailies-capture-templates + '(("d" "default" entry + #'org-roam-capture--get-point + "* %?" + :file-name "%<%Y-%m-%d>" + :head "#+title: %<%Y-%m-%d>\n\n"))) #+END_SRC + +#+RESULTS: +: / + ** Org-fc Trying a new space-repetition framework. #+BEGIN_SRC emacs-lisp @@ -359,11 +371,8 @@ Handful of fun aliases to make working in Eshell almost like a /real/ shell :smi "gc" "magit-commit")) #+END_SRC * Coding -I once used LSP, but Emacs lsp-mode is flaky as hell. It works sometimes, but other times causes pyls to thrash the CPU. I don't need that, not when Eglot exists. This just makes sure Eglot runs in `python-mode` -#+BEGIN_SRC emacs-lisp -;(add-hook 'python-mode-hook 'eglot-ensure) -#+END_SRC - +LSP doesn't like big projects and I can't blame it. This forces it to index huge +projects without warning us everytime. #+begin_src emacs-lisp (after! lsp (setq lsp-file-watch-threshold nil)) diff --git a/emacs/.doom.d/init.el b/emacs/.doom.d/init.el index 325e93f..c5483d0 100644 --- a/emacs/.doom.d/init.el +++ b/emacs/.doom.d/init.el @@ -24,6 +24,7 @@ ;;helm ; the *other* search engine for love and life ;;ido ; the other *other* search engine... (ivy ; a search engine for love and life + +childframe +fuzzy +icons) @@ -32,12 +33,13 @@ doom ; what makes DOOM look the way it does doom-dashboard ; a nifty splash screen for Emacs doom-quit ; DOOM quit-message prompts when you quit Emacs + (emoji +unicode) ; ;;fill-column ; a `fill-column' indicator hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW ;;hydra ;;indent-guides ; highlighted indent columns ligatures ; - ;minimap ; show a map of the code on the side + minimap ; show a map of the code on the side modeline ; snazzy, Atom-inspired modeline, plus API nav-flash ; blink cursor line after big motions ;;neotree ; a project drawer, like NERDTree for vim @@ -83,7 +85,7 @@ :checkers syntax ; tasing you for every semicolon you forget - spell ; tasing you for misspelling mispelling + (spell +flyspell +aspell) ; tasing you for misspelling mispelling grammar ; tasing grammar mistake every you make :tools @@ -99,10 +101,10 @@ +dictionary +docsets) lsp - magit ; a git porcelain for Emacs - make ; run make tasks from Emacs - pass ; password manager for nerds - pdf ; pdf enhancements + magit ; a git porcelain for Emacs + make ; run make tasks from Emacs + (pass +auth) ; password manager for nerds + pdf ; pdf enhancements ;;prodigy ; FIXME managing external services & code builders ;;rgb ; creating color strings ;;taskrunner ; taskrunner for all your projects @@ -120,7 +122,7 @@ ;;csharp ; unity, .NET, and mono shenanigans data ; config/data formats ;;(dart +flutter) ; paint ui and not much else - ;;elixir ; erlang done right + (elixir +lsp) ; erlang done right ;;elm ; care for a cup of TEA? emacs-lisp ; drown in parentheses ;;erlang ; an elegant language for a more civilized age diff --git a/emacs/.doom.d/packages.el b/emacs/.doom.d/packages.el index 4578e79..ba60314 100644 --- a/emacs/.doom.d/packages.el +++ b/emacs/.doom.d/packages.el @@ -27,14 +27,8 @@ :recipe(:host github :repo "alphapapa/matrix-client.el")) -;(package! eglot) - ;; python stuffs (package! blacken) -;;(package! pylint) -;;(package! py-isort) -;;(package! importmagic) - ;; org stuffs (package! ob-http) @@ -67,4 +61,3 @@ (package! srcery-theme) (package! kaolin-themes) (package! nyan-mode) -(package! emojify) diff --git a/fonts/.fonts/scientifica/ttf/scientifica.ttf b/fonts/.fonts/scientifica/ttf/scientifica.ttf new file mode 100644 index 0000000..af4d519 Binary files /dev/null and b/fonts/.fonts/scientifica/ttf/scientifica.ttf differ diff --git a/fonts/.fonts/scientifica/ttf/scientificaBold.ttf b/fonts/.fonts/scientifica/ttf/scientificaBold.ttf new file mode 100644 index 0000000..aef740c Binary files /dev/null and b/fonts/.fonts/scientifica/ttf/scientificaBold.ttf differ diff --git a/fonts/.fonts/scientifica/ttf/scientificaItalic.ttf b/fonts/.fonts/scientifica/ttf/scientificaItalic.ttf new file mode 100644 index 0000000..50881be Binary files /dev/null and b/fonts/.fonts/scientifica/ttf/scientificaItalic.ttf differ diff --git a/ssh/.ssh/config b/ssh/.ssh/config index cafae03..db3b6d3 100644 --- a/ssh/.ssh/config +++ b/ssh/.ssh/config @@ -68,3 +68,6 @@ Host *.cloud10 IdentityFile ~/.ssh/ff_cloud10_rsa ProxyJump bastion.cloud10.15five.com Port 155 + +Host penobscotbaypress.com + User root