From 1f7db961d8d5aea0a51762866bb4ffd3f84ef6d2 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Mon, 24 Jan 2022 11:37:17 +0100 Subject: [PATCH] Cleanup stow path --- files/emacs/.emacs.d/init.org | 11 +++++++---- files/init.org | 0 scripts/laptop/monitor.sh | 4 ++-- scripts/reload_desktop.sh | 4 ++-- stow.sh | 15 +++++++++------ 5 files changed, 20 insertions(+), 14 deletions(-) delete mode 100644 files/init.org diff --git a/files/emacs/.emacs.d/init.org b/files/emacs/.emacs.d/init.org index 327f224..ac4485b 100644 --- a/files/emacs/.emacs.d/init.org +++ b/files/emacs/.emacs.d/init.org @@ -857,7 +857,7 @@ Sjoe my speling misttakes. #+end_src *** math -Who needs LaTeX when you can the power of unicode? +Who needs LaTeX when you can have the power of unicode? #+begin_src emacs-lisp :tangle yes (use-package math-symbol-lists :straight t @@ -917,7 +917,7 @@ Who needs LaTeX when you can the power of unicode? ("\\Gx" ?ξ) ("\\GX" ?Ξ) ("\\xi" ?ξ) ("\\Xi" ?Ξ) ("\\Gp" ?π) ("\\GP" ?Π) ("\\pi" ?π) ("\\Pi" ?Π) ("\\Gr" ?ρ) ("\\GR" ?Ρ) ("\\rho" ?ρ) - ("\\Gs" ?σ) ("\\GS" ?Σ) ("\\sig" ?σ) ("\\Sig" ?Σ) + ("\\Gs" ?σ) ("\\GS" ?Σ) ("\\sigma" ?σ) ("\\Sigma" ?Σ) ("\\Gt" ?τ) ("\\GT" ?Τ) ("\\tau" ?τ) ("\\Gph" ?ϕ) ("\\GPH" ?Φ) ("\\phi" ?ϕ) ("\\Phi" ?Φ) ("\\Gc" ?χ) ("\\GC" ?Χ) ("\\chi" ?χ) @@ -940,12 +940,15 @@ Built-in DocView isn't too nice to use. Keybinds: + =C-s=: search, just as in =swiper= + =C-s= (again): forward search -+ =C=r=: backward search ++ =C-r=: backward search #+begin_src emacs-lisp :tangle yes (use-package pdf-tools :straight t :config - (define-key pdf-view-mode-map (kbd "C-s") 'isearch-forward-regexp)) + (define-key pdf-view-mode-map [remap swiper] 'isearch-forward-regexp) + (define-key pdf-view-mode-map [remap evil-ex] 'pdf-view-goto-page) + (setq-default pdf-view-display-size 'fit-page) + (setq pdf-view-resize-factor 1.1)) ;; load necessary things, when a PDF gets opened (pdf-tools-install) diff --git a/files/init.org b/files/init.org deleted file mode 100644 index e69de29..0000000 diff --git a/scripts/laptop/monitor.sh b/scripts/laptop/monitor.sh index 312ecd6..95d6bdb 100755 --- a/scripts/laptop/monitor.sh +++ b/scripts/laptop/monitor.sh @@ -5,7 +5,7 @@ mon=$1 # when using a laptop, i want to easily switch screens if [ "$(hostname)" = "itomori" ]; then if [ ${mon} == "external" ]; then - notify-send -i /usr/share/icons/Papirus/48x48/devices/computer.svg "Screen update" "Switching to external monitor..." + notify-send -i /usr/share/icons/Papirus/48x48/status/notification-display-brightness-high.svg "Screen update" "Switching to external monitor..." sleep 2 # set layout for external monitor $HOME/.screenlayout/external.sh @@ -16,7 +16,7 @@ if [ "$(hostname)" = "itomori" ]; then xrandr --output DP-3 --scale 1.4 xrandr --output DP-4 --scale 1.4 elif [ ${mon} == "single" ]; then - notify-send -i /usr/share/icons/Papirus/48x48/devices/computer.svg "Screen update" "Switching to single monitor..." + notify-send -i /usr/share/icons/Papirus/48x48/status/notification-display-brightness-high.svg "Screen update" "Switching to single monitor..." sleep 2 # set layout for built in display xrandr --output eDP-1 --mode 2880x1800 --pos 0x0 --rotate normal --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off diff --git a/scripts/reload_desktop.sh b/scripts/reload_desktop.sh index 9894e47..4026840 100755 --- a/scripts/reload_desktop.sh +++ b/scripts/reload_desktop.sh @@ -1,7 +1,7 @@ #!/bin/sh # send notification -notify-send -i /usr/share/icons/Papirus/48x48/devices/computer-laptop.svg "Reload" "Reloading desktop..." +notify-send -i /usr/share/icons/Papirus/48x48/status/state_paused.svg "Reload" "Reloading desktop..." # bar killall -q polybar @@ -15,4 +15,4 @@ feh --bg-fill $HOME/data/Seafile/images/wallpaper/wallpaper.png source $HOME/.profile # send notification -notify-send -i /usr/share/icons/Papirus/48x48/devices/computer-laptop.svg "Reload" "Reloaded desktop" +notify-send -i /usr/share/icons/Papirus/48x48/status/state_running.svg "Reload" "Reload done!" diff --git a/stow.sh b/stow.sh index b8bfa3d..c962347 100755 --- a/stow.sh +++ b/stow.sh @@ -1,9 +1,9 @@ #!/bin/bash -FILES_DIR=$HOME/dots/files +FILES_DIR=$PWD/files OPTS=$1 -echo "You are about to stow all config files." +echo "You are about to stow all config files and fonts." echo "Do you want to proceed? [y]" read proceed @@ -12,9 +12,12 @@ if [ "${proceed}" != "y" ]; then exit fi -echo "Switching to ${FILES_DIR}" +echo "Stowing configs..." cd $FILES_DIR - -echo "STOWING..." stow ${OPTS} -v --ignore="init.org" --target="$HOME" * -echo "DONE!" +echo "Done!" + +echo "Stowing fonts..." +cd ../ +stow ${OPTS} -v --target="$HOME/.local/share/fonts" fonts +echo "Done!"