mirror of
https://codeberg.org/hyperreal/dotfiles
synced 2025-01-18 11:13:45 +01:00
Update
This commit is contained in:
parent
8addafd4b9
commit
829d977a6e
9
config/.config/systemd/user/quick-backup.service
Normal file
9
config/.config/systemd/user/quick-backup.service
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Daily quick-backup
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/home/jas/repos/codeberg.org/hyperreal/admin-scripts/shell/quick-backup
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
10
config/.config/systemd/user/quick-backup.timer
Normal file
10
config/.config/systemd/user/quick-backup.timer
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Daily quick-backup
|
||||||
|
DefaultDependencies=yes
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* 00:00:00
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
@ -0,0 +1 @@
|
|||||||
|
/home/jas/.config/systemd/user/quick-backup.timer
|
@ -165,9 +165,9 @@ If point was already at that position, move point to beginning of line."
|
|||||||
(eval-after-load 'org
|
(eval-after-load 'org
|
||||||
'(org-load-modules-maybe t))
|
'(org-load-modules-maybe t))
|
||||||
|
|
||||||
(setq org-directory "~/ownCloud/org/")
|
(setq org-directory "~/sync/org/")
|
||||||
(setq org-default-notes-file "~/ownCloud/org/inbox.org")
|
(setq org-default-notes-file "~/sync/org/inbox.org")
|
||||||
(setq org-agenda-files '("~/ownCloud/org/inbox.org"))
|
(setq org-agenda-files '("~/sync/org/inbox.org"))
|
||||||
|
|
||||||
;; support selecting lines by using shift
|
;; support selecting lines by using shift
|
||||||
(setq org-support-shift-select t)
|
(setq org-support-shift-select t)
|
||||||
@ -203,9 +203,9 @@ If point was already at that position, move point to beginning of line."
|
|||||||
(setq org-blank-before-new-entry '((heading . t) (plain-list-item . t)))
|
(setq org-blank-before-new-entry '((heading . t) (plain-list-item . t)))
|
||||||
|
|
||||||
(setq org-refile-targets
|
(setq org-refile-targets
|
||||||
`((("~/ownCloud/org/inbox.org"
|
`((("~/sync/org/inbox.org"
|
||||||
"~/ownCloud/org/computing.org"
|
"~/sync/org/computing.org"
|
||||||
"~/ownCloud/org/todos.org")
|
"~/sync/org/todos.org")
|
||||||
. (:maxlevel . 5))))
|
. (:maxlevel . 5))))
|
||||||
|
|
||||||
;; org-todo-keywords
|
;; org-todo-keywords
|
||||||
@ -244,9 +244,24 @@ If point was already at that position, move point to beginning of line."
|
|||||||
(with-eval-after-load 'ox
|
(with-eval-after-load 'ox
|
||||||
(require 'ox-hugo))
|
(require 'ox-hugo))
|
||||||
|
|
||||||
|
;; copy images from clipboard into org file with yank-media
|
||||||
|
(defun org-mode--image-yank-handler (type image)
|
||||||
|
(let ((file (read-file-name (format "Save %s image to:" type))))
|
||||||
|
(when (file-directory-p file)
|
||||||
|
(user-error "%s is a directory"))
|
||||||
|
(when (and (file-exists-p file)
|
||||||
|
(not (yes-or-no-p (format "%s exists; overwrite?" file))))
|
||||||
|
(user-error "%s exists"))
|
||||||
|
(with-temp-buffer
|
||||||
|
(set-buffer-multibyte nil)
|
||||||
|
(insert image)
|
||||||
|
(write-region (point-min) (point-max) file))
|
||||||
|
(insert (format "[[file:%s]]\n" (file-relative-name file)))))
|
||||||
|
|
||||||
|
(add-hook 'org-mode-hook (lambda () (yank-media-handler "image/.*" #'org-mode--image-yank-handler)))
|
||||||
|
|
||||||
;;;; org-roam
|
;;;; org-roam
|
||||||
(setq org-roam-directory "~/ownCloud/org-roam")
|
(setq org-roam-directory "~/sync/org-roam")
|
||||||
(org-roam-db-autosync-mode)
|
(org-roam-db-autosync-mode)
|
||||||
|
|
||||||
;; org-roam-ui
|
;; org-roam-ui
|
||||||
|
@ -1 +1,2 @@
|
|||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
source <(fzf --zsh)
|
||||||
|
@ -105,12 +105,6 @@ typeset -gU path cdpath manpath fpath
|
|||||||
autoload -U add-zsh-hook
|
autoload -U add-zsh-hook
|
||||||
add-zsh-hook -Uz chpwd() { print -Pn "\e]2;%m:%2~\a" }
|
add-zsh-hook -Uz chpwd() { print -Pn "\e]2;%m:%2~\a" }
|
||||||
|
|
||||||
# direnv
|
|
||||||
eval "$(direnv hook zsh)"
|
|
||||||
|
|
||||||
# starship.rs
|
|
||||||
eval "$(starship init zsh)"
|
|
||||||
|
|
||||||
# Ensure always loading the latest version of the emacs-vterm-zsh.sh file
|
# Ensure always loading the latest version of the emacs-vterm-zsh.sh file
|
||||||
if [[ "$INSIDE_EMACS" = 'vterm' ]] \
|
if [[ "$INSIDE_EMACS" = 'vterm' ]] \
|
||||||
&& [[ -n ${EMACS_VTERM_PATH} ]] \
|
&& [[ -n ${EMACS_VTERM_PATH} ]] \
|
||||||
|
@ -10,3 +10,10 @@ export FZF_COMPLETION_TRIGGER="~~"
|
|||||||
|
|
||||||
## default source for fzf
|
## default source for fzf
|
||||||
export FZF_DEFAULT_COMMAND="fd --type f --hidden --follow --exclude .git"
|
export FZF_DEFAULT_COMMAND="fd --type f --hidden --follow --exclude .git"
|
||||||
|
|
||||||
|
# CTRL-R
|
||||||
|
# CTRL-Y to copy the command into clipboard using wl-copy
|
||||||
|
export FZF_CTRL_R_OPTS="
|
||||||
|
--bind 'ctrl-y:execute-silent(echo -n {2..} | wl-copy)+abort'
|
||||||
|
--color header:italic
|
||||||
|
--header 'Press CTRL-Y to copy command into clipboard'"
|
||||||
|
Loading…
Reference in New Issue
Block a user