diff --git a/.config/ranger/scope.sh b/.config/ranger/scope.sh index 70dc2f61..c5f38467 100755 --- a/.config/ranger/scope.sh +++ b/.config/ranger/scope.sh @@ -92,8 +92,10 @@ case "$mimetype" in # Ascii-previews of images: image/*) - img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;; - ## Alternative light preview. + # img2txt --gamma=0.6 --width="$width" "$path" && exit 4 || exit 1;; + exiftool "$path" && exit 5 + # # Use sed to remove spaces so the output fits into the narrow window + try mediainfo "$path" && { dump | trim | sed 's/ \+:/: /;'; exit 5; } || exit 1;; # if have mediainfo; then # mediainfo "$path" | sed 's/ \+:/: /;' # success && exit 5 diff --git a/.emacs.d/modes.el b/.emacs.d/modes.el index d8a8d482..c2988597 100644 --- a/.emacs.d/modes.el +++ b/.emacs.d/modes.el @@ -458,7 +458,7 @@ properly escaped with double-quotes in case it has spaces." (defun python-my-compile () "Use compile to run python programs." (interactive) - (compile (concat python-compiler " " buffer-file-name)) + (compile (concat python-compiler " \"" buffer-file-name "\"")) ) (setq compilation-scroll-output t) (local-set-key "\C-c\C-c" 'python-my-compile) diff --git a/.scripts/homeinit b/.scripts/homeinit index 7b21dbb0..8705f932 100755 --- a/.scripts/homeinit +++ b/.scripts/homeinit @@ -33,7 +33,7 @@ ICIiIC1uYyAiJEAiCmVsc2UKICAgIGVtYWNzY2xpZW50IC1hICIiIC10ICIkQCIKZmkK ' | base64 -d > "'"'"$EMFILE"'"'" && chmod 755 "'"'"$EMFILE"'"'"" sudo sh -c "umask 022 && echo 'IyEvYmluL3NoCmVtYWNzY2xpZW50IC1hICIiIC10ICIkQCIK -' | base64 -d > "'"'"$EMCFILE"'"'" && chmod 755 "'"'"$EMFILE"'"'"" +' | base64 -d > "'"'"$EMCFILE"'"'" && chmod 755 "'"'"$EMCFILE"'"'"" fi fi