Browse Source

better org files, updated installation packages

master
parent
commit
0243f490f6
Signed by: phundrak <lucien@phundrak.com> GPG Key ID: BD7789E705CB8DCA
33 changed files with 2967 additions and 315 deletions
  1. +147
    -143
      .config/rofi/config.rasi
  2. +6
    -5
      .config/yadm/bootstrap
  3. BIN
      .config/yadm/files.gpg
  4. +1
    -1
      .local/share/applications/FlowScape.desktop
  5. +1
    -1
      .spacemacs
  6. +1
    -0
      org/config/LICENSE.md
  7. +132
    -27
      org/config/awesome.org
  8. +58
    -10
      org/config/bin.org
  9. +71
    -49
      org/config/fish.org
  10. +4
    -7
      org/config/headers
  11. +2
    -2
      org/config/i3.org
  12. BIN
      org/config/img/emacs.png.webp
  13. BIN
      org/config/img/ncmpcpp-directory.png
  14. BIN
      org/config/img/ncmpcpp-directory.png.webp
  15. BIN
      org/config/img/ncmpcpp-queue.png
  16. BIN
      org/config/img/ncmpcpp-queue.png.webp
  17. BIN
      org/config/img/ncmpcpp-visualizer.png
  18. BIN
      org/config/img/ncmpcpp-visualizer.png.webp
  19. BIN
      org/config/img/neofetch.png.webp
  20. BIN
      org/config/img/rofi.png.webp
  21. +804
    -0
      org/config/index.html
  22. +5
    -39
      org/config/index.org
  23. +8
    -7
      org/config/installation.org
  24. +2
    -2
      org/config/nano.org
  25. +74
    -0
      org/config/ncmpcpp.org
  26. +1072
    -0
      org/config/neofetch.html
  27. +523
    -0
      org/config/neofetch.org
  28. +2
    -2
      org/config/picom.org
  29. +2
    -2
      org/config/polybar.org
  30. +2
    -2
      org/config/rustfmt.org
  31. +16
    -0
      org/config/sitemap.org
  32. +32
    -14
      org/config/spacemacs.org
  33. +2
    -2
      org/config/tmux.org

+ 147
- 143
.config/rofi/config.rasi View File

@@ -1,146 +1,150 @@
/* -*- mode: css; -*- */
configuration {
modi: "combi";
/* width: 50; */
/* lines: 15;*/
/* columns: 1;*/
/* font: "mono 12";*/
/* bw: 1;*/
/* location: 0;*/
/* padding: 5;*/
/* yoffset: 0;*/
/* xoffset: 0;*/
/* fixed-num-lines: true;*/
/* show-icons: false;*/
/* terminal: "rofi-sensible-terminal";*/
/* ssh-client: "ssh";*/
/* ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]";*/
/* run-command: "{cmd}";*/
/* run-list-command: "";*/
/* run-shell-command: "{terminal} -e {cmd}";*/
/* window-command: "wmctrl -i -R {window}";*/
/* window-match-fields: "all";*/
/* icon-theme: ;*/
/* drun-match-fields: "name,generic,exec,categories";*/
/* drun-show-actions: false;*/
/* drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]";*/
/* disable-history: false;*/
/* ignored-prefixes: "";*/
/* sort: false; */
/* sorting-method: ;*/
/* case-sensitive: false;*/
/* cycle: true;*/
/* sidebar-mode: false;*/
/* eh: 1;*/
/* auto-select: false;*/
/* parse-hosts: false;*/
/* parse-known-hosts: true;*/
combi-modi: "window,drun,ssh,combi";
/* matching: "normal";*/
/* tokenize: true;*/
/* m: "-5";*/
/* line-margin: 2;*/
/* line-padding: 1;*/
/* filter: ;*/
/* separator-style: "dash";*/
/* hide-scrollbar: false;*/
/* fullscreen: false;*/
/* fake-transparency: false;*/
/* dpi: -1;*/
/* threads: 0;*/
/* scrollbar-width: 8;*/
/* scroll-method: 0;*/
/* fake-background: "screenshot";*/
/* window-format: "{w} {c} {t}";*/
/* click-to-exit: true;*/
/* show-match: true;*/
theme: "~/.cache/wal/colors-rofi-dark.rasi";
/* color-normal: ;*/
/* color-urgent: ;*/
/* color-active: ;*/
/* color-window: ;*/
/* max-history-size: 25;*/
/* combi-hide-mode-prefix: false;*/
/* matching-negate-char: '-' /* unsupported */;*/
/* cache-dir: ;*/
/* pid: "/run/user/1000/rofi.pid";*/
/* display-window: ;*/
/* display-windowcd: ;*/
/* display-run: ;*/
/* display-ssh: ;*/
/* display-drun: ;*/
/* display-combi: ;*/
/* display-keys: ;*/
/* kb-primary-paste: "Control+V,Shift+Insert";*/
/* kb-secondary-paste: "Control+v,Insert";*/
/* kb-clear-line: "Control+w";*/
/* kb-move-front: "Control+a";*/
/* kb-move-end: "Control+e";*/
/* kb-move-word-back: "Alt+b,Control+Left";*/
/* kb-move-word-forward: "Alt+f,Control+Right";*/
/* kb-move-char-back: "Left,Control+b";*/
/* kb-move-char-forward: "Right,Control+f";*/
/* kb-remove-word-back: "Control+Alt+h,Control+BackSpace";*/
/* kb-remove-word-forward: "Control+Alt+d";*/
/* kb-remove-char-forward: "Delete,Control+d";*/
/* kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h";*/
/* kb-remove-to-eol: "Control+k";*/
/* kb-remove-to-sol: "Control+u";*/
/* kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";*/
/* kb-accept-custom: "Control+Return";*/
/* kb-accept-alt: "Shift+Return";*/
/* kb-delete-entry: "Shift+Delete";*/
/* kb-mode-next: "Shift+Right,Control+Tab";*/
/* kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";*/
/* kb-row-left: "Control+Page_Up";*/
/* kb-row-right: "Control+Page_Down";*/
/* kb-row-up: "Up,Control+p,ISO_Left_Tab";*/
/* kb-row-down: "Down,Control+n";*/
/* kb-row-tab: "Tab";*/
/* kb-page-prev: "Page_Up";*/
/* kb-page-next: "Page_Down";*/
/* kb-row-first: "Home,KP_Home";*/
/* kb-row-last: "End,KP_End";*/
/* kb-row-select: "Control+space";*/
/* kb-screenshot: "Alt+S";*/
/* kb-ellipsize: "Alt+period";*/
/* kb-toggle-case-sensitivity: "grave,dead_grave";*/
/* kb-toggle-sort: "Alt+grave";*/
/* kb-cancel: "Escape,Control+g,Control+bracketleft";*/
/* kb-custom-1: "Alt+1";*/
/* kb-custom-2: "Alt+2";*/
/* kb-custom-3: "Alt+3";*/
/* kb-custom-4: "Alt+4";*/
/* kb-custom-5: "Alt+5";*/
/* kb-custom-6: "Alt+6";*/
/* kb-custom-7: "Alt+7";*/
/* kb-custom-8: "Alt+8";*/
/* kb-custom-9: "Alt+9";*/
/* kb-custom-10: "Alt+0";*/
/* kb-custom-11: "Alt+exclam";*/
/* kb-custom-12: "Alt+at";*/
/* kb-custom-13: "Alt+numbersign";*/
/* kb-custom-14: "Alt+dollar";*/
/* kb-custom-15: "Alt+percent";*/
/* kb-custom-16: "Alt+dead_circumflex";*/
/* kb-custom-17: "Alt+ampersand";*/
/* kb-custom-18: "Alt+asterisk";*/
/* kb-custom-19: "Alt+parenleft";*/
/* kb-select-1: "Super+1";*/
/* kb-select-2: "Super+2";*/
/* kb-select-3: "Super+3";*/
/* kb-select-4: "Super+4";*/
/* kb-select-5: "Super+5";*/
/* kb-select-6: "Super+6";*/
/* kb-select-7: "Super+7";*/
/* kb-select-8: "Super+8";*/
/* kb-select-9: "Super+9";*/
/* kb-select-10: "Super+0";*/
/* ml-row-left: "ScrollLeft";*/
/* ml-row-right: "ScrollRight";*/
/* ml-row-up: "ScrollUp";*/
/* ml-row-down: "ScrollDown";*/
/* me-select-entry: "MousePrimary";*/
/* me-accept-entry: "MouseDPrimary";*/
/* me-accept-custom: "Control+MouseDPrimary";*/
/* columns: 4; */
combi-modi: [window,drun,ssh];
location: 0;
/* modi: [window,drun,ssh,combi]; */
lines: 20;
parse-hosts: false;
parse-known-hosts: false;
terminal: "st";
/* theme: "~/.cache/wal/colors-rofi-dark.rasi"; */
/* width: 50; */
/* auto-select: false;*/
/* bw: 1; */
/* cache-dir: ;*/
/* case-sensitive: false;*/
/* click-to-exit: true;*/
/* color-active: ;*/
/* color-normal: ;*/
/* color-urgent: ;*/
/* color-window: ;*/
/* combi-hide-mode-prefix: false;*/
/* combi-modi: "window,drun,ssh,combi"; */
/* cycle: true;*/
/* disable-history: false; */
/* display-combi: ;*/
/* display-drun: ;*/
/* display-keys: ;*/
/* display-run: ;*/
/* display-ssh: ;*/
/* display-window: ;*/
/* display-windowcd: ;*/
/* dpi: -1;*/
/* drun-display-format: "{name} [<span weight='light' size='small'><i>({generic})</i></span>]"; */
/* drun-match-fields: "name,generic,exec,categories"; */
/* drun-show-actions: false;*/
/* eh: 1;*/
/* fake-background: "screenshot";*/
/* fake-transparency: false;*/
/* filter: ;*/
/* fixed-num-lines: true;*/
/* font: "mono 12";*/
/* fullscreen: false;*/
/* hide-scrollbar: false;*/
/* icon-theme: ""; */
/* ignored-prefixes: "";*/
/* kb-accept-alt: "Shift+Return";*/
/* kb-accept-custom: "Control+Return";*/
/* kb-accept-entry: "Control+j,Control+m,Return,KP_Enter";*/
/* kb-cancel: "Escape,Control+g,Control+bracketleft";*/
/* kb-clear-line: "Control+w";*/
/* kb-custom-10: "Alt+0";*/
/* kb-custom-11: "Alt+exclam";*/
/* kb-custom-12: "Alt+at";*/
/* kb-custom-13: "Alt+numbersign";*/
/* kb-custom-14: "Alt+dollar";*/
/* kb-custom-15: "Alt+percent";*/
/* kb-custom-16: "Alt+dead_circumflex";*/
/* kb-custom-17: "Alt+ampersand";*/
/* kb-custom-18: "Alt+asterisk";*/
/* kb-custom-19: "Alt+parenleft";*/
/* kb-custom-1: "Alt+1";*/
/* kb-custom-2: "Alt+2";*/
/* kb-custom-3: "Alt+3";*/
/* kb-custom-4: "Alt+4";*/
/* kb-custom-5: "Alt+5";*/
/* kb-custom-6: "Alt+6";*/
/* kb-custom-7: "Alt+7";*/
/* kb-custom-8: "Alt+8";*/
/* kb-custom-9: "Alt+9";*/
/* kb-delete-entry: "Shift+Delete";*/
/* kb-ellipsize: "Alt+period";*/
/* kb-mode-next: "Shift+Right,Control+Tab";*/
/* kb-mode-previous: "Shift+Left,Control+ISO_Left_Tab";*/
/* kb-move-char-back: "Left,Control+b";*/
/* kb-move-char-forward: "Right,Control+f";*/
/* kb-move-end: "Control+e";*/
/* kb-move-front: "Control+a";*/
/* kb-move-word-back: "Alt+b,Control+Left";*/
/* kb-move-word-forward: "Alt+f,Control+Right";*/
/* kb-page-next: "Page_Down";*/
/* kb-page-prev: "Page_Up";*/
/* kb-primary-paste: "Control+V,Shift+Insert";*/
/* kb-remove-char-back: "BackSpace,Shift+BackSpace,Control+h";*/
/* kb-remove-char-forward: "Delete,Control+d";*/
/* kb-remove-to-eol: "Control+k";*/
/* kb-remove-to-sol: "Control+u";*/
/* kb-remove-word-back: "Control+Alt+h,Control+BackSpace";*/
/* kb-remove-word-forward: "Control+Alt+d";*/
/* kb-row-down: "Down,Control+n";*/
/* kb-row-first: "Home,KP_Home";*/
/* kb-row-last: "End,KP_End";*/
/* kb-row-left: "Control+Page_Up";*/
/* kb-row-right: "Control+Page_Down";*/
/* kb-row-select: "Control+space";*/
/* kb-row-tab: "Tab";*/
/* kb-row-up: "Up,Control+p,ISO_Left_Tab";*/
/* kb-screenshot: "Alt+S";*/
/* kb-secondary-paste: "Control+v,Insert";*/
/* kb-select-10: "Super+0";*/
/* kb-select-1: "Super+1";*/
/* kb-select-2: "Super+2";*/
/* kb-select-3: "Super+3";*/
/* kb-select-4: "Super+4";*/
/* kb-select-5: "Super+5";*/
/* kb-select-6: "Super+6";*/
/* kb-select-7: "Super+7";*/
/* kb-select-8: "Super+8";*/
/* kb-select-9: "Super+9";*/
/* kb-toggle-case-sensitivity: "grave,dead_grave";*/
/* kb-toggle-sort: "Alt+grave";*/
/* line-margin: 2;*/
/* line-padding: 1;*/
/* m: "-5";*/
/* matching-negate-char: '-' /* unsupported */;*/
/* matching: "normal";*/
/* max-history-size: 25;*/
/* me-accept-custom: "Control+MouseDPrimary";*/
/* me-accept-entry: "MouseDPrimary";*/
/* me-select-entry: "MousePrimary";*/
/* ml-row-down: "ScrollDown";*/
/* ml-row-left: "ScrollLeft";*/
/* ml-row-right: "ScrollRight";*/
/* ml-row-up: "ScrollUp";*/
/* padding: 5; */
/* pid: "/run/user/1000/rofi.pid";*/
/* run-command: "{cmd}";*/
/* run-list-command: "";*/
/* run-shell-command: "{terminal} -e {cmd}";*/
/* scroll-method: 0;*/
/* scrollbar-width: 8;*/
/* separator-style: "dash";*/
/* show-icons: true; */
/* show-match: true;*/
/* show: combi; */
/* sidebar-mode: true; */
/* sort: true; */
/* sorting-method: ;*/
/* ssh-client: "ssh";*/
/* ssh-command: "{terminal} -e {ssh-client} {host} [-p {port}]";*/
/* threads: 0;*/
/* tokenize: true;*/
/* window-command: "wmctrl -i -R {window}";*/
/* window-format: "{w} {c} {t}";*/
/* window-match-fields: "all";*/
/* xoffset: 0; */
/* yoffset: 0; */
}
@import "flamingo"
@theme "~/.cache/wal/colors-rofi-dark.rasi"

+ 6
- 5
.config/yadm/bootstrap View File

@@ -85,14 +85,15 @@ pavucontrol pdfpc picom-ibhagwan-git polybar powerline-fonts prettier \
pulseaudio-bluetooth python-autoflake python-envtpl-git python-epc \
python-importmagic python-language-server python-nose python-pip python-ptvsd \
python-pytest python-pywal qt5-imageformats qemu r raw-thumbnailer reflector \
rofi rsync rtv rustup samba scrot sent shadow siji-git simplescreenrecorder \
sshfs st-luke-git sxiv texlive-bin texlive-langchinese texlive-langcyrillic \
texlive-langgreek texlive-langjapanese texlive-langkorean texlive-latexextra \
rofi rsync rtv ruby-rb-fsevent ruby-sass rustup samba scrot sent shadow \
siji-git simplescreenrecorder sshfs st-luke-git sxiv texlive-bin \
texlive-langchinese texlive-langcyrillic texlive-langgreek \
texlive-langjapanese texlive-langkorean texlive-latexextra \
texlive-localmanager-git texlive-most tmux tree ttf-arphic-uming ttf-baekmuk \
ttf-dejavu ttf-google-fonts-opinionated-git ttf-hanazono ttf-joypixels \
ttf-koruri ttf-liberation ttf-monapo ttf-sazanami ttf-tibetan-machine \
typescript typescript-language-server-bin unicode-emoji unrar usbutils valgrind \
vscode-css-languageserver-bin vscode-html-languageserver-bin w3m wget \
typescript typescript-language-server-bin unicode-emoji unrar usbutils \
valgrind vscode-css-languageserver-bin vscode-html-languageserver-bin w3m wget \
x11-ssh-askpass xclip xdg-user-dirs-gtk xfsprogs xorg-drivers xorg-server \
xorg-xinit xss-lock xvkbd yaml-language-server-bin yapf



BIN
.config/yadm/files.gpg View File


+ 1
- 1
.local/share/applications/FlowScape.desktop View File

@@ -2,7 +2,7 @@
Version=1.5
Name=FlowScape
Comment=Create gorgeous 3D landscapes with ease.
Exec=/home/phundrak/FlowScape/FlowScape.x86_64
Exec=/usr/bin/prime-run /home/phundrak/FlowScape/FlowScape.x86_64
Path=/home/phundrak/FlowScape
Icon=/home/phundrak/FlowScape/icon.jpg
Terminal=false


+ 1
- 1
.spacemacs View File

@@ -124,7 +124,7 @@ This function is called at the very end of Spacemacs initialization."
'(org-trello-current-prefix-keybinding "C-c o" nil (org-trello))
'(package-selected-packages
(quote
(org-ref lsp-dart mu4e-maildirs-extension mu4e-alert helm-mu xkcd vmd-mode visual-fill-column typit mmt sudoku restclient-helm pony-mode pacmacs ox-reveal outorg ob-restclient ob-http meson-mode ibuffer-projectile lv helm-w3m w3m graphviz-dot-mode flycheck-gometalinter transient ess-smart-equals ess-R-data-view ctable ess julia-mode eshell-git-prompt emoji-cheat-sheet-plus edit-indirect dockerfile-mode docker docker-tramp company-restclient restclient know-your-http-well company-quickhelp company-emoji company-emacs-eclim eclim atomic-chrome websocket 2048-game ox-gfm slime-company slime common-lisp-snippets erlang insert-shebang fish-mode company-shell faceup racket-mode treepy graphql yapfify yaml-mode xterm-color web-beautify twittering-mode toml-mode tagedit stickyfunc-enhance smeargle slim-mode shell-pop selectric-mode scss-mode sass-mode ranger rainbow-identifiers pytest pyenv-mode py-isort pug-mode plantuml-mode phpunit phpcbf php-auto-yasnippets pdf-tools tablist ox-pandoc orgit org-present org-pomodoro alert log4e gntp ob-elixir multi-term markdown-toc magit-gitflow magit-gh-pulls livid-mode live-py-mode json-snatcher js2-refactor js-doc htmlize hlint-refactor hindent helm-pydoc helm-hoogle helm-gitignore helm-css-scss haskell-snippets haml-mode gnuplot glsl-mode gitignore-mode github-search github-clone github-browse-file gitconfig-mode gitattributes-mode git-messenger gist gh marshal logito pcache ht gh-md flyspell-correct-helm flyspell-correct flycheck-rust pos-tip flycheck-mix flycheck-credo eshell-z eshell-prompt-extras esh-help drupal-mode disaster cython-mode dash-functional tern company-ghci company-ghc ghc color-identifiers-mode cmm-mode clang-format cargo auto-dictionary alchemist modern-cpp-font-lock yasnippet-snippets x86-lookup web-mode srefactor racer pyvenv pip-requirements pandoc-mode org-projectile org-category-capture org-mime org-download nasm-mode json-reformat intero imenu-list hy-mode git-timemachine git-link geiser flycheck-pos-tip flycheck-haskell evil-magit emmet-mode cmake-mode anaconda-mode rust-mode elixir-mode flycheck haskell-mode multiple-cursors skewer-mode simple-httpd markdown-mode magit magit-popup git-commit ghub with-editor pythonic emms gmail-message-mode ham-mode html-to-markdown flymd edit-server image-dired+ go-guru go-eldoc company-go go-mode unfill mwim company-web web-completion-data company-tern company-cabal company-c-headers company-auctex company-anaconda elcord xresources-theme sql-indent rainbow-mode php-extras php-mode mmm-mode json-mode js2-mode csv-mode coffee-mode auctex helm-company helm-c-yasnippet fuzzy company-statistics company auto-yasnippet yasnippet ac-ispell auto-complete ws-butler winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline restart-emacs request rainbow-delimiters popwin persp-mode pcre2el paradox spinner org-plus-contrib org-bullets open-junk-file neotree move-text macrostep lorem-ipsum linum-relative link-hint indent-guide hydra hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation helm-themes helm-swoop helm-projectile helm-mode-manager helm-make projectile pkg-info epl helm-flx helm-descbinds helm-ag google-translate golden-ratio flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-ediff evil-args evil-anzu anzu evil goto-chg undo-tree eval-sexp-fu highlight elisp-slime-nav dumb-jump f dash s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async)))
(caddyfile-mode org-ref lsp-dart mu4e-maildirs-extension mu4e-alert helm-mu xkcd vmd-mode visual-fill-column typit mmt sudoku restclient-helm pony-mode pacmacs ox-reveal outorg ob-restclient ob-http meson-mode ibuffer-projectile lv helm-w3m w3m graphviz-dot-mode flycheck-gometalinter transient ess-smart-equals ess-R-data-view ctable ess julia-mode eshell-git-prompt emoji-cheat-sheet-plus edit-indirect dockerfile-mode docker docker-tramp company-restclient restclient know-your-http-well company-quickhelp company-emoji company-emacs-eclim eclim atomic-chrome websocket 2048-game ox-gfm slime-company slime common-lisp-snippets erlang insert-shebang fish-mode company-shell faceup racket-mode treepy graphql yapfify yaml-mode xterm-color web-beautify twittering-mode toml-mode tagedit stickyfunc-enhance smeargle slim-mode shell-pop selectric-mode scss-mode sass-mode ranger rainbow-identifiers pytest pyenv-mode py-isort pug-mode plantuml-mode phpunit phpcbf php-auto-yasnippets pdf-tools tablist ox-pandoc orgit org-present org-pomodoro alert log4e gntp ob-elixir multi-term markdown-toc magit-gitflow magit-gh-pulls livid-mode live-py-mode json-snatcher js2-refactor js-doc htmlize hlint-refactor hindent helm-pydoc helm-hoogle helm-gitignore helm-css-scss haskell-snippets haml-mode gnuplot glsl-mode gitignore-mode github-search github-clone github-browse-file gitconfig-mode gitattributes-mode git-messenger gist gh marshal logito pcache ht gh-md flyspell-correct-helm flyspell-correct flycheck-rust pos-tip flycheck-mix flycheck-credo eshell-z eshell-prompt-extras esh-help drupal-mode disaster cython-mode dash-functional tern company-ghci company-ghc ghc color-identifiers-mode cmm-mode clang-format cargo auto-dictionary alchemist modern-cpp-font-lock yasnippet-snippets x86-lookup web-mode srefactor racer pyvenv pip-requirements pandoc-mode org-projectile org-category-capture org-mime org-download nasm-mode json-reformat intero imenu-list hy-mode git-timemachine git-link geiser flycheck-pos-tip flycheck-haskell evil-magit emmet-mode cmake-mode anaconda-mode rust-mode elixir-mode flycheck haskell-mode multiple-cursors skewer-mode simple-httpd markdown-mode magit magit-popup git-commit ghub with-editor pythonic emms gmail-message-mode ham-mode html-to-markdown flymd edit-server image-dired+ go-guru go-eldoc company-go go-mode unfill mwim company-web web-completion-data company-tern company-cabal company-c-headers company-auctex company-anaconda elcord xresources-theme sql-indent rainbow-mode php-extras php-mode mmm-mode json-mode js2-mode csv-mode coffee-mode auctex helm-company helm-c-yasnippet fuzzy company-statistics company auto-yasnippet yasnippet ac-ispell auto-complete ws-butler winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package toc-org spaceline powerline restart-emacs request rainbow-delimiters popwin persp-mode pcre2el paradox spinner org-plus-contrib org-bullets open-junk-file neotree move-text macrostep lorem-ipsum linum-relative link-hint indent-guide hydra hungry-delete hl-todo highlight-parentheses highlight-numbers parent-mode highlight-indentation helm-themes helm-swoop helm-projectile helm-mode-manager helm-make projectile pkg-info epl helm-flx helm-descbinds helm-ag google-translate golden-ratio flx-ido flx fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state smartparens evil-indent-plus evil-iedit-state iedit evil-exchange evil-escape evil-ediff evil-args evil-anzu anzu evil goto-chg undo-tree eval-sexp-fu highlight elisp-slime-nav dumb-jump f dash s diminish define-word column-enforce-mode clean-aindent-mode bind-map bind-key auto-highlight-symbol auto-compile packed aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line helm avy helm-core popup async)))
'(pdf-view-midnight-colors (quote ("#655370" . "#fbf8ef")))
'(safe-local-variable-values
(quote


+ 1
- 0
org/config/LICENSE.md View File

@@ -0,0 +1 @@
/home/phundrak/LICENSE.md

+ 132
- 27
org/config/awesome.org View File

@@ -1,6 +1,6 @@
# -*- org-confirm-babel-evaluate: nil -*-
#+title: AwesomeWM configuration
#+INCLUDE: headers.org
#+INCLUDE: headers
#+OPTIONS: auto-id:t
#+HTML_HEAD_EXTRA: <meta name="description" content="Phundrak's AwesomeWM config" />
#+HTML_HEAD_EXTRA: <meta property="og:title" content="Phundrak's AwesomeWM config" />
@@ -19,6 +19,11 @@
- [[#error-handling][Error handling]]
- [[#variable-definitions][Variable definitions]]
- [[#themes][Themes]]
- [[#creating-my-own-theme-wip-not-yet-used][Creating my own theme (WIP, not yet used)]]
- [[#loading-assets][Loading assets]]
- [[#inherit-the-default-theme][Inherit the default theme]]
- [[#loading-default-fonts-and-colors][Loading default fonts and colors]]
- [[#loading-the-theme][Loading the theme]]
- [[#default-terminal-and-text-editor][Default terminal and text editor]]
- [[#keys][Keys]]
- [[#wallpapers-directory][Wallpapers directory]]
@@ -191,12 +196,105 @@
:PROPERTIES:
:CUSTOM_ID: h-b2f0f248-68ba-4bdd-a63d-98ee640b071c
:END:
The following line will load the default colors, icons, fonts and wallpapers.
It is possible to write a custom theme for Awesome by loading a different Lua
file.
#+BEGIN_SRC lua
beautiful.init("/home/phundrak/.config/awesome/xresources/theme.lua")
#+END_SRC
With Awesome, it is possible to load or write custom themes in order to give
Awesome a special look that fits the user. I used to load the default theme
from Xresources, but now I would like to use my own theme, tweaked to my
liking.

*** Creating my own theme (WIP, not yet used)
:PROPERTIES:
:CUSTOM_ID: h-45318187-d57c-4f40-a8c6-fad9d90333eb
:HEADER-ARGS:lua: :tangle ~/.config/awesome/theme/theme.lua :exports code
:HEADER-ARGS:emacs-lisp: :exports none :cache yes
:END:
Here I will create my own theme, which will be exported to
=~/.config/awesome/theme/theme.lua=. It is based on my former Xresources
theme, but also on some other themes I found on the internet, particularly
on Github. Here are a few I would like to mention:
- [[https://github.com/lcpz/awesome-copycats/tree/master/themes/powerarrow-dark][Powerarrow-dark]]
- DistroTube’s Qtile theme, which you can see [[https://lbry.tv/@DistroTube:2/reactos-is-an-open-source-windows:9?r=4LXiLPA3uQN6Ekx8Rnu9oNVUVArqsbPf][here]]

My theme has two main dependencies: [[https://github.com/lcpz/lain][lain]] and [[https://github.com/lcpz/awesome-freedesktop][freedesktop]] for Awesome. The
former is a framework for Awesome theming while the second enables its users
to add ~.desktop~ entries to the Awesome menu.

**** Loading assets
:PROPERTIES:
:CUSTOM_ID: h-34db58ad-011d-4ebb-892a-6f481ba460aa
:END:
So first off, let’s load our libraries or anything I might need to import.
First, let's import the ~theme_assets~ module of ~beautiful~, a collection
of functions for theming, as well as the ~xresources~ library which will
let us interact with the Xresources theme. The ~filesystem~ module of
~gears~ will also enable us to interact with the system’s filesystem,
getting paths and files. I will also import ~lain~, the above described
dependency, so I get some useful functions and constructs.
#+NAME: theme-modules-import-table
| Module | Import as | What it is |
|------------------------+--------------+--------------------------|
| beautiful.theme_assets | theme_assets | theming library |
| beautiful.xresources | xresources | Xresources interactivity |
| gears.filesystem | gfs | filesystem interactivity |
| lain | lain | theming framework |

#+NAME: theme-modules-import-gen
#+BEGIN_SRC emacs-lisp :var table=theme-modules-import-table formstr="local %s = require(\"%s\")"
(mapconcat (lambda (x)
(format formstr
(cadr x) (car x)))
table "\n")
#+END_SRC

Here is what the code looks like:
#+BEGIN_SRC lua
<<theme-modules-import-gen()>>
#+END_SRC

Let’s also import some functions and values!
#+NAME: theme-modules-variables-table
| What to import | Import as | What it is |
|--------------------------------+-------------+------------------------------------|
| xresources.apply_dpi | dpi | Apply screen’s DPI ([[https://awesomewm.org/doc/api/libraries/beautiful.html#lib_beautiful_xresources_Functions][documentation]]) |
| xresources.get_current_theme() | xrdb | Get current Xresources theme |
| gfs.get_themes_dir() | themes_path | Get path to default Awesome themes |

Here is what the code looks like:
#+BEGIN_SRC lua
<<theme-modules-import-gen(table=theme-modules-variables-table, formstr="local %s = %s")>>
#+END_SRC

**** Inherit the default theme
:PROPERTIES:
:CUSTOM_ID: h-bcb7fef1-009d-418d-8903-9196881da791
:END:
Now that I imported what I need, I can get a default theme which I will
later modify:
#+BEGIN_SRC lua
local theme = dofile(themes_path.."default/theme.lua")
#+END_SRC

**** Loading default fonts and colors
:PROPERTIES:
:CUSTOM_ID: h-f95c53b3-42fc-410b-b836-482b10075be3
:END:
With the default theme loaded, let's modify it! The theme’s font will be
the same as the one I use for st: Source Code Pro for Powerline
#+BEGIN_SRC lua
theme.font = "Source Code Pro for Powerline 8"
#+END_SRC

*** Loading the theme
:PROPERTIES:
:CUSTOM_ID: h-27548575-a623-4478-8406-ff23f9d1dce4
:END:
Finally, let’s load our theme.
#+BEGIN_SRC lua
beautiful.init("/home/phundrak/.config/awesome/xresources/theme.lua")
#+END_SRC

On top of that, I would like to edit some settings. First of all, let’s set
some default transparency for Awesome, with an alpha background. By default,
it is completely opaque with a max value of ~256~ and a minimal value of ~0~.

** Default terminal and text editor
:PROPERTIES:
@@ -274,7 +372,7 @@
papes = get_papes()
pape = papes[math.random(#papes)]
awful.spawn.with_shell("nitrogen --set-scaled "..pape.." && wal -o wal-set -i "..pape)
naughty.notify({ prest = naughty.config.presets.normal,
naughty.notify({ preset = naughty.config.presets.normal,
title = "Wallpaper change",
text = "Done!"})
end
@@ -1099,6 +1197,7 @@
#+NAME: sc-app-rofi
| Key | Modifiers | Lambda? | Action | What it does | Group |
|-----+------------------------+---------+---------------------------------------+---------------------------------+-------|
| a | modkey | shell | awiki | find and open an ArchWiki page | rofi |
| d | modkey | spawn | rofi -show combi | invoke rofi | rofi |
| d | modkey, shift | spawn | rofi -combi-modi drun,run -show combi | invoke j4-dmenu-desktop | rofi |
| p | modkey, shift | shell | rofi-pass -t | types password from ~pass~ | rofi |
@@ -1384,27 +1483,27 @@
:CUSTOM_ID: h-5d846dc4-bbdc-4270-b0fc-44c9dbdaf35f
:END:
With the use of some rules, it is possible to define which client are
assigned to which tag by default. Here is the list of my defaults:
assigned to which tag by default.
#+NAME: rules-default-tags-table
| Client Property | Value | Screen | Tag |
|-----------------+---------+--------+-----|
| class | Emacs | 1 | 2 |
| class | firefox | 1 | 3 |
| class | Nemo | 1 | 4 |
| class | Gimp* | 1 | 5 |
| class | discord | 1 | 0 |
| class | Steam | 1 | 9 |
| Client Property | Value | Tag |
|-----------------+---------+-----|
| class | Emacs | 2 |
| class | firefox | 3 |
| class | Nemo | 4 |
| class | Gimp* | 5 |
| class | discord | 0 |
| class | Steam | 9 |

#+NAME: rules-default-tags-generate
#+BEGIN_SRC emacs-lisp :tangle no :exports none :cache yes :var tags=rules-default-tags-table
(mapconcat (lambda (x)
(format "{rule = {%s = \"%s\"}, properties = {screen = %d, tag = \"%d\"} }"
(nth 0 x) (nth 1 x) (nth 2 x) (nth 3 x)))
(format "{rule = {%s = \"%s\"}, properties = {screen = 1, tag = \"%d\"} }"
(nth 0 x) (nth 1 x) (nth 2 x)))
tags
",\n")
#+END_SRC

#+RESULTS[c916cbccf08bf765657e11de26e9840a5319486e]: rules-default-tags-generate
#+RESULTS[2b9fe1774ebfde3fc2cfadb24a32dee9b2639144]: rules-default-tags-generate
: {rule = {class = "Emacs"}, properties = {screen = 1, tag = "2"} },
: {rule = {class = "firefox"}, properties = {screen = 1, tag = "3"} },
: {rule = {class = "Nemo"}, properties = {screen = 1, tag = "4"} },
@@ -1431,14 +1530,16 @@
:END:
When a new client is created, the ~manage~ signal is emited. When so, the
following snippet ensures this new client is not off the screen, unless its
position was deliberately set by a program or by the user.
position was deliberately set by a program or by the user. It will also spawn
the new client where the mouse currently is.
#+BEGIN_SRC lua
client.connect_signal("manage", function (c)
if awesome.startup
and not c.size_hints.user_position
and not c.size_hints.program_position then
awful.placement.no_offscreen(c)
end
awful.client.movetoscreen(c, mouse.screen)
if awesome.startup
and not c.size_hints.user_position
and not c.size_hints.program_position then
awful.placement.no_offscreen(c)
end
end)
#+END_SRC

@@ -1456,7 +1557,6 @@
<<signal-titlebar-button1>>,
<<signal-titlebar-button3>>
)

<<signal-titlebar-create>>
end)
#+END_SRC
@@ -1608,3 +1708,8 @@
:CUSTOM_ID: h-828e67df-7fba-4524-95d5-9e505023cb4a
:END:
~attempt to index a nil value (global 'c')~

** TODO Make custom theme
:PROPERTIES:
:CUSTOM_ID: h-9f6ad3d4-2581-43f1-ab0a-8903479e26e2
:END:

+ 58
- 10
org/config/bin.org View File

@@ -1,5 +1,5 @@
#+TITLE: Phundrak’s executable scripts
#+INCLUDE: headers.org
#+TITLE: Executable scripts
#+INCLUDE: headers
#+OPTIONS: auto-id:t
#+HTML_HEAD_EXTRA: <meta name="description" content="Phundrak's i3 config" />
#+HTML_HEAD_EXTRA: <meta property="og:title" content="Phundrak's i3 config" />
@@ -13,6 +13,7 @@
:END:
- [[#presentation][Presentation]]
- [[#4chandl][4chandl]]
- [[#awiki][awiki]]
- [[#askpass][Askpass]]
- [[#backup][Backup]]
- [[#connectwifi][ConnectWifi]]
@@ -25,6 +26,7 @@
- [[#emoji-picker][Emoji picker]]
- [[#lock][Lock]]
- [[#mp42webm][mp42webm]]
- [[#pinfo][Pinfo]]
- [[#polybar-launch][Polybar-launch]]
- [[#rofi-mount][Rofi-mount]]
- [[#get-the-mountable-elements][Get the mountable elements]]
@@ -147,12 +149,45 @@
end
#+END_SRC

* awiki
:PROPERTIES:
:CUSTOM_ID: h-340e487c-152a-459a-8da5-6f597e67abd3
:HEADER-ARGS: :tangle ~/.local/bin/awiki
:END:
~awiki~ is a simple script used with ~rofi~ that relies on the
~arch-wiki-docs~ package in order to provide the user a way to quickly find
and display any English page from the Arch Wiki in a browser. The advantage of
using this over the ~wiki-search~ utility from the ~arch-wiki-lite~ package is
you get instant suggestion in rofi using fuzzy-search. The downside is rofi
will only help you find pages by their title, and it will not help you find
keywords in the content of said pages.

The first step is to create the list of all the pages that are currently
stored on disk. ~arch-wiki-docs~ stores them in
~/usr/share/doc/arch-wiki/html/en~. A simple ~ls~ piped in three ~sed~ will
give us a list of page titles. We then pipe that into rofi in dmenu mode in
order to choose the page we want to display. By the way, setting the location
of the HTML files will come in handy later.
#+BEGIN_SRC fish
#!/usr/bin/env fish
set WLOCATION /usr/share/doc/arch-wiki/html/en/
set WPAGE (/bin/ls $WLOCATION | \
sed 's/_/ /g' | sed 's/\.html$//' | sed 's/.*\/\(.*\)/\1/' | \
rofi -dmenu -p "Arch Wiki" -i)
#+END_SRC

Now, all I need to do is to send this list into rofi and tell it to open the
result with our favorite browser with ~xdg-open~.
#+BEGIN_SRC fish
xdg-open $WLOCATION$WPAGE.html
#+END_SRC

* Askpass
:PROPERTIES:
:CUSTOM_ID: h-b2bef089-69e3-4efb-ac2f-a5eb6a3a80e8
:HEADER-ARGS: :tangle ~/.local/bin/askpass
:END:
Askpass is a simple script that invokes =rofi= as a way to get from a GUI the
Askpass is a simple script that invokes ~rofi~ as a way to get from a GUI the
user’s sudo password. It is inspired by [[https://github.com/ODEX-TOS/tools/blob/master/rofi/askpass][this original tool]], rewritten in fish
and with [[https://wiki.archlinux.org/index.php/Rofi][rofi]] support instead of [[https://wiki.archlinux.org/index.php/Dmenu][dmenu]]. As you can see, this is a oneliner if
we ignore the initial shebang. This executable is pointed at by the
@@ -166,7 +201,7 @@
:CUSTOM_ID: h-30cb6655-382f-492a-a005-df15512ab7a5
:HEADER-ARGS: :tangle ~/.local/bin/backup
:END:
=backup= is a very simple, oneliner script that will create a local copy of a
~backup~ is a very simple, oneliner script that will create a local copy of a
file and add the date at which it was copied in the filename. You can see its
source code here:
#+BEGIN_SRC fish
@@ -179,13 +214,16 @@
:HEADER-ARGS: :tangle ~/.local/bin/connect-wifi
:CUSTOM_ID: h-7a958906-1f79-448f-95b3-7226bc80e88c
:END:
=connect-wifi= is a small utility tool that allows the user to connect to
~connect-wifi~ is a small utility tool that allows the user to connect to
available WiFi networks. The first thing to do is to select the WiFi we want
to connect to. We’ll use the =nmcli c s= command to get the list of the
available networks, and we’ll chose one with =rofi=.
to connect to. We’ll use the ~nmcli c s~ command to get the list of the
available networks, and we’ll chose one with ~rofi~.
#+BEGIN_SRC fish
#!/usr/bin/env fish
set SELECTEDWIFI (nmcli d w l | egrep -o '([0-9A-F]{2}:){5}[0-9A-F]{2}\s*(.*)Infra' | egrep -o '\s+(.*)\s+' | awk '{$1=$1}1' | rofi -dmenu -p "Select your WiFi network")
set SELECTEDWIFI (nmcli d w l | \
egrep -o '([0-9A-F]{2}:){5}[0-9A-F]{2}\s*(.*)Infra' | \
egrep -o '\s+(.*)\s+' | awk '{$1=$1}1' | \
rofi -dmenu -p "Select your WiFi network")
#+END_SRC
Now, if a network was selected, let’s attempt to connect to it. Otherwise,
let’s just send a notification no network was selected.
@@ -350,7 +388,8 @@
emoji is selected, it is copied to the clipboard using =xclipboard=.
#+BEGIN_SRC fish
#!/usr/bin/env fish
grep -v "#" ~/.config/emoji.txt | rofi -dmenu -p "Select emoji" -i | awk '{print $1}' | tr -d '\n' | xclip -selection clipboard
grep -v "#" ~/.config/emoji.txt | rofi -dmenu -p "Select emoji" -i | \
awk '{print $1}' | tr -d '\n' | xclip -selection clipboard
#+END_SRC

Also, let’s send a notification telling the user the emoji has been copied!
@@ -358,7 +397,7 @@
set emoji (xclip -o -selection clipboard | tr -d '\n')
test -z "$emoji" && notify-send "No emoji copied" -u low && exit
set -a emoji "copied to clipboard"
pgrep -x dunst >/dev/null && notify-send -u low $emoji
notify-send -u low $emoji
#+END_SRC

It is inspired from [[https://www.youtube.com/watch?v=UCEXY46t3OA][this video]] from [[https://lukesmith.xyz/][Luke Smith]], rewritten in Fish.
@@ -385,11 +424,20 @@
:HEADER-ARGS: :tangle ~/.local/bin/mp42webm
:CUSTOM_ID: h-29b8a01c-7499-4a35-be25-f5a593bf40ea
:END:
This function allows me to convert easily an mp4 video to the webm format.
Nothing too fancy here.
#+BEGIN_SRC fish
#!/usr/bin/fish
ffmpeg -i $argv[1] -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis $argv[1].webm
#+END_SRC

* Pinfo
:PROPERTIES:
:HEADER-ARGS: :tangle ~/.local/bin/pinfo
:CUSTOM_ID: h-da11c9a4-732c-40f8-b98f-2bcfe297a6aa
:END:
~pinfo~ is a utility that shows system information

* Polybar-launch
:PROPERTIES:
:CUSTOM_ID: h-68587918-879b-42db-b304-901d01233f95


+ 71
- 49
org/config/fish.org View File

@@ -1,6 +1,6 @@
# -*- org-confirm-babel-evaluate: nil -*-
#+TITLE: Phundrak’s fish config
#+INCLUDE: headers.org
#+TITLE: Fish config
#+INCLUDE: headers
#+OPTIONS: auto-id:t
#+HTML_HEAD_EXTRA: <meta name="description" content="Phundrak's fish config" />
#+HTML_HEAD_EXTRA: <meta property="og:title" content="Phundrak's fish config" />
@@ -18,12 +18,14 @@
- [[#tramp-remote-access][Tramp remote access]]
- [[#regular-fish-shell-appearance][Regular fish shell appearance]]
- [[#global-variables][Global variables]]
- [[#development][Development]]
- [[#path][$PATH]]
- [[#abbreviations][Abbreviations]]
- [[#system-monitoring][System monitoring]]
- [[#system-management-packages-and-services][System management (packages and services)]]
- [[#package-management][Package management]]
- [[#service-management][Service management]]
- [[#development][Development]]
- [[#development-1][Development]]
- [[#cmake][CMake]]
- [[#compilation][Compilation]]
- [[#docker][Docker]]
@@ -177,32 +179,6 @@
:PROPERTIES:
:CUSTOM_ID: h-0eff37da-af9f-4546-8ad3-201961a2200f
:END:
Some global variables might sometimes be needed and need to be modified. This
is for example the case with my =PATH= variable in which I add Rust’s Cargo’s
binaries, Go’s binaries and my own executables. And of course, don’t forget
to add the already existing =PATH=.

#+NAME: extra-paths
| additional path | what it leads to |
|---------------------------+--------------------------------------|
| $HOME/.pub-cache/bin | Dart binaries and executables |
| $HOME/.local/bin | Custom executables, see [[file:bin.org]] |
| $HOME/go/bin | Go binaries and executables |
| $HOME/.cargo/bin | Rust binaries and executables |
| $HOME/.gem/ruby/2.6.0/bin | Ruby binaries and executables |

#+NAME: generate-extra-paths
#+BEGIN_SRC emacs-lisp :var paths=extra-paths[,0] :exports none :cache yes
(mapconcat (lambda (x) x)
paths " ")
#+END_SRC

#+RESULTS[d6cf1e9d562d644db1bc6458eca1fc165b065f0c]: generate-extra-paths
: $HOME/.pub-cache/bin $HOME/.local/bin $HOME/go/bin $HOME/.cargo/bin $HOME/.gem/ruby/2.6.0/bin

#+BEGIN_SRC fish :noweb yes
set -gx PATH <<generate-extra-paths()>> $PATH
#+END_SRC

In order to keep some other code clean, I set the ~$BROWSER~ variable so I
don’t have to call my web browser directly but rather with this variable.
@@ -216,28 +192,72 @@
set -gx SUDO_ASKPASS ~/.local/bin/askpass
#+END_SRC

Now, let’s declare our editor of choice, EmacsClient; not Emacs itself since
it will most often be just quick edits, nothing too heavy, if it is called
from the =EDITOR= variable (from Git, for example).
#+BEGIN_SRC fish
set -gx EDITOR emacsclient -c
#+END_SRC
** Development
:PROPERTIES:
:CUSTOM_ID: h-6e86740b-c7f1-49e0-a4f8-73e870c69324
:END:
Now, let’s declare our editor of choice, EmacsClient; not Emacs itself since
it will most often be just quick edits, nothing too heavy, if it is called
from the =EDITOR= variable (from Git, for example).
#+BEGIN_SRC fish
set -gx EDITOR emacsclient -c
#+END_SRC

We also need to set the path to the Dart SDK.
#+BEGIN_SRC fish
set -gx DART_SDK /opt/dart-sdk/bin
#+END_SRC
We also need to set the path to the Dart SDK.
#+BEGIN_SRC fish
set -gx DART_SDK /opt/dart-sdk/bin
#+END_SRC

And we also need to specify where the Android SDK it located.
#+BEGIN_SRC fish
set -gx ANDROID_HOME $HOME/Android/Sdk
#+END_SRC
And we also need to specify where the Android SDK it located.
#+BEGIN_SRC fish
set -gx ANDROID_HOME $HOME/Android/Sdk
#+END_SRC

Finally, some development packages require the =PKG_CONFIG_PATH= to be set,
so let’s do so.
#+BEGIN_SRC fish
set -gx PKG_CONFIG_PATH /usr/local/lib/pkgconfig/ $PKG_CONFIG_PATH
#+END_SRC
Next, we have two variables from Deno, the Node.js destroyer. Its base
directory will be set in my XDG config directory, and its binaries will be
located in my local binaries directory (see below).
#+BEGIN_SRC fish
set -gx DENO_DIR $HOME/.config/deno
set -gx DENO_INSTALL_ROOT $HOME/.local/bin/deno
#+END_SRC

Finally, some development packages require the =PKG_CONFIG_PATH= to be set,
so let’s do so.
#+BEGIN_SRC fish
set -gx PKG_CONFIG_PATH /usr/local/lib/pkgconfig/ $PKG_CONFIG_PATH
#+END_SRC

** $PATH
:PROPERTIES:
:CUSTOM_ID: h-a9c79e7c-29ea-49e0-959e-0983e886f346
:END:
Some global variables might sometimes be needed and need to be modified. This
is for example the case with my =PATH= variable in which I add Rust’s Cargo’s
binaries, Go’s binaries and my own executables. And of course, don’t forget
to add the already existing =PATH=.

#+NAME: extra-paths
| additional path | what it leads to |
|---------------------------+--------------------------------------|
| $HOME/.pub-cache/bin | Dart binaries and executables |
| $HOME/.local/bin | Custom executables, see [[file:bin.org]] |
| $HOME/go/bin | Go binaries and executables |
| $HOME/.cargo/bin | Rust binaries and executables |
| $HOME/.gem/ruby/2.6.0/bin | Ruby binaries and executables |
| $HOME/.cabal/bin | Haskel binaries |

#+NAME: generate-extra-paths
#+BEGIN_SRC emacs-lisp :var paths=extra-paths[,0] :exports none :cache yes
(mapconcat (lambda (x) x)
paths " ")
#+END_SRC

#+RESULTS[d6cf1e9d562d644db1bc6458eca1fc165b065f0c]: generate-extra-paths
: $HOME/.pub-cache/bin $HOME/.local/bin $HOME/go/bin $HOME/.cargo/bin $HOME/.gem/ruby/2.6.0/bin

#+BEGIN_SRC fish :noweb yes
set -gx PATH <<generate-extra-paths()>> $PATH
#+END_SRC

* Abbreviations
:PROPERTIES:
@@ -367,7 +387,7 @@
|--------------+----------------------|
| clang | clang -Wall |
| clang++ | clang++ -Wall |
| g++ | g++ -Wall -std=c++17 |
| g++ | g++ -Wall -std=c++20 |
| gcc | gcc -Wall -std=c18 |

Here is the corresponding fish configuration:
@@ -385,7 +405,9 @@
| abbreviation | command |
|--------------+------------------------------|
| dc | docker-compose |
| dcb | docker-compose build |
| dcd | docker-compose down |
| dcl | docker-compose logs |
| dcp | docker-compose pull |
| dcr | docker-compose run --rm |
| dcu | docker-compose up |


org/config/headers.org → org/config/headers View File

@@ -1,3 +1,4 @@
# -*- mode: org -*-
#+AUTHOR: Lucien Cartier-Tilet
#+EMAIL: lucien@phundrak.com
#+CREATOR: Lucien Cartier-Tilet
@@ -15,15 +16,11 @@
#+HTML_HEAD_EXTRA: <meta name="twitter:card" content="summary" />
#+HTML_HEAD_EXTRA: <meta name="twitter:site" content="@phundrak" />
#+HTML_HEAD_EXTRA: <meta name="twitter:creator" content="@phundrak" />
#+HTML_HEAD_EXTRA: <link rel="stylesheet" href="https://langue.phundrak.com/css/main.css"/>
#+HTML_HEAD_EXTRA: <link rel="stylesheet" href="https://langue.phundrak.com/css/htmlize.min.css"/>
#+HTML_HEAD_EXTRA: <link rel="stylesheet" id="theme" href="https://langue.phundrak.com/css/dark.css"/>
#+HTML_HEAD_EXTRA: <link rel="stylesheet" href="/style/style.css"/>
#+HTML_HEAD_EXTRA: <link rel="shortcut icon" href="https://cdn.phundrak.com/img/mahakala-128x128.png" type="img/png" media="screen" />
#+HTML_HEAD_EXTRA: <link rel="shortcut icon" href="https://cdn.phundrak.com/img/favicon.ico" type="image/x-icon" media="screen" />
#+HTML_HEAD_EXTRA: <script defer src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
#+HTML_HEAD_EXTRA: <script defer src="https://langue.phundrak.com/dart/main.dart.js"></script>
#+HTML_HEAD_EXTRA: <script defer src="https://kit.fontawesome.com/4d42d0c8c5.js"></script>
#+INFOJS_OPT: view:info home:https://phundrak.com/config toc:t ltoc:t mouse:underline
#+HTML_HEAD_EXTRA: <script defer src="/dart/main.dart.js"></script>
#+HTML_HEAD_EXTRA: <script defer src="https://kit.fontawesome.com/4d42d0c8c5.js" crossorigin="anonymous"></script>

# ### MACROS ###################################################################
#+MACRO: newline @@latex:\hspace{0pt}\\@@ @@html:<br>@@

+ 2
- 2
org/config/i3.org View File

@@ -1,6 +1,6 @@
# -*- org-confirm-babel-evaluate: nil -*-
#+TITLE: Phundrak’s i3 config
#+INCLUDE: headers.org
#+TITLE: i3 config
#+INCLUDE: headers
#+OPTIONS: auto-id:t
#+HTML_HEAD_EXTRA: <meta name="description" content="Phundrak's i3 config" />
#+HTML_HEAD_EXTRA: <meta property="og:title" content="Phundrak's i3 config" />


BIN
org/config/img/emacs.png.webp View File

Before After

BIN
org/config/img/ncmpcpp-directory.png View File

Before After
Width: 920  |  Height: 584  |  Size: 218 KiB

BIN
org/config/img/ncmpcpp-directory.png.webp View File

Before After

BIN
org/config/img/ncmpcpp-queue.png View File

Before After
Width: 920  |  Height: 584  |  Size: 188 KiB

BIN
org/config/img/ncmpcpp-queue.png.webp View File

Before After

BIN
org/config/img/ncmpcpp-visualizer.png View File

Before After
Width: 920  |  Height: 584  |  Size: 144 KiB

BIN
org/config/img/ncmpcpp-visualizer.png.webp View File

Before After

BIN
org/config/img/neofetch.png.webp View File

Before After

BIN
org/config/img/rofi.png.webp View File

Before After

+ 804
- 0
org/config/index.html View File

@@ -0,0 +1,804 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 2020-05-05 mar. 23:17 -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Phundrak’s dotfiles</title>
<meta name="generator" content="Org mode">
<meta name="author" content="Lucien Cartier-Tilet">
<meta name="keywords" content="dotfiles linux emacs configuration phundrak drakpa">
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }

table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<meta property="og:image" content="https://cdn.phundrak.com/img/rich_preview.png" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@phundrak" />
<meta name="twitter:creator" content="@phundrak" />
<link rel="stylesheet" href="/style/style.css"/>
<link rel="shortcut icon" href="https://cdn.phundrak.com/img/mahakala-128x128.png" type="img/png" media="screen" />
<link rel="shortcut icon" href="https://cdn.phundrak.com/img/favicon.ico" type="image/x-icon" media="screen" />
<script defer src="/dart/main.dart.js"></script>
<script defer src="https://kit.fontawesome.com/4d42d0c8c5.js" crossorigin="anonymous"></script>
<meta name="description" content="Phundrak's dotfiles" />
<meta property="og:title" content="Phundrak's dotfiles" />
<meta property="og:description" content="Description of the dotfiles of Phundrak" />
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&amp;dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
</script>
</head>
<body>
<div id="content">
<h1 class="title">Phundrak’s dotfiles</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#h-536e69f5-c012-4b7d-8a45-3a340d3bc7ee">1. Presentation</a></li>
<li><a href="#h-ee37502b-09a4-4668-88e2-1d4406252bd2">2. Screenshots</a></li>
<li><a href="#h-8539dd6f-4fcb-4dc7-a3ef-b8ad198c91d4">3. Features</a>
<ul>
<li><a href="#h-b70d9b3b-4259-4311-aa23-4792656220bb">3.1. Tiling Window Managers</a>
<ul>
<li><a href="#h-dbfc71a0-9d96-4f53-a064-f8d6f9567813">3.1.1. AwesomeWM</a></li>
<li><a href="#h-c918e370-d867-412c-8b0e-078e4e3772e0">3.1.2. i3 configuration</a></li>
</ul>
</li>
<li><a href="#h-08018a9b-f0c8-4bff-b18d-834ec0dc11a8">3.2. Graphical tweaks</a>
<ul>
<li><a href="#h-1e9b2c5f-9ce4-4706-af5b-fb3b423cdb82">3.2.1. GTK Settings</a>
<ul>
<li><a href="#h-6b46d7ef-3015-46e6-b9f4-58be449ff9b6">3.2.1.1. GTK2</a></li>
<li><a href="#h-0de8173e-2c28-4ac2-811e-e6c1a437ef51">3.2.1.2. GTK3</a></li>
</ul>
</li>
<li><a href="#h-c539fde3-3f1a-4855-8d63-28729ed806a5">3.2.2. Picom</a></li>
<li><a href="#h-e6f48975-3b86-4a75-a7e5-5cc9edbd9869">3.2.3. Xresources</a></li>
</ul>
</li>
<li><a href="#h-2730f882-e775-41a3-b169-5049c142cc54">3.3. Text and source code editing</a>
<ul>
<li><a href="#h-f6d2561f-5c02-4540-8287-4acf3037b3d5">3.3.1. Emacs configuration</a></li>
<li><a href="#h-1724166b-55b7-4a64-9ff1-47c2a9e76f46">3.3.2. Nano</a></li>
<li><a href="#h-0ae9005c-76a6-49f6-947c-0c8464616e10">3.3.3. Rustfmt</a></li>
</ul>
</li>
<li><a href="#h-d582e107-fa66-4f79-869e-2b49116ed1ec">3.4. Custom scripts in <code>PATH</code></a></li>
<li><a href="#h-f35ed9a3-c9fc-458c-8a62-693f679f6992">3.5. Fish configuration with useful abbreviations</a></li>
<li><a href="#h-1a819f94-ab79-41e6-9509-a2781ab10b79">3.6. And some minor configuration files</a>
<ul>
<li><a href="#h-f6c48286-a320-493f-b330-ee0a697e6d79">3.6.1. Email signature</a></li>
<li><a href="#h-4f92eb29-7cfa-48ec-b39d-39037ace3682">3.6.2. Global gitignore</a></li>
</ul>
</li>
<li><a href="#h-4f48b912-b67b-4549-a671-802e76221f46">3.7. Tmux configuration</a></li>
</ul>
</li>
<li><a href="#h-5849dbcf-a650-4323-9a90-bec549a7b982">4. Dependencies</a></li>
<li><a href="#h-bfb2e09b-d5d7-4d6f-8b29-763c49b3fd09">5. Installation</a></li>
<li><a href="#h-a3438126-ee60-4f11-a2f6-f52e49dade59">6. Licence</a></li>
</ul>
</div>
</div>

<div id="outline-container-h-536e69f5-c012-4b7d-8a45-3a340d3bc7ee" class="outline-2">
<h2 id="h-536e69f5-c012-4b7d-8a45-3a340d3bc7ee"><span class="section-number-2">1</span> Presentation</h2>
<div class="outline-text-2" id="text-h-536e69f5-c012-4b7d-8a45-3a340d3bc7ee">

<div class="figure">
<p><a href="http://spacemacs.org"><object type="image/svg+xml" data="https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg" class="org-svg">
Sorry, your browser does not support SVG.</object></a>
</p>
</div>

<p>
This is my collection of dotfiles for my daily GNU/Linux environment, tweaked
to my liking. If you wish to get the same setup as mine, follow the
instructions below.
</p>

<p>
As you can see, I personally use <a href="https://fishshell.com/">fish</a> as my shell of choice, and <a href="https://www.gnu.org/software/emacs/">Emacs</a> 27.0.90
(custom build) using <a href="http://spacemacs.org">Spacemacs</a> (still with Emacs keybinding in Insert mode but
with Evil in Normal mode) as my main text editor.
</p>

<p>
When it comes to my graphical UI, I do not have any desktop environment.
Instead, I have two tiling window managers. The historical first on my
configuration is <a href="https://github.com/Airblader/i3">i3-gaps</a>, an <a href="https://i3wm.org/">i3</a> fork by <a href="https://github.com/Airblader/i3">Airblader</a> with which I use two bars
generated by <a href="https://polybar.github.io/">Polybar</a>. My other TWM, and the one I use most often, is
<a href="https://awesomewm.org/">AwesomeWM</a>. Both TWMs use <a href="https://github.com/dylanaraps/pywal">pywal</a> to define their color scheme, as well as <a href="https://github.com/davatorium/rofi">rofi</a>’s
color scheme.
</p>

<p>
Finally, you can find my configuration for my Ergodox keyboard <a href="https://configure.ergodox-ez.com/ergodox-ez/layouts/5WrVw/latest/0">here</a>. It is
optimized for usage with the Bépo layout set as a software layout, and for
shortcuts from i3.
</p>
</div>
</div>

<div id="outline-container-h-ee37502b-09a4-4668-88e2-1d4406252bd2" class="outline-2">
<h2 id="h-ee37502b-09a4-4668-88e2-1d4406252bd2"><span class="section-number-2">2</span> Screenshots</h2>
<div class="outline-text-2" id="text-h-ee37502b-09a4-4668-88e2-1d4406252bd2">

<div class="figure">
<p><img src="./img/neofetch.png.webp" alt="neofetch.png.webp" width="100%">
</p>
<p><span class="figure-number">Figure 2: </span>Desktop with Neofetch in the terminal</p>
</div>


<div class="figure">
<p><img src="./img/emacs.png.webp" alt="emacs.png.webp" width="100%">
</p>
<p><span class="figure-number">Figure 3: </span>Desktop with Emacs opened</p>
</div>


<div class="figure">
<p><img src="./img/rofi.png.webp" alt="rofi.png.webp" width="100%">
</p>
<p><span class="figure-number">Figure 4: </span>Desktop with Rofi</p>
</div>
</div>
</div>

<div id="outline-container-h-8539dd6f-4fcb-4dc7-a3ef-b8ad198c91d4" class="outline-2">
<h2 id="h-8539dd6f-4fcb-4dc7-a3ef-b8ad198c91d4"><span class="section-number-2">3</span> Features</h2>
<div class="outline-text-2" id="text-h-8539dd6f-4fcb-4dc7-a3ef-b8ad198c91d4">
<ul class="org-ul">
<li>Emacs configuration perfectly tailored for my own use</li>
<li>Beautiful and comfy i3 and polybar configuration</li>
<li>And enough information below to get basically the same distro install as I
have on my main computer and my travel laptop.</li>
</ul>

<p>
Most of the org files you will find in this repos are the actual source code
of much of my config files. For instance, the bootstrap found in
<a href="installation.html">installation.org</a> exports almost all of its code snippets to
<a href=".config/yadm/bootstrap">.config/yadm/bootstrap</a> thanks to <code>M-x org-babel-tangle</code> from within Emacs.
Below I will also present and comment some of my short config files which do
not deserve to have a full org file dedicated to them.
</p>
</div>

<div id="outline-container-h-b70d9b3b-4259-4311-aa23-4792656220bb" class="outline-3">
<h3 id="h-b70d9b3b-4259-4311-aa23-4792656220bb"><span class="section-number-3">3.1</span> Tiling Window Managers</h3>
<div class="outline-text-3" id="text-h-b70d9b3b-4259-4311-aa23-4792656220bb">
</div>
<div id="outline-container-h-dbfc71a0-9d96-4f53-a064-f8d6f9567813" class="outline-4">
<h4 id="h-dbfc71a0-9d96-4f53-a064-f8d6f9567813"><span class="section-number-4">3.1.1</span> AwesomeWM</h4>
<div class="outline-text-4" id="text-h-dbfc71a0-9d96-4f53-a064-f8d6f9567813">
<p>
AwesomeWM is the TWM I use the most on my computer between itself and i3. My
configuration for it is documented in detail in its corresponding document,
which you can find <a href="awesome.html">here</a>.
</p>
</div>
</div>

<div id="outline-container-h-c918e370-d867-412c-8b0e-078e4e3772e0" class="outline-4">
<h4 id="h-c918e370-d867-412c-8b0e-078e4e3772e0"><span class="section-number-4">3.1.2</span> i3 configuration</h4>
<div class="outline-text-4" id="text-h-c918e370-d867-412c-8b0e-078e4e3772e0">
<p>
The i3 configuration is detailed in its corresponding README which you can
find <a href="i3.html">here</a>.
</p>
</div>
</div>
</div>

<div id="outline-container-h-08018a9b-f0c8-4bff-b18d-834ec0dc11a8" class="outline-3">
<h3 id="h-08018a9b-f0c8-4bff-b18d-834ec0dc11a8"><span class="section-number-3">3.2</span> Graphical tweaks</h3>
<div class="outline-text-3" id="text-h-08018a9b-f0c8-4bff-b18d-834ec0dc11a8">
</div>
<div id="outline-container-h-1e9b2c5f-9ce4-4706-af5b-fb3b423cdb82" class="outline-4">
<h4 id="h-1e9b2c5f-9ce4-4706-af5b-fb3b423cdb82"><span class="section-number-4">3.2.1</span> GTK Settings</h4>
<div class="outline-text-4" id="text-h-1e9b2c5f-9ce4-4706-af5b-fb3b423cdb82">
</div>
<div id="outline-container-h-6b46d7ef-3015-46e6-b9f4-58be449ff9b6" class="outline-5">
<h5 id="h-6b46d7ef-3015-46e6-b9f4-58be449ff9b6"><span class="section-number-5">3.2.1.1</span> GTK2</h5>
<div class="outline-text-5" id="text-h-6b46d7ef-3015-46e6-b9f4-58be449ff9b6">
<p>
Regarding GTK2, I have only one configuration file: the filechooser’s
configuration file.
</p>
<div class="org-src-container">
<pre class="src src-conf-unix">[<span style="color: #FCCE7B;">Filechooser Settings</span>]
</pre>
</div>

<p>
The first option alows me to open the file chooser in the current working
directory:
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">StartupMode</span>=cwd
</pre>
</div>

<p>
Next, setting the location mode to <code>path-bar</code> will show the path as buttons
that can be clicked rather than the full path.
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">LocationMode</span>=path-bar
</pre>
</div>

<p>
With this configuration, by default we won’t see hidden files.
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">ShowHidden</span>=true
</pre>
</div>

<p>
And we'll also see the size of the visible files.
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">ShowSizeColumn</span>=true
</pre>
</div>

<p>
Now, let’s choose the geometry of our file picker. These two first lines
set where the file picker appears:
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">GeometryX</span>=566
<span style="color: #DFDFDF;">GeometryY</span>=202
</pre>
</div>

<p>
And these two describe the size of the window:
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">GeometryWidth</span>=800
<span style="color: #DFDFDF;">GeometryHeight</span>=400
</pre>
</div>

<p>
With these two lines, we set how our files are sorted: by name, and in the
ascending order.
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">SortColumn</span>=name
<span style="color: #DFDFDF;">SortOrder</span>=ascending
</pre>
</div>

<p>
Our default view mode is a list of files:
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">ViewMode</span>=list-view
</pre>
</div>

<p>
And finally, setting our icon view scale to <code>-1</code> sets the icon view to the
max size.
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">IconViewScale</span>=-1
</pre>
</div>
</div>
</div>

<div id="outline-container-h-0de8173e-2c28-4ac2-811e-e6c1a437ef51" class="outline-5">
<h5 id="h-0de8173e-2c28-4ac2-811e-e6c1a437ef51"><span class="section-number-5">3.2.1.2</span> GTK3</h5>
<div class="outline-text-5" id="text-h-0de8173e-2c28-4ac2-811e-e6c1a437ef51">
<p>
The following file helps me choosing the aspect of various GTK+ 3 software,
including their theme and icons. First, let’s declare the header:
</p>
<div class="org-src-container">
<pre class="src src-conf-unix">[<span style="color: #FCCE7B;">Settings</span>]
</pre>
</div>

<p>
Now, let’s hint to GTK that I prefer dark themes. This can have an
influence also on some websites that can detect this preference and
therefore set their own theme to dark by themselves.
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">gtk-application-prefer-dark-theme</span> = true
</pre>
</div>

<p>
Next, the icon theme is the Flat Remix Dark icon theme:
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">gtk-icon-theme-name</span> = Flat-Remix-Dark
</pre>
</div>

<p>
Now, the general theme for GTK3 is Arc Dark.
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">gtk-theme-name</span> = Arc-Dark
</pre>
</div>

<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">gtk-can-change-accels</span> = 1
</pre>
</div>

<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">gtk-xft-antialias</span>=1
<span style="color: #DFDFDF;">gtk-xft-hinting</span>=1
<span style="color: #DFDFDF;">gtk-xft-hintstyle</span>=hintslight
<span style="color: #62686E;"># </span><span style="color: #62686E;">gtk-xft-rgba=rgb</span>
</pre>
</div>

<p>
Since window decorations are handled by my WMs, I will leave this variable
empty.
</p>
<div class="org-src-container">
<pre class="src src-conf-unix"><span style="color: #DFDFDF;">gtk-decoration-layout</span>=
</pre>
</div>
</div>
</div>
</div>

<div id="outline-container-h-c539fde3-3f1a-4855-8d63-28729ed806a5" class="outline-4">
<h4 id="h-c539fde3-3f1a-4855-8d63-28729ed806a5"><span class="section-number-4">3.2.2</span> Picom</h4>
<div class="outline-text-4" id="text-h-c539fde3-3f1a-4855-8d63-28729ed806a5">
<p>
Picom is a standalone compositor for Xorg, and the successor to Compton,
itself successor to xcompmgr-dana, itself a fork of xcompmgr. You can find
my Picom configuration <a href="picom.html">here</a>.
</p>
</div>
</div>

<div id="outline-container-h-e6f48975-3b86-4a75-a7e5-5cc9edbd9869" class="outline-4">
<h4 id="h-e6f48975-3b86-4a75-a7e5-5cc9edbd9869"><span class="section-number-4">3.2.3</span> Xresources</h4>
<div class="outline-text-4" id="text-h-e6f48975-3b86-4a75-a7e5-5cc9edbd9869">
<p>
My Xresources file is very short. Indeed, it only contains two lines which
are dedicated to my <code>st</code> terminal to set its font and shell. The font is set
as follows.
</p>
<div class="org-src-container">
<pre class="src src-conf"><span style="color: #DFDFDF;">st.font: Source Code Pro for Powerline:style</span>=book
</pre>
</div>
<p>
And I will set my shell like this:
</p>
<div class="org-src-container">
<pre class="src src-conf">st.shell: /usr/bin/fish
</pre>
</div>
<p>
I can also set the transparency of st (my terminal emulator) like so:
</p>
<div class="org-src-container">
<pre class="src src-conf">st.alpha: 0.9
</pre>
</div>

<p>
I used to have lines dedicated to UXTerm and URxvt, but I cast them out of
my system.
</p>
</div>
</div>
</div>

<div id="outline-container-h-2730f882-e775-41a3-b169-5049c142cc54" class="outline-3">
<h3 id="h-2730f882-e775-41a3-b169-5049c142cc54"><span class="section-number-3">3.3</span> Text and source code editing</h3>
<div class="outline-text-3" id="text-h-2730f882-e775-41a3-b169-5049c142cc54">
</div>
<div id="outline-container-h-f6d2561f-5c02-4540-8287-4acf3037b3d5" class="outline-4">
<h4 id="h-f6d2561f-5c02-4540-8287-4acf3037b3d5"><span class="section-number-4">3.3.1</span> Emacs configuration</h4>
<div class="outline-text-4" id="text-h-f6d2561f-5c02-4540-8287-4acf3037b3d5">
<p>
Emacs is my main text editor, which I use for almost everything. Because,
you know…
</p>
<blockquote>
<p>
Emacs is a great operating system, it just lacks a good text editor.
</p>
</blockquote>

<p>
You can find my Emacs config, based on Spacemacs, in my <a href="https://labs.phundrak.com/phundrak/dotfiles/src/branch/master/.spacemacs">.spacemacs</a> file, and
my user configuration in my <a href="spacemacs.html">spacemacs.org</a> file.
</p>
</div>
</div>

<div id="outline-container-h-1724166b-55b7-4a64-9ff1-47c2a9e76f46" class="outline-4">
<h4 id="h-1724166b-55b7-4a64-9ff1-47c2a9e76f46"><span class="section-number-4">3.3.2</span> Nano</h4>
<div class="outline-text-4" id="text-h-1724166b-55b7-4a64-9ff1-47c2a9e76f46">
<p>
Although it is a very simple piece of software, nano does offer some
customization. Mine can be found in my <a href="file:///home/phundrak/org/config-website/nano.html">nano.org</a> file.
</p>
</div>
</div>

<div id="outline-container-h-0ae9005c-76a6-49f6-947c-0c8464616e10" class="outline-4">
<h4 id="h-0ae9005c-76a6-49f6-947c-0c8464616e10"><span class="section-number-4">3.3.3</span> Rustfmt</h4>
<div class="outline-text-4" id="text-h-0ae9005c-76a6-49f6-947c-0c8464616e10">
<p>
You can find my Rustfmt configuration <a href="rustfmt.html">here</a>.
</p>
</div>
</div>
</div>

<div id="outline-container-h-d582e107-fa66-4f79-869e-2b49116ed1ec" class="outline-3">
<h3 id="h-d582e107-fa66-4f79-869e-2b49116ed1ec"><span class="section-number-3">3.4</span> Custom scripts in <code>PATH</code></h3>
<div class="outline-text-3" id="text-h-d582e107-fa66-4f79-869e-2b49116ed1ec">
<p>
I have written some scripts that help me daily accomplish some simple tasks,
like mounting and unmounting a drive or Android device, an emoji picker, a
utility to set up my Wacom tablet, and so on. You can find them stored in
<a href=".local/bin/README.html">.local/bin</a> along with their detailed explanation in the README placed in the
same folder —which is actually their source code once the org-mode file gets
tangled.
</p>
</div>
</div>

<div id="outline-container-h-f35ed9a3-c9fc-458c-8a62-693f679f6992" class="outline-3">
<h3 id="h-f35ed9a3-c9fc-458c-8a62-693f679f6992"><span class="section-number-3">3.5</span> Fish configuration with useful abbreviations</h3>
<div class="outline-text-3" id="text-h-f35ed9a3-c9fc-458c-8a62-693f679f6992">
<p>
You can also find in my Fish shell configuration in my <a href="file:///home/phundrak/org/config-website/fish.html">fish.org</a> file, which
contains my usual abbreviations.
</p>
</div>
</div>

<div id="outline-container-h-1a819f94-ab79-41e6-9509-a2781ab10b79" class="outline-3">
<h3 id="h-1a819f94-ab79-41e6-9509-a2781ab10b79"><span class="section-number-3">3.6</span> And some minor configuration files</h3>
<div class="outline-text-3" id="text-h-1a819f94-ab79-41e6-9509-a2781ab10b79">
</div>
<div id="outline-container-h-f6c48286-a320-493f-b330-ee0a697e6d79" class="outline-4">
<h4 id="h-f6c48286-a320-493f-b330-ee0a697e6d79"><span class="section-number-4">3.6.1</span> Email signature</h4>
<div class="outline-text-4" id="text-h-f6c48286-a320-493f-b330-ee0a697e6d79">
<p>
This file gets inserted automatically at the end of my emails.
</p>
<div class="org-src-container">
<pre class="src src-text">Lucien &#8220;Phundrak&#8221; Cartier-Tilet
https://phundrak.com (Fran&#231;ais)
https://en.phundrak.com (English)

Sent from a Free and Open-Source Linux operating system with GNU/Emacs
</pre>
</div>
</div>
</div>

<div id="outline-container-h-4f92eb29-7cfa-48ec-b39d-39037ace3682" class="outline-4">
<h4 id="h-4f92eb29-7cfa-48ec-b39d-39037ace3682"><span class="section-number-4">3.6.2</span> Global gitignore</h4>
<div class="outline-text-4" id="text-h-4f92eb29-7cfa-48ec-b39d-39037ace3682">
<p>
Sometimes, there are some lines that always reappear in gitignores. So,
instead of always adding them, let git now that some elements are to be
ignored by default, hence the <a href=".gitignore_global">~/.gitignore_global</a> file. First, we don’t want
nano’s backup files.
</p>
<div class="org-src-container">
<pre class="src src-text">~*
</pre>
</div>

<p>
And object files and output binaries generated by <code>gcc</code> and the likes aren’t
welcome either.
</p>
<div class="org-src-container">
<pre class="src src-text">*.out
*.o
</pre>
</div>
</div>
</div>
</div>

<div id="outline-container-h-4f48b912-b67b-4549-a671-802e76221f46" class="outline-3">
<h3 id="h-4f48b912-b67b-4549-a671-802e76221f46"><span class="section-number-3">3.7</span> Tmux configuration</h3>
<div class="outline-text-3" id="text-h-4f48b912-b67b-4549-a671-802e76221f46">
<p>
You can find my tmux configuration in <a href="tmux.html">tmux.org</a>. It depends on the submodule
<a href="https://github.com/gpakosz/.tmux.git">.tmux</a> by <a href="https://pempek.net/">Gregory Pakosz</a>.
</p>
</div>
</div>
</div>

<div id="outline-container-h-5849dbcf-a650-4323-9a90-bec549a7b982" class="outline-2">
<h2 id="h-5849dbcf-a650-4323-9a90-bec549a7b982"><span class="section-number-2">4</span> Dependencies</h2>
<div class="outline-text-2" id="text-h-5849dbcf-a650-4323-9a90-bec549a7b982">
<p>
Of course, some dependencies are needed for my dotfiles to work well. Here is
a non-exhaustive list of software needed by these configuration files:
</p>
<ul class="org-ul">
<li><a href="https://www.gnu.org/software/emacs/">GNU/Emacs</a> &gt;= 26.2
<ul class="org-ul">
<li><a href="http://spacemacs.org">Spacemacs</a> (develop branch)</li>
<li>My <a href="https://labs.phundrak.com/phundrak/conlang-layer">conlanging layer</a></li>
<li><a href="https://github.com/venmos/w3m-layer">Venmos</a>’ <a href="https://github.com/venmos/w3m-layer">w3m layer</a></li>
</ul></li>
<li>The <a href="https://fishshell.com/">Fish shell</a>, using <a href="https://github.com/jorgebucaran/fisher">fisher</a></li>
<li><a href="https://lukesmith.xyz/">Luke Smith</a>’s <a href="https://github.com/LukeSmithxyz/st">fork</a> of <a href="https://st.suckless.org/">st</a></li>
<li><a href="https://resloved.info/">Resloved</a>’s <a href="https://github.com/resloved/i3">i3-gaps-rounded</a> fork of <a href="https://github.com/Airblader/i3">Airblader</a>’s <a href="https://github.com/Airblader/i3">i3-gaps</a>, itself a fork of <a href="https://i3wm.org/">i3</a></li>
<li><a href="https://github.com/yshui/compton">Compton</a>, more specificaly <a href="https://github.com/tryone144/compton">Tryone</a>’s <a href="https://github.com/tryone144/compton">fork</a></li>
<li><a href="https://github.com/dylanaraps/pywal/">pywal</a></li>
<li><a href="https://tools.suckless.org/dmenu/">dmenu</a></li>
<li><a href="https://github.com/enkore/j4-dmenu-desktop">j4-dmenu-desktop</a></li>
<li><a href="https://github.com/davatorium/rofi">Rofi</a></li>
<li><a href="https://github.com/gpoore/minted">minted</a></li>
<li><a href="https://www.rust-lang.org/">Rust</a> (stable and nightly)</li>
<li><a href="https://www.latex-project.org/">LaTeX</a> and <a href="http://xetex.sourceforge.net/">XeTeX</a> (<code>texlive</code> packages on Arch Linux)</li>
<li><a href="https://github.com/tmux/tmux">tmux</a>, based on <a href="https://github.com/gpakosz/.tmux">this repo</a>’s configuration by <a href="https://pempek.net/">Grégory Pakosz</a>.</li>
<li>And a bunch of other stuff, see below</li>
</ul>
<p>
And some other stuff scattered around in my dotfiles.
</p>

<p>
BTW, I use Arch.
</p>
</div>
</div>

<div id="outline-container-h-bfb2e09b-d5d7-4d6f-8b29-763c49b3fd09" class="outline-2">
<h2 id="h-bfb2e09b-d5d7-4d6f-8b29-763c49b3fd09"><span class="section-number-2">5</span> Installation</h2>
<div class="outline-text-2" id="text-h-bfb2e09b-d5d7-4d6f-8b29-763c49b3fd09">
<p>
For an installation walkthrough of my Arch Linux installation, check out my
<a href="installation.html">installation.org</a> file where I walk you through the first manual steps and
through the bootstrap you can execute to automatically take care of a lot of
elements.
</p>
</div>
</div>

<div id="outline-container-h-a3438126-ee60-4f11-a2f6-f52e49dade59" class="outline-2">
<h2 id="h-a3438126-ee60-4f11-a2f6-f52e49dade59"><span class="section-number-2">6</span> Licence</h2>
<div class="outline-text-2" id="text-h-a3438126-ee60-4f11-a2f6-f52e49dade59">
<p>
All of my dotfiles (and my dotfiles only) are available under the GNU GPLv3
Licence. Please consult <a href="LICENCE.md">LICENCE.md</a> for more information. In short: you
are free to access, edit and redistribute all of my dotfiles under the same
licence and as allowed by the licence, and if you fuck up something, it’s your
own responsibility.
</p>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Lucien Cartier-Tilet</p>
<p class="email">Email: <a href="mailto:lucien@phundrak.com">lucien@phundrak.com</a></p>
<p class="date">Created: 2020-05-05 mar. 23:17</p>
</div>
</body>
</html>

+ 5
- 39
org/config/index.org View File

@@ -1,34 +1,5 @@
#+TITLE: Phundrak’s dotfiles
#+INCLUDE: headers.org
#+OPTIONS: auto-id:t
#+HTML_HEAD_EXTRA: <meta name="description" content="Phundrak's dotfiles" />
#+HTML_HEAD_EXTRA: <meta property="og:title" content="Phundrak's dotfiles" />
#+HTML_HEAD_EXTRA: <meta property="og:description" content="Description of the dotfiles of Phundrak" />
#+STARTUP: content

* Table of Contents :TOC:noexport:
:PROPERTIES:
:CUSTOM_ID: h-400070eb-725f-4416-a4c6-da3053df750b
:END:
- [[#presentation][Presentation]]
- [[#screenshots][Screenshots]]
- [[#features][Features]]
- [[#tiling-window-managers][Tiling Window Managers]]
- [[#awesomewm][AwesomeWM]]
- [[#i3-configuration][i3 configuration]]
- [[#graphical-tweaks][Graphical tweaks]]
- [[#gtk-settings][GTK Settings]]
- [[#gtk2][GTK2]]
- [[#gtk3][GTK3]]
- [[#picom][Picom]]
- [[#xresources][Xresources]]
- [[#text-and-source-code-editing][Text and source code editing]]
- [[#emacs-configuration][Emacs configuration]]
- [[#nano][Nano]]
- [[#rustfmt][Rustfmt]]
- [[#custom-scripts-in-path][Custom scripts in =PATH=]]
- [[#fish-configuration-with-useful-abbreviations][Fish configuration with useful abbreviations]]
- [[#and-some-minor-configuration-files][And some minor configuration files]]
#+INCLUDE:-some-minor-configuration-files][And some minor configuration files]]
- [[#email-signature][Email signature]]
- [[#global-gitignore][Global gitignore]]
- [[#tmux-configuration][Tmux configuration]]
@@ -40,8 +11,6 @@
:PROPERTIES:
:CUSTOM_ID: h-536e69f5-c012-4b7d-8a45-3a340d3bc7ee
:END:
[[http://spacemacs.org][file:https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg]]

This is my collection of dotfiles for my daily GNU/Linux environment, tweaked
to my liking. If you wish to get the same setup as mine, follow the
instructions below.
@@ -66,17 +35,14 @@
:CUSTOM_ID: h-ee37502b-09a4-4668-88e2-1d4406252bd2
:END:

#+ATTR_HTML: :width 100%
#+CAPTION: Desktop with Neofetch in the terminal
[[./img/neofetch.png]]
[[./img/neofetch.png.webp]]

#+CAPTION: Desktop with Emacs opened
#+ATTR_HTML: :width 100%
[[./img/emacs.png]]
[[./img/emacs.png.webp]]

#+CAPTION: Desktop with Rofi
#+ATTR_HTML: :width 100%
[[./img/rofi.png]]
[[./img/rofi.png.webp]]

* Features
:PROPERTIES:
@@ -322,7 +288,7 @@
#+BEGIN_SRC text
Lucien “Phundrak” Cartier-Tilet
https://phundrak.com (Français)
https://en.phundrak.com (English)
https://phundrak.com/en (English)

Sent from a Free and Open-Source Linux operating system with GNU/Emacs
#+END_SRC


+ 8
- 7
org/config/installation.org View File

@@ -1,6 +1,6 @@
# -*- org-confirm-babel-evaluate: nil -*-
#+TITLE: Install a Phundrak-flavored Arch Linux
#+INCLUDE: headers.org
#+TITLE: Phundrak-flavored Arch Linux
#+INCLUDE: headers
#+OPTIONS: auto-id:t
#+HTML_HEAD_EXTRA: <meta name="description" content="Phundrak-flavored Arch Linux" />
#+HTML_HEAD_EXTRA: <meta property="og:title" content="Phundrak-flavored Arch Linux" />
@@ -310,14 +310,15 @@
pulseaudio-bluetooth python-autoflake python-envtpl-git python-epc \
python-importmagic python-language-server python-nose python-pip python-ptvsd \
python-pytest python-pywal qt5-imageformats qemu r raw-thumbnailer reflector \
rofi rsync rtv rustup samba scrot sent shadow siji-git simplescreenrecorder \
sshfs st-luke-git sxiv texlive-bin texlive-langchinese texlive-langcyrillic \
texlive-langgreek texlive-langjapanese texlive-langkorean texlive-latexextra \
rofi rsync rtv ruby-rb-fsevent ruby-sass rustup samba scrot sent shadow \
siji-git simplescreenrecorder sshfs st-luke-git sxiv texlive-bin \
texlive-langchinese texlive-langcyrillic texlive-langgreek \
texlive-langjapanese texlive-langkorean texlive-latexextra \
texlive-localmanager-git texlive-most tmux tree ttf-arphic-uming ttf-baekmuk \
ttf-dejavu ttf-google-fonts-opinionated-git ttf-hanazono ttf-joypixels \
ttf-koruri ttf-liberation ttf-monapo ttf-sazanami ttf-tibetan-machine \
typescript typescript-language-server-bin unicode-emoji unrar usbutils valgrind \
vscode-css-languageserver-bin vscode-html-languageserver-bin w3m wget \
typescript typescript-language-server-bin unicode-emoji unrar usbutils \
valgrind vscode-css-languageserver-bin vscode-html-languageserver-bin w3m wget \
x11-ssh-askpass xclip xdg-user-dirs-gtk xfsprogs xorg-drivers xorg-server \
xorg-xinit xss-lock xvkbd yaml-language-server-bin yapf
#+END_SRC


+ 2
- 2
org/config/nano.org View File

@@ -1,5 +1,5 @@
#+TITLE: Phundrak’s nano configuration
#+INCLUDE: headers.org
#+TITLE: Nano configuration
#+INCLUDE: headers
#+OPTIONS: auto-id:t
#+HTML_HEAD_EXTRA: <meta name="description" content="Phundrak's nano configuration" />
#+HTML_HEAD_EXTRA: <meta property="og:title" content="Phundrak's nano configuration" />


+ 74
- 0
org/config/ncmpcpp.org View File

@@ -0,0 +1,74 @@
#+title: Ncmpcpp Configuration (WIP)
#+INCLUDE: headers
#+OPTIONS: auto-id:t
#+HTML_HEAD_EXTRA: <meta name="description" content="Phundrak’s ncmpcpp Configuration" />
#+HTML_HEAD_EXTRA: <meta property="og:title" content="Phundrak’s ncmpcpp Configuration" />
#+HTML_HEAD_EXTRA: <meta property="og:description" content="Description of the ncmpcpp configuration of Phundrak" />
#+PROPERTY: header-args :tangle ~/.config/ncmpcpp/config2 :exports code
#+STARTUP: content

* Table of Contents :TOC_4_gh:noexport:
:PROPERTIES:
:CUSTOM_ID: h-b2167b42-e88d-4308-abaf-d33eeec63fff
:END:
- [[#introduction][Introduction]]
- [[#core-ncmpcpp-settings][Core Ncmpcpp settings]]
- [[#directories][Directories]]
- [[#mpd][MPD]]

* Introduction
:PROPERTIES:
:CUSTOM_ID: h-7ead0ad9-857d-4179-9e02-be0f8f8c02ef
:END:
Ncmpcpp is a TUI front-end for MPD, with an UI very similar to Ncmpc. This is
my main MPD front-end after my i3 shortcuts. You can find below some
screenshots of how my current ncmpcpp configuration looks like.

[[file:img/ncmpcpp-queue.png]]

[[file:img/ncmpcpp-directory.png]]

[[file:img/ncmpcpp-visualizer.png]]

* Core Ncmpcpp settings
:PROPERTIES:
:CUSTOM_ID: h-02b8e820-d12d-479f-a856-86121eccab96
:END:
#+BEGIN_SRC conf :exports none
# -*- mode: conf -*-
#+END_SRC

** Directories
:PROPERTIES:
:CUSTOM_ID: h-0da83a89-b409-4e48-9bd7-3db9afed4945
:END:
Ncmpcpp has two vital directories: the lyrics directory, and its own
configuration directory. The configuration for ncmpcpp is generally either in
~$HOME/.ncmpcpp/~ or in ~$XDG_CONFIG_HOME/ncmpcpp/~.
#+BEGIN_SRC conf
ncmpcpp_directory = ~/.config/ncmpcpp
#+END_SRC

When it comes to the lyrics, be sure to set the directory to the same
directory pointed at by Mpd.
#+BEGIN_SRC conf
lyrics_directory = ~/.lyrics
#+END_SRC

** MPD
:PROPERTIES:
:CUSTOM_ID: h-cc81e6db-7418-4823-b2b4-4c3f1e842eaa
:END:
These settings tell ncmpcpp how to communicate with Mpd. Once again, be sure
to follow your own MPD settings. In my case, I am connecting to my local MPD
server, hence the ~localhost~ value of the variable below, and I did not
change the default port of MPD. My music is located at =~/Music=, and ncmpcpp
should connect pretty much immediately, although I allow a five seconds
timeout before ncmpcpp treats it as an error. Also, no crossfade please.
#+BEGIN_SRC conf
mpd_host = localhost
mpd_port = 6600
mpd_music_dir = ~/Music
mpd_connection_timeout = 5
mpd_crossfade_time = 0
#+END_SRC

+ 1072
- 0
org/config/neofetch.html
File diff suppressed because it is too large
View File


+ 523
- 0
org/config/neofetch.org View File

@@ -0,0 +1,523 @@
# -*- org-confirm-babel-evaluate: nil -*-
#+title: Neofetch configuration (WIP)
#+INCLUDE: headers
#+OPTIONS: auto-id:t
#+HTML_HEAD_EXTRA: <meta name="description" content="Phundrak's Neofetch config" />
#+HTML_HEAD_EXTRA: <meta property="og:title" content="Phundrak's Neofetch config" />
#+HTML_HEAD_EXTRA: <meta property="og:description" content="Description of the Neofetch config file of Phundrak" />
#+PROPERTY: header-args :noweb yes :exports code :tangle no :exports none
#+PROPERTY: header-args:sh :tangle ~/.config/neofetch/config.conf.bak :comments link :exports code :noweb yes
#+STARTUP: content
# #+INFOJS_OPT: view:plain home:https://phundrak.com/config toc:t
#+INFOJS_OPT: up:https://phundrak.com/config/neofetch

* Introduction
:PROPERTIES:
:CUSTOM_ID: h-1b7321bc-190e-41a7-a6e0-ff13e9a61b74
:END:
[[https://github.com/dylanaraps/neofetch][Neofetch]] is a CLI utility used to display system information. It was written
in Bash, and thus its configuration file is written as a Bash script too. This
document was written with org-mode, and my configuration file is tangled from
the source blocks you will see below to =~/.config/neofetch/config.conf=.
First, let’s insert the Emacs config header in order to specify the mode to
open the file with.
#+BEGIN_SRC sh
# -*- mode: sh -*-
#+END_SRC

* The ~print_info~ functions
:PROPERTIES:
:CUSTOM_ID: h-3a3a5ade-adab-4508-9aa9-17896126b169
:END:
The ~print_info~ function is the function called by Neofetch in order to print
the system information it could fetch. In this function, we’ll choose what to
display, and how. This function looks like this:
#+BEGIN_SRC sh
print_info() {
# Print information here…