Cleanup stow path

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

View File

@@ -857,7 +857,7 @@ Sjoe my speling misttakes.
#+end_src #+end_src
*** math *** 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 #+begin_src emacs-lisp :tangle yes
(use-package math-symbol-lists (use-package math-symbol-lists
:straight t :straight t
@@ -917,7 +917,7 @@ Who needs LaTeX when you can the power of unicode?
("\\Gx" ) ("\\GX" ) ("\\xi" ) ("\\Xi" ) ("\\Gx" ) ("\\GX" ) ("\\xi" ) ("\\Xi" )
("\\Gp" ) ("\\GP" ) ("\\pi" ) ("\\Pi" ) ("\\Gp" ) ("\\GP" ) ("\\pi" ) ("\\Pi" )
("\\Gr" ?ρ) ("\\GR" ?Ρ) ("\\rho" ?ρ) ("\\Gr" ?ρ) ("\\GR" ?Ρ) ("\\rho" ?ρ)
("\\Gs" ?σ) ("\\GS" ) ("\\sig" ?σ) ("\\Sig" ) ("\\Gs" ?σ) ("\\GS" ) ("\\sigma" ?σ) ("\\Sigma" )
("\\Gt" ) ("\\GT" ?Τ) ("\\tau" ) ("\\Gt" ) ("\\GT" ?Τ) ("\\tau" )
("\\Gph" ) ("\\GPH" ) ("\\phi" ) ("\\Phi" ) ("\\Gph" ) ("\\GPH" ) ("\\phi" ) ("\\Phi" )
("\\Gc" ) ("\\GC" ?Χ) ("\\chi" ) ("\\Gc" ) ("\\GC" ?Χ) ("\\chi" )
@@ -940,12 +940,15 @@ Built-in DocView isn't too nice to use.
Keybinds: Keybinds:
+ =C-s=: search, just as in =swiper= + =C-s=: search, just as in =swiper=
+ =C-s= (again): forward search + =C-s= (again): forward search
+ =C=r=: backward search + =C-r=: backward search
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(use-package pdf-tools (use-package pdf-tools
:straight t :straight t
:config :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 ;; load necessary things, when a PDF gets opened
(pdf-tools-install) (pdf-tools-install)

View File

View File

@@ -5,7 +5,7 @@ mon=$1
# when using a laptop, i want to easily switch screens # when using a laptop, i want to easily switch screens
if [ "$(hostname)" = "itomori" ]; then if [ "$(hostname)" = "itomori" ]; then
if [ ${mon} == "external" ]; 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 sleep 2
# set layout for external monitor # set layout for external monitor
$HOME/.screenlayout/external.sh $HOME/.screenlayout/external.sh
@@ -16,7 +16,7 @@ if [ "$(hostname)" = "itomori" ]; then
xrandr --output DP-3 --scale 1.4 xrandr --output DP-3 --scale 1.4
xrandr --output DP-4 --scale 1.4 xrandr --output DP-4 --scale 1.4
elif [ ${mon} == "single" ]; then 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 sleep 2
# set layout for built in display # 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 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

View File

@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# send notification # 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 # bar
killall -q polybar killall -q polybar
@@ -15,4 +15,4 @@ feh --bg-fill $HOME/data/Seafile/images/wallpaper/wallpaper.png
source $HOME/.profile source $HOME/.profile
# send notification # 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!"

15
stow.sh
View File

@@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
FILES_DIR=$HOME/dots/files FILES_DIR=$PWD/files
OPTS=$1 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]" echo "Do you want to proceed? [y]"
read proceed read proceed
@@ -12,9 +12,12 @@ if [ "${proceed}" != "y" ]; then
exit exit
fi fi
echo "Switching to ${FILES_DIR}" echo "Stowing configs..."
cd $FILES_DIR cd $FILES_DIR
echo "STOWING..."
stow ${OPTS} -v --ignore="init.org" --target="$HOME" * 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!"