My dotfiles in a literate config style https://config.phundrak.com
Go to file
Lucien Cartier-Tilet ca6cddcd2d
Extracted installation process from README
Installation process of a Phundrak-flavored Arch-Linux has been
extracted from the README.org file to the installation.org file.
2020-01-14 23:07:37 +01:00
.config added missing package for nomacs 2019-12-30 03:21:25 +01:00
.emacs.d/private updated conlanging layer for Emacs 2019-12-28 22:23:41 +01:00
.etc/ly don’t use xinit anymore, replaced with ly display manager 2019-10-20 19:54:16 +02:00
.gnupg added gpg configuration file 2019-11-23 20:06:46 +01:00
.local not using optirun or primusrun anymore, switched to nvidia-xrun 2019-12-28 22:18:40 +01:00
dev reorganized files 2019-09-26 20:49:23 +02:00
img Updated screenshots, from x220 2019-09-21 17:26:40 +02:00
tmux@01c91ba523 fixed some submodules madness 2019-09-21 16:00:03 +02:00
.gitattributes initial commit for new repo 2019-07-21 03:27:31 +02:00
.gitconfig Updated information, removed unused lines 2019-11-09 18:46:07 +01:00
.gitignore_global Changed backlight utility, fixed some file permissions 2019-10-24 13:33:59 +02:00
.gitmodules updated gitmodules from labs.phundrak.fr to labs.phundrak.com 2019-11-04 14:37:45 +01:00
.nanorc some more literate programming, now managing also Xresources and nanorc 2019-10-21 13:06:10 +02:00
.rustfmt.toml Changed backlight utility, fixed some file permissions 2019-10-24 13:33:59 +02:00
.signature updated domain from phundrak.fr to phundrak.com 2019-11-23 18:31:56 +01:00
.spacemacs Now all user config is in spacemacs.org file 2020-01-14 21:56:02 +01:00
.tmux.conf reorganized files 2019-09-26 20:49:23 +02:00
.tmux.conf.local litterate programming for tmux config file 2019-10-21 12:12:39 +02:00
.Xresources some more literate programming, now managing also Xresources and nanorc 2019-10-21 13:06:10 +02:00
CODE_OF_CONDUCT.md initial commit for new repo 2019-07-21 03:27:31 +02:00
installation.org Extracted installation process from README 2020-01-14 23:07:37 +01:00
LICENSE.md initial commit for new repo 2019-07-21 03:27:31 +02:00
README.org Extracted installation process from README 2020-01-14 23:07:37 +01:00
spacemacs.org Now all user config is in spacemacs.org file 2020-01-14 21:56:02 +01:00
tmux.org updated org headers for tmux config 2019-12-28 22:21:10 +01:00

Phundraks dotfiles

Presentation

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.

As you can see, I personally use fish as my shell of choice, and Emacs using Spacemacs (still with Emacs keybinding) as my main text editor.

I also use Resloveds fork of i3-gaps with two polybar bars and Tryone144s fork of Compton. The colors scheme for rofi, Emacs and polybar are chosen from the wallpapers using pywal.

Screenshots

/phundrak/config.phundrak.com/media/commit/ca6cddcd2da438533c501fe87633fbbbc409c10c/img/neofetch.png
Desktop with Neofetch in the terminal
/phundrak/config.phundrak.com/media/commit/ca6cddcd2da438533c501fe87633fbbbc409c10c/img/emacs.png
Desktop with Emacs opened
/phundrak/config.phundrak.com/media/commit/ca6cddcd2da438533c501fe87633fbbbc409c10c/img/rofi.png
Desktop with Rofi

Features

  • Emacs configuration perfectly tailored for my own use
  • Beautiful and comfy i3 and polybar configuration
  • And enough information below to get basically the same distro install as I have on my main computer and my travel laptop.

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 Execute bootstrap subpart of this file exports almost all of its code snippets to .config/yadm/bootstrap thanks to M-x org-babel-tangle 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.

Custom scripts in PATH

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 .local/bin 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.

Emacs configuration

Emacs is my main text editor, which I use for almost everything. Because, you know…

Emacs is a great operating system, it just lacks a good text editor.

You can find my Emacs config, based on Spacemacs, in my .spacemacs file, and my user configuration in my spacemacs.org file.

Email signature

This file gets inserted automatically at the end of my emails.

  Lucien “Phundrak” Cartier-Tilet
  https://phundrak.com (Français)
  https://en.phundrak.com (English)

  Pensez à notre planète, avez-vous vraiment besoin dimprimer ce courriel ?
  Please mind our planet, do you really need to print this email?

Fish configuration with useful abbreviations

You can also find in .config/fish my Fish shell configuration, which contains my usual abbreviations.

Global gitignore

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 ~/.gitignore_global file. First, we dont want nanos backup files.

  ~*

And output binaries generated by gcc and the likes arent welcome either.

  ,*.out

i3 configuration

The i3 configuration is detailed in its corresponding README which you can find at .config/i3/README.org.

Nano

Although it is a very simple piece of software, nano does offer some customization. Here is mine.

Configuration

When soft line wrapping is enabled, make it wrap lines at blank characters (tabs and spaces) instead of always at the edge of the screen.

set atblanks

Automatically indent a newly created line to the same number of tabs and/or spaces as the previous line (or as the next line if the previous line is the beginning of a paragraph).

  set autoindent

When saving a file, create a backup file by adding a tilde (~) to the file's name. And make and keep not just one backup file, but make and keep a uniquely numbered one every time a file is saved — when backups are enabled with set backup or --backup or -B. The uniquely numbered files are stored in the directory ~/.cache/nano/backups/.

  set backup
  set backupdir /home/phundrak/.cache/nano/backups/

Use bold instead of reverse video for the title bar, status bar, key combos, function tags, line numbers, and selected text. This can be overridden by setting the options titlecolor, statuscolor, keycolor, functioncolor, numbercolor, and selectedcolor.

set boldtext

Do case-unsensitive searches by default.

  unset casesensitive

Constantly display the cursor position in the status bar. This overrides the option quickblank.

set constantshow

Display line numbers to the left of the text area.

set linenumbers

Do regular-expression searches by default. Regular expressions in nano are of the extended type (ERE).

set regexp

Make the Home key smarter. When Home is pressed anywhere but at the very beginning of non-whitespace characters on a line, the cursor will jump to that beginning (either forwards or backwards). If the cursor is already at that position, it will jump to the true beginning of the line.

set smarthome

Enable soft line wrapping for easier viewing of very long lines.

set softwrap

Use a tab size of a certain amount of columns. The value of number must be greater than 0. The default value is 8.

set tabsize 2

Convert typed tabs to spaces. Sue me.

  set tabstospaces

Remove trailing whitespace from wrapped lines when automatic hard-wrapping occurs or when text is justified.

set trimblanks

Save a file by default in Unix format. This overrides nano's default behavior of saving a file in the format that it had. (This option has no effect when you also use set noconvert.)

set unix

Included configuration file

Nano gives the opportunity to include some files located elsewhere. This is why I added this repo as a submodule of my dotfiles so I can access a lot of them at the same time. Since the submodule is cloned in ~/.config/nanorc, we can add only one line to include all of the .nanorc files.

  include ~/.config/nanorc/*.nanorc

Rustfmt

In my .rustfmt.toml, you can find some custom rules on how my Rust code should be formatted.

First, we are using the 2018 edition of Rust.

edition = "2018"

The maximum length of enum variant having discriminant, that gets vertically aligned with others. Variants without discriminants would be ignored for the purpose of alignment.

Note that this is not how much whitespace is inserted, but instead the longest variant name that doesn't get ignored when aligning.

enum_discrim_align_threshold = 20

Put single-expression functions on a single line.

fn_single_line = true

Format code snippet included in doc comments.

format_code_in_doc_comments = true

Format string literals where necessary.

format_strings = true

Use tab characters for indentation, spaces for alignment.

hard_tabs = true

Maximum width of each line

max_width = 80

Merge multiple imports into a single nested import.

merge_imports = true

My newline style will always be Unix.

newline_style = Unix

Convert /* */ comments to // comments where possible.

normalize_comments = true

Convert #![doc] and #[doc] attributes to //! and /// doc comments.

normalize_doc_attributes = true

Reorder impl items. type and const are put first, then macros and methods.

reorder_impl_items = true

Report FIXME items in comments.

report_fixme = "Always"

Report TODO items in comments.

todo = "Always"

The maximum diff of width between struct fields to be aligned with each other.

struct_field_align_threshold = 20

Number of spaces per tab.

tab_spaces = 2

Break comments to fit on the line.

wrap_comments = true

Tmux configuration

You can find my tmux configuration in tmux.org. It depends on the submodule .tmux by Gregory Pakosz.

Xresources

My Xresources file is very short. Indeed, it only contains two lines which are dedicated to my st terminal to set its font and shell. The font is set as follows.

  st.font: Source Code Pro for Powerline:style=book

And I will set my shell like this:

  st.shell: /usr/bin/fish

I used to have lines dedicated to UXTerm and URxvt, but I cast them out of my system.

Dependencies

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:

And some other stuff scattered around in my dotfiles.

BTW, I use Arch.

Installation

For an installation walkthrough of my Arch Linux installation, check out my installation.org 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.

Licence

All of my dotfiles (and my dotfiles only) are available under the GNU GPLv3 Licence. Please consult /phundrak/config.phundrak.com/src/commit/ca6cddcd2da438533c501fe87633fbbbc409c10c/LICENCE.md 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, its your own responsibility.