Merge branch 'master' of git.unbl.ink:secstate/dotfiles

This commit is contained in:
2020-11-19 08:51:37 -05:00
11 changed files with 54 additions and 28 deletions

View File

@ -33,11 +33,9 @@ hsetroot -cover $BASEDIR/$date.jpg
#link slim background to new image #link slim background to new image
SLIM_BG_FILE=/usr/share/slim/themes/default/background.jpg SLIM_BG_FILE=/usr/share/slim/themes/default/background.jpg
if test -f "$SLIM_BG_FILE"; then echo "Setting Slim background image"
echo "Setting Slim background image" rm $SLIM_BG_FILE
rm $SLIM_BG_FILE cp $BASEDIR/$date.jpg $SLIM_BG_FILE
ln -s $BASEDIR/$date.jpg $SLIM_BG_FILE
fi
SEARX_BG_FILE=/usr/local/lib/python2.7/site-packages/searx/static/themes/courgette/img/bg-body-index.jpg SEARX_BG_FILE=/usr/local/lib/python2.7/site-packages/searx/static/themes/courgette/img/bg-body-index.jpg
echo "Setting Searx background image" echo "Setting Searx background image"

16
bin/.bin/nyt Executable file
View File

@ -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 &

View File

@ -1,3 +1,2 @@
#!/bin/sh #!/bin/sh
OUTPUT=$(script -c "muchsync mail.local > $(tty)") muchsync mail.local
notify-send "New mail" "$OUTPUT"

View File

@ -182,6 +182,14 @@
(find-file +todo-file)) (find-file +todo-file))
(setq org-roam-directory "~/var/org/") (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/") (setq org-fc-directories "~/var/org/")
(require 'org-fc-hydra) (require 'org-fc-hydra)
@ -268,8 +276,6 @@
"gs" "magit-status" "gs" "magit-status"
"gc" "magit-commit")) "gc" "magit-commit"))
;(add-hook 'python-mode-hook 'eglot-ensure)
(after! lsp (after! lsp
(setq lsp-file-watch-threshold nil)) (setq lsp-file-watch-threshold nil))

View File

@ -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. 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 #+BEGIN_SRC emacs-lisp
(setq org-roam-directory "~/var/org/") (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 #+END_SRC
#+RESULTS:
: /
** Org-fc ** Org-fc
Trying a new space-repetition framework. Trying a new space-repetition framework.
#+BEGIN_SRC emacs-lisp #+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")) "gc" "magit-commit"))
#+END_SRC #+END_SRC
* Coding * 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` LSP doesn't like big projects and I can't blame it. This forces it to index huge
#+BEGIN_SRC emacs-lisp projects without warning us everytime.
;(add-hook 'python-mode-hook 'eglot-ensure)
#+END_SRC
#+begin_src emacs-lisp #+begin_src emacs-lisp
(after! lsp (after! lsp
(setq lsp-file-watch-threshold nil)) (setq lsp-file-watch-threshold nil))

View File

@ -24,6 +24,7 @@
;;helm ; the *other* search engine for love and life ;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine... ;;ido ; the other *other* search engine...
(ivy ; a search engine for love and life (ivy ; a search engine for love and life
+childframe
+fuzzy +fuzzy
+icons) +icons)
@ -32,12 +33,13 @@
doom ; what makes DOOM look the way it does doom ; what makes DOOM look the way it does
doom-dashboard ; a nifty splash screen for Emacs doom-dashboard ; a nifty splash screen for Emacs
doom-quit ; DOOM quit-message prompts when you quit Emacs doom-quit ; DOOM quit-message prompts when you quit Emacs
(emoji +unicode) ;
;;fill-column ; a `fill-column' indicator ;;fill-column ; a `fill-column' indicator
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
;;hydra ;;hydra
;;indent-guides ; highlighted indent columns ;;indent-guides ; highlighted indent columns
ligatures ; 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 modeline ; snazzy, Atom-inspired modeline, plus API
nav-flash ; blink cursor line after big motions nav-flash ; blink cursor line after big motions
;;neotree ; a project drawer, like NERDTree for vim ;;neotree ; a project drawer, like NERDTree for vim
@ -83,7 +85,7 @@
:checkers :checkers
syntax ; tasing you for every semicolon you forget 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 grammar ; tasing grammar mistake every you make
:tools :tools
@ -99,10 +101,10 @@
+dictionary +dictionary
+docsets) +docsets)
lsp lsp
magit ; a git porcelain for Emacs magit ; a git porcelain for Emacs
make ; run make tasks from Emacs make ; run make tasks from Emacs
pass ; password manager for nerds (pass +auth) ; password manager for nerds
pdf ; pdf enhancements pdf ; pdf enhancements
;;prodigy ; FIXME managing external services & code builders ;;prodigy ; FIXME managing external services & code builders
;;rgb ; creating color strings ;;rgb ; creating color strings
;;taskrunner ; taskrunner for all your projects ;;taskrunner ; taskrunner for all your projects
@ -120,7 +122,7 @@
;;csharp ; unity, .NET, and mono shenanigans ;;csharp ; unity, .NET, and mono shenanigans
data ; config/data formats data ; config/data formats
;;(dart +flutter) ; paint ui and not much else ;;(dart +flutter) ; paint ui and not much else
;;elixir ; erlang done right (elixir +lsp) ; erlang done right
;;elm ; care for a cup of TEA? ;;elm ; care for a cup of TEA?
emacs-lisp ; drown in parentheses emacs-lisp ; drown in parentheses
;;erlang ; an elegant language for a more civilized age ;;erlang ; an elegant language for a more civilized age

View File

@ -27,14 +27,8 @@
:recipe(:host github :recipe(:host github
:repo "alphapapa/matrix-client.el")) :repo "alphapapa/matrix-client.el"))
;(package! eglot)
;; python stuffs ;; python stuffs
(package! blacken) (package! blacken)
;;(package! pylint)
;;(package! py-isort)
;;(package! importmagic)
;; org stuffs ;; org stuffs
(package! ob-http) (package! ob-http)
@ -67,4 +61,3 @@
(package! srcery-theme) (package! srcery-theme)
(package! kaolin-themes) (package! kaolin-themes)
(package! nyan-mode) (package! nyan-mode)
(package! emojify)

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -68,3 +68,6 @@ Host *.cloud10
IdentityFile ~/.ssh/ff_cloud10_rsa IdentityFile ~/.ssh/ff_cloud10_rsa
ProxyJump bastion.cloud10.15five.com ProxyJump bastion.cloud10.15five.com
Port 155 Port 155
Host penobscotbaypress.com
User root