Cleanup stow path

This commit is contained in:
Marco Thomas committed 2022-01-24 11:37:17 +01:00
1 parent ba1fb5cd67
commit 1f7db961d8
5 files changed
+20 -14

No files matched your search

+7 -4
View File
@@ -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)
View File
Whitespace-only changes.
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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!"
+9 -6
View File
@@ -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!"