summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <amin@aminb.org>2018-04-29 02:09:23 -0400
committerAmin Bandali <amin@aminb.org>2018-04-29 02:09:23 -0400
commit69a6fe26a32906fa48b71bd32b007d65eb2c9d04 (patch)
tree04b8385d5ca3e6474ba6d80067d74ac0df2ba9f9
parent4f183f2aa83af08c6c36bd982e2726fb1ac25d4c (diff)
downloadconfigs-69a6fe26a32906fa48b71bd32b007d65eb2c9d04.tar.gz
configs-69a6fe26a32906fa48b71bd32b007d65eb2c9d04.tar.xz
configs-69a6fe26a32906fa48b71bd32b007d65eb2c9d04.zip
[rc/{xdg,zathura}] migrate XDG dirs and zathura configs to new setup
Diffstat (limited to '')
-rw-r--r--rc.org43
-rw-r--r--xdg/.config/user-dirs.dirs8
-rw-r--r--zathura/.config/zathura/zathurarc6
-rwxr-xr-xzathura/.local/bin/zathura-sync.sh7
4 files changed, 43 insertions, 21 deletions
diff --git a/rc.org b/rc.org
index b4c80d5..f6d24b7 100644
--- a/rc.org
+++ b/rc.org
@@ -3496,6 +3496,36 @@ switch="Alt+x"
insert_pass="Alt+n"
#+end_src
+** XDG
+:PROPERTIES:
+:header-args+: :tangle ~/.config/user-dirs.dirs
+:END:
+
+#+begin_src conf
+XDG_DESKTOP_DIR="$HOME/Desktop"
+XDG_DOCUMENTS_DIR="$HOME/usr/docs"
+XDG_DOWNLOAD_DIR="$HOME/usr/dls"
+XDG_MUSIC_DIR="$HOME/usr/music"
+XDG_PICTURES_DIR="$HOME/usr/pics"
+XDG_PUBLICSHARE_DIR="$HOME/usr/Public"
+XDG_TEMPLATES_DIR="$HOME/usr/Templates"
+XDG_VIDEOS_DIR="$HOME/usr/vids"
+#+end_src
+
+** Zathura
+:PROPERTIES:
+:header-args+: :tangle ~/.config/zathura/zathurarc
+:END:
+
+#+begin_src conf
+set smooth-scroll true
+set selection-clipboard clipboard
+set zoom-step 05
+set default-bg "#272727"
+set statusbar-bg "#272727"
+set inputbar-bg "#373737"
+#+end_src
+
* Scripts
This section contains various useful scripts and the ones used by the
@@ -3653,6 +3683,19 @@ Persistent=true
WantedBy=timers.target
#+end_src
+** zathura-sync.sh
+:PROPERTIES:
+:header-args+: :tangle ~/.local/bin/zathura-sync.sh :shebang "#!/bin/sh"
+:END:
+
+#+begin_src sh
+pos="$1"
+pdffile="$2"
+zathura --synctex-forward "$pos" "$pdffile" || \
+ (
+ zathura -x "emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"%{input}\")) (goto-line %{line}))'" "$pdffile" &
+ sleep 1; zathura --synctex-forward "$pos" "$pdffile" )
+#+end_src
** Fun :)
*** eat-em
diff --git a/xdg/.config/user-dirs.dirs b/xdg/.config/user-dirs.dirs
deleted file mode 100644
index 58d3318..0000000
--- a/xdg/.config/user-dirs.dirs
+++ /dev/null
@@ -1,8 +0,0 @@
-XDG_DESKTOP_DIR="$HOME/Desktop"
-XDG_DOCUMENTS_DIR="$HOME/usr/docs"
-XDG_DOWNLOAD_DIR="$HOME/usr/dls"
-XDG_MUSIC_DIR="$HOME/usr/music"
-XDG_PICTURES_DIR="$HOME/usr/pics"
-XDG_PUBLICSHARE_DIR="$HOME/usr/Public"
-XDG_TEMPLATES_DIR="$HOME/usr/Templates"
-XDG_VIDEOS_DIR="$HOME/usr/vids"
diff --git a/zathura/.config/zathura/zathurarc b/zathura/.config/zathura/zathurarc
deleted file mode 100644
index 74d70b5..0000000
--- a/zathura/.config/zathura/zathurarc
+++ /dev/null
@@ -1,6 +0,0 @@
-set smooth-scroll true
-set selection-clipboard clipboard
-set zoom-step 05
-set default-bg "#272727"
-set statusbar-bg "#272727"
-set inputbar-bg "#373737"
diff --git a/zathura/.local/bin/zathura-sync.sh b/zathura/.local/bin/zathura-sync.sh
deleted file mode 100755
index 70aa8c9..0000000
--- a/zathura/.local/bin/zathura-sync.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-pos="$1"
-pdffile="$2"
-zathura --synctex-forward "$pos" "$pdffile" || \
- (
- zathura -x "emacsclient --eval '(progn (switch-to-buffer (file-name-nondirectory \"%{input}\")) (goto-line %{line}))'" "$pdffile" &
- sleep 1; zathura --synctex-forward "$pos" "$pdffile" ) \ No newline at end of file