mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Compare commits
No commits in common. "d8bd82570d9b83e7ec125d37e3af22bbd0b02eb9" and "b3cabf5c19795870a4d1b4e91044b107804d6df7" have entirely different histories.
d8bd82570d
...
b3cabf5c19
@ -10,8 +10,6 @@
|
||||
- [[#applications-installed-by-script][Applications installed by script]]
|
||||
- [[#applications][Applications]]
|
||||
- [[#fonts][Fonts]]
|
||||
- [[#libraries][Libraries]]
|
||||
- [[#python][Python]]
|
||||
- [[#lsp-backends][LSP Backends]]
|
||||
- [[#configured-applications-also-installed-by-script][Configured Applications (also installed by script)]]
|
||||
- [[#configured-locales][Configured Locales]]
|
||||
@ -68,7 +66,6 @@ A repository of my personal configuration files.
|
||||
- [[https://mpv.io/][mpv]]
|
||||
- [[https://www.npmjs.com/get-npm][npm]]
|
||||
- [[https://github.com/cdemoulins/pamixer][pamixer]]
|
||||
- [[https://pandoc.org/][Pandoc]]
|
||||
- [[https://github.com/dylanaraps/pfetch][pfetch]]
|
||||
- [[https://github.com/altdesktop/playerctl][Playerctl]]
|
||||
- [[https://www.freedesktop.org/wiki/Software/PulseAudio/][Pulseaudio]]
|
||||
@ -89,9 +86,6 @@ A repository of my personal configuration files.
|
||||
- [[https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/FiraCode][Fira Code Nerd Patched]]
|
||||
- [[https://www.google.com/get/noto/][Noto]]
|
||||
- [[https://savannah.gnu.org/projects/unifont/][Unifont]]
|
||||
** Libraries
|
||||
*** Python
|
||||
- [[http://scorreia.com/software/panflute/][Panflute]]
|
||||
** LSP Backends
|
||||
- [[https://github.com/mads-hartmann/bash-language-server][bash-language-server]]
|
||||
- [[https://github.com/MaskRay/ccls][ccls]]
|
||||
|
@ -1,17 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
fromDir="$HOME/Documents/org-roam/"
|
||||
toDir="$HOME/devel/personal/Ryankes.eu/wiki"
|
||||
date=$(date)
|
||||
|
||||
rm -rf "$toDir"/wiki/*
|
||||
grep -ril "^\#+tags:[\ a-zA-Z0-9]namepage" "$fromDir"*.org | while read -r line; do
|
||||
baseName="$(basename "$line")"
|
||||
markdownFilename="$(echo "$baseName" | cut -f 1 -d '.').md"
|
||||
pandoc "$line" --filter convertLinks.py -t markdown_mmd+yaml_metadata_block -o "$toDir/wiki/$markdownFilename" -s
|
||||
echo "Exporting $baseName to $markdownFilename"
|
||||
done
|
||||
|
||||
git -C "$toDir" add .
|
||||
git -C "$toDir" commit -m "Update $date"
|
||||
git -C "$toDir" push origin master
|
@ -1,17 +0,0 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import re
|
||||
import panflute as pf
|
||||
|
||||
# Convert org mode links to links Gatsby will understand
|
||||
def action(elem, doc):
|
||||
if isinstance(elem, pf.Link):
|
||||
matches = list(re.finditer(r"(\.org)", elem.url))
|
||||
if matches:
|
||||
m = matches[-1]
|
||||
elem.url = "/wiki/" + elem.url[: m.start(1)] + elem.url[m.end(1) :]
|
||||
return elem
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
pf.run_filter(action)
|
@ -3,7 +3,6 @@
|
||||
- [[#variable-font-sizes-depending-on-screen-width-set-font-to-jetbrains-mono][Variable font sizes depending on screen width. Set font to JetBrains Mono]]
|
||||
- [[#theme-is-set-to-doom-molokai-from-doom-themes][Theme is set to doom-molokai from doom-themes]]
|
||||
- [[#fetch-password-from-authinfo][Fetch password from authinfo]]
|
||||
- [[#set-relative-line-numbers][Set relative line numbers]]
|
||||
- [[#projectile][Projectile]]
|
||||
- [[#set-default-paths-projectile-should-search][Set default paths projectile should search]]
|
||||
- [[#circe][Circe]]
|
||||
@ -20,10 +19,8 @@
|
||||
- [[#capture-web-data-for-org-protocol-capture-html][Capture web data for org-protocol-capture-html]]
|
||||
- [[#org-roam][org-roam]]
|
||||
- [[#set-directory][Set directory]]
|
||||
- [[#set-org-roam-viewer][Set org-roam-viewer]]
|
||||
- [[#org-journal][org-journal]]
|
||||
- [[#get-org-journal-to-work-nicely-with-org-roam][Get org-journal to work nicely with org-roam]]
|
||||
- [[#publishing][Publishing]]
|
||||
- [[#mu4e][mu4e]]
|
||||
- [[#setup-mu4e-with-multiple-profiles][Setup mu4e with multiple profiles]]
|
||||
- [[#elfeed][Elfeed]]
|
||||
@ -60,10 +57,6 @@
|
||||
secret))
|
||||
(error "Password not found for %S" params))))
|
||||
#+END_SRC
|
||||
** Set relative line numbers
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq display-line-numbers-type `relative)
|
||||
#+END_SRC
|
||||
* [[https://www.projectile.mx/en/latest/][Projectile]]
|
||||
** Set default paths [[https://www.projectile.mx/en/latest/][projectile]] should search
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
@ -147,27 +140,13 @@
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq org-roam-directory "~/Documents/org-roam")
|
||||
#+END_SRC
|
||||
*** Set org-roam-viewer
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq org-roam-graph-viewer "~/.local/bin/viewDotfile")
|
||||
#+END_SRC
|
||||
** [[https://github.com/bastibe/org-journal][org-journal]]
|
||||
*** Get org-journal to work nicely with org-roam
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq org-journal-dir "~/Documents/org-roam")
|
||||
(setq org-journal-date-prefix "#+title: ")
|
||||
(setq org-journal-file-format "%Y-%m-%d.org")
|
||||
(setq org-journal-date-format "%A, %d %B %Y")
|
||||
#+END_SRC
|
||||
** Publishing
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq org-publish-project-alist
|
||||
'(("wiki"
|
||||
:base-directory "~/Documents/org-roam/"
|
||||
:publishing-directory "~/devel/personal/Ryankes.eu/wiki/content/"
|
||||
:publishing-function org-pandoc-export-to-markdown_mmd
|
||||
:select-tags ("export-blog")
|
||||
)))
|
||||
(setq org-journal-date-format "%A, %d %B %Y"))
|
||||
#+END_SRC
|
||||
* [[https://www.djcbsoftware.nl/code/mu/mu4e.html][mu4e]]
|
||||
** Setup mu4e with multiple profiles
|
||||
|
@ -58,7 +58,6 @@
|
||||
grammar
|
||||
|
||||
:tools
|
||||
biblio
|
||||
docker
|
||||
editorconfig ; let someone else argue about tabs vs spaces
|
||||
(eval +overlay) ; run code, run (also, repls)
|
||||
@ -83,7 +82,7 @@
|
||||
+journal
|
||||
+roam
|
||||
+dragndrop ; drag & drop files/images into org buffers
|
||||
+pandoc
|
||||
+pandoc ; export-with-pandoc support
|
||||
+present) ; using org-mode for presentations
|
||||
(php
|
||||
+lsp) ; perl's insecure younger brother
|
||||
|
@ -13,4 +13,3 @@
|
||||
(package! fish-mode)
|
||||
(package! salt-mode)
|
||||
(package! fountain-mode)
|
||||
(package! org-ref)
|
||||
|
@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if parameter is passed
|
||||
if [ ! $# -eq 1 ]; then
|
||||
echo "Error: no parameter passed!"
|
||||
exit 1
|
||||
else
|
||||
# Check if a valid dot file is passed
|
||||
if [[ $1 = /tmp/graph*.dot ]]; then
|
||||
# Check that file exists
|
||||
if [[ -f $1 ]]; then
|
||||
dot -T pdf <"$1" | zathura - && rm "$1"
|
||||
else
|
||||
echo "File $1 doesn't exist!"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
7
install
7
install
@ -1,9 +1,8 @@
|
||||
#!/usr/bin/env fish
|
||||
|
||||
# Prerequisite & inistalled apps
|
||||
set prerequisiteApps bat broot brave caffeine-ng exa fslint fzf graphviz isync imagemagick lightdm-gtk-greeter mailcap deadd-notification-center-bin npm pandoc-bin pamixer pfetch playerctl pulseaudio pulsemixer python pywal stow sxiv tldr trayer udisks2 xwallpaper yarn xprop zathura
|
||||
set prerequisiteApps bat broot brave caffeine-ng exa fslint fzf graphviz isync imagemagick lightdm-gtk-greeter mailcap deadd-notification-center-bin npm pamixer pfetch playerctl pulseaudio pulsemixer python pywal stow sxiv tldr trayer udisks2 xwallpaper yarn xprop zathura
|
||||
set prerequisiteFonts otf-nerd-fonts-fira-code noto-fonts ttf-unifont
|
||||
set prerequisiteLibraries python-panflute
|
||||
set prerequisiteLsp bash-language-server ccls php-language-server python-language-server typescript-language-server-bin vscode-css-languageserver-bin vscode-html-languageserver-bin nodejs-intelephense
|
||||
set configuredApps alacritty bspwm castero emacs firejail git gnupg gtk lf deadd-notification-center-bin mpd mpv mpv-mpris ncmpcpp neomutt neovim picom redshift spotifyd-dbus-mpris sxhkd tmux tuir weechat
|
||||
set locales aspell-en hunspell-en_GB hunspell-en_US hunspell-nl
|
||||
@ -46,10 +45,6 @@ for font in $prerequisiteFonts
|
||||
install_app_if_not_exist "$font"
|
||||
end
|
||||
|
||||
for library in $prerequisiteLibraries
|
||||
install_app_if_not_exist "$library"
|
||||
end
|
||||
|
||||
for lsp in $prerequisiteLsp
|
||||
install_app_if_not_exist "$lsp"
|
||||
end
|
||||
|
@ -8,15 +8,11 @@ set ignorecase true
|
||||
|
||||
# Custom functions
|
||||
cmd open ${{
|
||||
case "${f##*.}" in
|
||||
org) emacsclient -c "$f";;
|
||||
*)
|
||||
case $(file --mime-type "$f" -bL) in
|
||||
text/*|application/json) nvim "$f";;
|
||||
video/*|image/*/application/pdf) xdg-open "$f" & disown;;
|
||||
*) xdg-open "$f" ;;
|
||||
esac
|
||||
esac
|
||||
}}
|
||||
|
||||
cmd mkdir ${{
|
||||
|
Loading…
Reference in New Issue
Block a user