Fixed issue with files tangling, added and removed some packages

This commit is contained in:
Lucien Cartier-Tilet 2020-05-17 20:02:45 +02:00
parent f88e8cea66
commit c0e89be6fa
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 107 additions and 40 deletions

View File

@ -71,29 +71,29 @@ awesome awesome-terminal-fonts awesome-freedesktop-git base-devel bat biber \
bluez-firmware bluez-utils bookworm bzip2 ccls chicken chromium clisp cppcheck \ bluez-firmware bluez-utils bookworm bzip2 ccls chicken chromium clisp cppcheck \
cppreference cppreference-devhelp cpupower discord-canary discount dmenu-lpass \ cppreference cppreference-devhelp cpupower discord-canary discount dmenu-lpass \
docker docker-compose dockerfile-language-server-bin doxygen dunst emacs \ docker docker-compose dockerfile-language-server-bin doxygen dunst emacs \
emacs-org-mode exfat-utils farbfeld ffmpegthumbnailer findutils firefox flake8 \ emacs-org-mode exa exfat-utils farbfeld ffmpegthumbnailer findutils firefox \
freeglut fzf gcc-libs gdb gimp gnome-disk-utility gnome-epub-thumbnailer \ flake8 freeglut fzf gcc-libs gdb gimp gnome-disk-utility \
gnu-free-fonts gnuplot go-tools golangci-lint-bin graphviz htop \ gnome-epub-thumbnailer gnu-free-fonts gnuplot go-tools golangci-lint-bin \
i3-gaps-rounded-git i3lock-blur igdm-bin inetutils j4-dmenu-desktop \ graphviz htop i3-gaps-rounded-git i3lock-blur igdm-bin inetutils \
javascript-typescript-langserver js-beautify jfsutils jmtpfs lain-git less \ j4-dmenu-desktop javascript-typescript-langserver js-beautify jfsutils jmtpfs \
linux-headers lldb logrotate lvm2 ly meson minted man-db man-pages mpc mpd \ lain-git less linux-headers lldb logrotate ly meson minted man-db man-pages mpc \
mpd-rich-presence-discord-git mpv mupdf-tools nano ncdu ncmpcpp nemo-fileroller \ mpd mpd-rich-presence-discord-git mpv mupdf-tools nano ncdu ncmpcpp \
nemo-preview neofetch netctl networkmanager networkmanager-openvpn \ nemo-fileroller nemo-preview neofetch netctl networkmanager \
nm-connection-editor nodejs-vmd nomacs nordvpn-bin noto-fonts-emoji npm ntfs-3g \ networkmanager-openvpn nm-connection-editor nodejs-vmd nomacs nordvpn-bin \
numlockx openssh otf-fandol otf-ipafont p7zip pacman-contrib pandoc-bin pass \ noto-fonts-emoji npm ntfs-3g numlockx openssh otf-fandol otf-ipafont p7zip \
pavucontrol pdfpc picom-ibhagwan-git polybar powerline-fonts prettier \ pacman-contrib pandoc-bin pass pavucontrol pdfpc picom-ibhagwan-git polybar \
pulseaudio-bluetooth python-autoflake python-envtpl-git python-epc \ powerline-fonts prettier pulseaudio-bluetooth python-autoflake \
python-importmagic python-language-server python-nose python-pip python-ptvsd \ python-envtpl-git python-epc python-importmagic python-language-server \
python-pytest python-pywal qt5-imageformats qemu r raw-thumbnailer reflector \ python-nose python-pip python-ptvsd python-pytest python-pywal qt5-imageformats \
rofi rsync rtv ruby-rb-fsevent ruby-sass rustup samba scrot sent shadow \ qemu r raw-thumbnailer reflector ripgrep rofi rsync rtv ruby-rb-fsevent \
siji-git simplescreenrecorder sshfs st-luke-git sxiv texlive-bin \ ruby-sass rustup samba scrot sent shadow siji-git simplescreenrecorder sshfs \
texlive-langchinese texlive-langcyrillic texlive-langgreek \ st-luke-git sxiv texlive-bin texlive-langchinese texlive-langcyrillic \
texlive-langjapanese texlive-langkorean texlive-latexextra \ texlive-langgreek texlive-langjapanese texlive-langkorean texlive-latexextra \
texlive-localmanager-git texlive-most tmux tree ttf-arphic-uming ttf-baekmuk \ texlive-localmanager-git texlive-most tmux tree ttf-arphic-uming ttf-baekmuk \
ttf-dejavu ttf-google-fonts-opinionated-git ttf-hanazono ttf-joypixels \ ttf-dejavu ttf-google-fonts-opinionated-git ttf-hanazono ttf-joypixels \
ttf-koruri ttf-liberation ttf-monapo ttf-sazanami ttf-tibetan-machine \ ttf-koruri ttf-liberation ttf-monapo ttf-sazanami ttf-tibetan-machine \
typescript typescript-language-server-bin unicode-emoji unrar usbutils \ typescript typescript-language-server-bin unicode-emoji unrar usbutils valgrind \
valgrind vscode-css-languageserver-bin vscode-html-languageserver-bin w3m wget \ vscode-css-languageserver-bin vscode-html-languageserver-bin w3m wget \
x11-ssh-askpass xclip xdg-user-dirs-gtk xfsprogs xorg-drivers xorg-server \ x11-ssh-askpass xclip xdg-user-dirs-gtk xfsprogs xorg-drivers xorg-server \
xorg-xinit xss-lock xvkbd yaml-language-server-bin yapf xorg-xinit xss-lock xvkbd yaml-language-server-bin yapf
@ -104,6 +104,12 @@ for pkg in $PACKAGES
end end
printf "\n# Tangling org files ##########################################################\n\n" printf "\n# Tangling org files ##########################################################\n\n"
printf '\n\n==== Tangling awesome.org\n\n' && \
emacs -q --batch --eval '(require \'ob-tangle)' \
--eval '(setq org-confirm-babel-evaluate nil)' \
--eval '(org-babel-do-load-languages \'org-babel-load-languages \'((python . t)))' \
--eval '(org-babel-tangle-file "~/org/config/awesome.org")'
printf '\n\n==== Tangling bin.org\n\n' && \ printf '\n\n==== Tangling bin.org\n\n' && \
emacs -q --batch --eval '(require \'ob-tangle)' \ emacs -q --batch --eval '(require \'ob-tangle)' \
--eval '(setq org-confirm-babel-evaluate nil)' \ --eval '(setq org-confirm-babel-evaluate nil)' \
@ -134,12 +140,24 @@ emacs -q --batch --eval '(require \'ob-tangle)' \
--eval '(org-babel-do-load-languages \'org-babel-load-languages \'((python . t)))' \ --eval '(org-babel-do-load-languages \'org-babel-load-languages \'((python . t)))' \
--eval '(org-babel-tangle-file "~/org/config/nano.org")' --eval '(org-babel-tangle-file "~/org/config/nano.org")'
printf '\n\n==== Tangling picom.org\n\n' && \
emacs -q --batch --eval '(require \'ob-tangle)' \
--eval '(setq org-confirm-babel-evaluate nil)' \
--eval '(org-babel-do-load-languages \'org-babel-load-languages \'((python . t)))' \
--eval '(org-babel-tangle-file "~/org/config/picom.org")'
printf '\n\n==== Tangling polybar.org\n\n' && \ printf '\n\n==== Tangling polybar.org\n\n' && \
emacs -q --batch --eval '(require \'ob-tangle)' \ emacs -q --batch --eval '(require \'ob-tangle)' \
--eval '(setq org-confirm-babel-evaluate nil)' \ --eval '(setq org-confirm-babel-evaluate nil)' \
--eval '(org-babel-do-load-languages \'org-babel-load-languages \'((python . t)))' \ --eval '(org-babel-do-load-languages \'org-babel-load-languages \'((python . t)))' \
--eval '(org-babel-tangle-file "~/org/config/polybar.org")' --eval '(org-babel-tangle-file "~/org/config/polybar.org")'
printf '\n\n==== Tangling rustfmt.org\n\n' && \
emacs -q --batch --eval '(require \'ob-tangle)' \
--eval '(setq org-confirm-babel-evaluate nil)' \
--eval '(org-babel-do-load-languages \'org-babel-load-languages \'((python . t)))' \
--eval '(org-babel-tangle-file "~/org/config/rustfmt.org")'
printf '\n\n==== Tangling spacemacs.org\n\n' && \ printf '\n\n==== Tangling spacemacs.org\n\n' && \
emacs -q --batch --eval '(require \'ob-tangle)' \ emacs -q --batch --eval '(require \'ob-tangle)' \
--eval '(setq org-confirm-babel-evaluate nil)' \ --eval '(setq org-confirm-babel-evaluate nil)' \

View File

@ -296,29 +296,29 @@
bluez-firmware bluez-utils bookworm bzip2 ccls chicken chromium clisp cppcheck \ bluez-firmware bluez-utils bookworm bzip2 ccls chicken chromium clisp cppcheck \
cppreference cppreference-devhelp cpupower discord-canary discount dmenu-lpass \ cppreference cppreference-devhelp cpupower discord-canary discount dmenu-lpass \
docker docker-compose dockerfile-language-server-bin doxygen dunst emacs \ docker docker-compose dockerfile-language-server-bin doxygen dunst emacs \
emacs-org-mode exfat-utils farbfeld ffmpegthumbnailer findutils firefox flake8 \ emacs-org-mode exa exfat-utils farbfeld ffmpegthumbnailer findutils firefox \
freeglut fzf gcc-libs gdb gimp gnome-disk-utility gnome-epub-thumbnailer \ flake8 freeglut fzf gcc-libs gdb gimp gnome-disk-utility \
gnu-free-fonts gnuplot go-tools golangci-lint-bin graphviz htop \ gnome-epub-thumbnailer gnu-free-fonts gnuplot go-tools golangci-lint-bin \
i3-gaps-rounded-git i3lock-blur igdm-bin inetutils j4-dmenu-desktop \ graphviz htop i3-gaps-rounded-git i3lock-blur igdm-bin inetutils \
javascript-typescript-langserver js-beautify jfsutils jmtpfs lain-git less \ j4-dmenu-desktop javascript-typescript-langserver js-beautify jfsutils jmtpfs \
linux-headers lldb logrotate lvm2 ly meson minted man-db man-pages mpc mpd \ lain-git less linux-headers lldb logrotate ly meson minted man-db man-pages mpc \
mpd-rich-presence-discord-git mpv mupdf-tools nano ncdu ncmpcpp nemo-fileroller \ mpd mpd-rich-presence-discord-git mpv mupdf-tools nano ncdu ncmpcpp \
nemo-preview neofetch netctl networkmanager networkmanager-openvpn \ nemo-fileroller nemo-preview neofetch netctl networkmanager \
nm-connection-editor nodejs-vmd nomacs nordvpn-bin noto-fonts-emoji npm ntfs-3g \ networkmanager-openvpn nm-connection-editor nodejs-vmd nomacs nordvpn-bin \
numlockx openssh otf-fandol otf-ipafont p7zip pacman-contrib pandoc-bin pass \ noto-fonts-emoji npm ntfs-3g numlockx openssh otf-fandol otf-ipafont p7zip \
pavucontrol pdfpc picom-ibhagwan-git polybar powerline-fonts prettier \ pacman-contrib pandoc-bin pass pavucontrol pdfpc picom-ibhagwan-git polybar \
pulseaudio-bluetooth python-autoflake python-envtpl-git python-epc \ powerline-fonts prettier pulseaudio-bluetooth python-autoflake \
python-importmagic python-language-server python-nose python-pip python-ptvsd \ python-envtpl-git python-epc python-importmagic python-language-server \
python-pytest python-pywal qt5-imageformats qemu r raw-thumbnailer reflector \ python-nose python-pip python-ptvsd python-pytest python-pywal qt5-imageformats \
rofi rsync rtv ruby-rb-fsevent ruby-sass rustup samba scrot sent shadow \ qemu r raw-thumbnailer reflector ripgrep rofi rsync rtv ruby-rb-fsevent \
siji-git simplescreenrecorder sshfs st-luke-git sxiv texlive-bin \ ruby-sass rustup samba scrot sent shadow siji-git simplescreenrecorder sshfs \
texlive-langchinese texlive-langcyrillic texlive-langgreek \ st-luke-git sxiv texlive-bin texlive-langchinese texlive-langcyrillic \
texlive-langjapanese texlive-langkorean texlive-latexextra \ texlive-langgreek texlive-langjapanese texlive-langkorean texlive-latexextra \
texlive-localmanager-git texlive-most tmux tree ttf-arphic-uming ttf-baekmuk \ texlive-localmanager-git texlive-most tmux tree ttf-arphic-uming ttf-baekmuk \
ttf-dejavu ttf-google-fonts-opinionated-git ttf-hanazono ttf-joypixels \ ttf-dejavu ttf-google-fonts-opinionated-git ttf-hanazono ttf-joypixels \
ttf-koruri ttf-liberation ttf-monapo ttf-sazanami ttf-tibetan-machine \ ttf-koruri ttf-liberation ttf-monapo ttf-sazanami ttf-tibetan-machine \
typescript typescript-language-server-bin unicode-emoji unrar usbutils \ typescript typescript-language-server-bin unicode-emoji unrar usbutils valgrind \
valgrind vscode-css-languageserver-bin vscode-html-languageserver-bin w3m wget \ vscode-css-languageserver-bin vscode-html-languageserver-bin w3m wget \
x11-ssh-askpass xclip xdg-user-dirs-gtk xfsprogs xorg-drivers xorg-server \ x11-ssh-askpass xclip xdg-user-dirs-gtk xfsprogs xorg-drivers xorg-server \
xorg-xinit xss-lock xvkbd yaml-language-server-bin yapf xorg-xinit xss-lock xvkbd yaml-language-server-bin yapf
#+END_SRC #+END_SRC
@ -337,17 +337,66 @@
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: h-2e4fe0f5-a507-44c5-b69f-1935868b909d :CUSTOM_ID: h-2e4fe0f5-a507-44c5-b69f-1935868b909d
:END: :END:
Before tangling our configuration files, we need to create some directories
first so our files can be properly tangled. Heres the list of directories we
need to create:
#+NAME: dirs-tangled-files
| $HOME/.config/awesome |
| $HOME/.config/awesome/theme |
| $HOME/.config/emacs/private |
| $HOME/.config/fish |
| $HOME/.config/gtk-2.0 |
| $HOME/.config/gtk-3.0 |
| $HOME/.config/i3 |
| $HOME/.config/nano |
| $HOME/.config/ncmpcpp |
| $HOME/.config/neofetch |
| $HOME/.config/picom |
| $HOME/.config/polybar |
| $HOME/.config/yadm |
| $HOME/.local/bin |
| $HOME/org/capture |
#+NAME: gen-dir-tangle
#+BEGIN_SRC emacs-lisp :exports none :var dirs=dirs-tangled-files :cache yes
(mapconcat (lambda (x) (format "mkdir -p %s" (car x)))
dirs
"\n")
#+END_SRC
#+RESULTS[776d0e1f47d7a00ba1cf1b777e346ba41a1064a6]: gen-dir-tangle
#+begin_example
mkdir -p $HOME/.config/awesome
mkdir -p $HOME/.config/awesome/theme
mkdir -p $HOME/.config/emacs/private
mkdir -p $HOME/.config/fish
mkdir -p $HOME/.config/gtk-2.0
mkdir -p $HOME/.config/gtk-3.0
mkdir -p $HOME/.config/i3
mkdir -p $HOME/.config/nano
mkdir -p $HOME/.config/ncmpcpp
mkdir -p $HOME/.config/neofetch
mkdir -p $HOME/.config/picom
mkdir -p $HOME/.config/polybar
mkdir -p $HOME/.config/yadm
mkdir -p $HOME/.local/bin
mkdir -p $HOME/org/capture
#+end_example
The next step is to tangle all the Org files. Here is the list of files that The next step is to tangle all the Org files. Here is the list of files that
are to be tangled: are to be tangled:
#+NAME: tangled-files #+NAME: tangled-files
| filename | | filename |
|---------------| |---------------|
| awesome.org |
| bin.org | | bin.org |
| fish.org | | fish.org |
| i3.org | | i3.org |
| index.org | | index.org |
| nano.org | | nano.org |
| picom.org |
| polybar.org | | polybar.org |
| rustfmt.org |
| spacemacs.org | | spacemacs.org |
| tmux.org | | tmux.org |