config: path adjustments
This commit is contained in:
parent
998fabe4f9
commit
f987d72b54
|
@ -430,8 +430,8 @@ Version 2019-11-04 2021-02-16"
|
|||
(require 'org-roam-protocol)
|
||||
|
||||
(setq org-roam-db-update-on-save nil
|
||||
org-roam-extract-new-file-path "${slug}.org"
|
||||
+org-roam-open-buffer-on-find-file nil)
|
||||
org-roam-extract-new-file-path "${slug}.org")
|
||||
;+org-roam-open-buffer-on-find-file nil)
|
||||
(add-hook 'org-capture-after-finalize-hook (lambda () (if (org-roam-file-p) (org-roam-db-sync))))
|
||||
|
||||
(setq my/org-roam-capture-props (concat ":properties:\n:id: ${slug}\n:created: %<" time-stamp-format ">\n:modified: <>\n:end:\n"))
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
},
|
||||
"main": {
|
||||
"lang": "auto",
|
||||
"lastfolder": "/home/janek/data/music",
|
||||
"lastfolder": "/home/janek/data/4-media/music/Ambient/BirdBoy",
|
||||
"maximized": false
|
||||
},
|
||||
"playlist": {
|
||||
|
@ -43,7 +43,7 @@
|
|||
"fontsize": 10,
|
||||
"rowsize": 43,
|
||||
"sort_fields": [
|
||||
"genre"
|
||||
"__path"
|
||||
],
|
||||
"sort_reverse": false
|
||||
},
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
XDG_DESKTOP_DIR="$HOME/.local/desktop"
|
||||
XDG_TEMPLATES_DIR="$HOME/.local/templates"
|
||||
XDG_DOWNLOAD_DIR="$HOME/data/5-incubator/downloads"
|
||||
XDG_DOWNLOAD_DIR="$HOME/data/5-incubator"
|
||||
XDG_MUSIC_DIR="$HOME/data/4-media/music"
|
||||
XDG_PICTURES_DIR="$HOME/data/4-media/images"
|
||||
XDG_VIDEOS_DIR="$HOME/data/4-media/videos"
|
||||
|
|
|
@ -55,14 +55,14 @@ for arg; do
|
|||
fi
|
||||
continue
|
||||
fi
|
||||
grid=$(expr $(tput cols) / \( 25 - \( $# / 2 \) \& $# \< 30 \| 5 \)) # TODO reduce grid when many PDFs
|
||||
grid=$(expr $(tput cols) / \( 25 - \( $# / 2 \) \& $# \< 30 \| 5 \))
|
||||
tmpfile="$prefix/$(basename "$arg")"
|
||||
mkdir -p "$prefix"
|
||||
case "$mime" in
|
||||
(*\ application/pdf\;*)
|
||||
echo Converting "$arg"
|
||||
test -f "$tmpfile-1.png" || pdftoppm -r 70 "$arg" "$tmpfile" -l $(expr $grid '*' 2)
|
||||
timg -W --grid=$grid "$tmpfile"*
|
||||
test -f "$tmpfile-1.ppm" || pdftoppm -r 70 "$arg" "$tmpfile" -l $(expr $grid \& \( $grid \> 4 \| $# \> 1 \) \| $grid '*' 2)
|
||||
timg -W --grid=$grid $tmpfile-{01..$grid}.ppm
|
||||
;;
|
||||
(*\ application/*document*)
|
||||
# https://ask.libreoffice.org/t/convert-to-command-line-parameter/840/4
|
||||
|
@ -180,11 +180,10 @@ if test "$ls" -o $# -le $(echo "$flags" | wc -w); then
|
|||
checkperm .
|
||||
# Alternative: find -exec ls -dl {} +
|
||||
{
|
||||
# TODO don't use * for ls array as spaces go awry
|
||||
timeout .6s sh -c "
|
||||
if which exa 2>/dev/null >&2
|
||||
then exa --color=always --long --group --classify --group-directories-first --all --all $flags ${ls[*]:-.}
|
||||
else $elevate ls -l $(test $# -gt ${#ls[@]} && echo '-d') --color=always --human-readable --si --group-directories-first --file-type --dereference-command-line-symlink-to-dir --all $flags ${ls[*]:-.}
|
||||
then exa --color=always --long --group --classify --group-directories-first --all --all $flags $(printf "'%s' " "${ls[@]:-.}")
|
||||
else $elevate ls -l $(test $# -gt ${#ls[@]} && echo '-d') --color=always --human-readable --si --group-directories-first --file-type --dereference-command-line-symlink-to-dir --all $flags $(printf "'%s' " "${ls[@]:-.}")
|
||||
fi
|
||||
" || $elevate ls $(test $# -gt ${#ls[@]} && echo "-d") --color=always --human-readable --si --dereference-command-line --all --sort=none $flags "${ls[@]:-.}"
|
||||
} | $pager --quit-if-one-screen
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh -e
|
||||
aurdir="$DATA/2-standards/dev/aur"
|
||||
aurdir="$DATA/1-projects/aur"
|
||||
test $# -eq 0 && cd "$aurdir" && exec $SHELL
|
||||
command=$1
|
||||
shift
|
||||
|
|
Loading…
Reference in New Issue