diff --git a/org/config/index.html b/org/config/index.html deleted file mode 100644 index a755cb9..0000000 --- a/org/config/index.html +++ /dev/null @@ -1,804 +0,0 @@ - - - - - - -Phundrak’s dotfiles - - - - - - - - - - - - - - - - - - - -
-

Phundrak’s dotfiles

-
-

Table of Contents

- -
- -
-

1 Presentation

-
- - - -

-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 27.0.90 -(custom build) using Spacemacs (still with Emacs keybinding in Insert mode but -with Evil in Normal mode) as my main text editor. -

- -

-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 i3-gaps, an i3 fork by Airblader with which I use two bars -generated by Polybar. My other TWM, and the one I use most often, is -AwesomeWM. Both TWMs use pywal to define their color scheme, as well as rofi’s -color scheme. -

- -

-Finally, you can find my configuration for my Ergodox keyboard here. It is -optimized for usage with the Bépo layout set as a software layout, and for -shortcuts from i3. -

-
-
- -
-

2 Screenshots

-
- -
-

neofetch.png.webp -

-

Figure 2: Desktop with Neofetch in the terminal

-
- - -
-

emacs.png.webp -

-

Figure 3: Desktop with Emacs opened

-
- - -
-

rofi.png.webp -

-

Figure 4: Desktop with Rofi

-
-
-
- -
-

3 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 bootstrap found in -installation.org 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. -

-
- -
-

3.1 Tiling Window Managers

-
-
-
-

3.1.1 AwesomeWM

-
-

-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 here. -

-
-
- -
-

3.1.2 i3 configuration

-
-

-The i3 configuration is detailed in its corresponding README which you can -find here. -

-
-
-
- -
-

3.2 Graphical tweaks

-
-
-
-

3.2.1 GTK Settings

-
-
-
-
3.2.1.1 GTK2
-
-

-Regarding GTK2, I have only one configuration file: the filechooser’s -configuration file. -

-
-
[Filechooser Settings]
-
-
- -

-The first option alows me to open the file chooser in the current working -directory: -

-
-
StartupMode=cwd
-
-
- -

-Next, setting the location mode to path-bar will show the path as buttons -that can be clicked rather than the full path. -

-
-
LocationMode=path-bar
-
-
- -

-With this configuration, by default we won’t see hidden files. -

-
-
ShowHidden=true
-
-
- -

-And we'll also see the size of the visible files. -

-
-
ShowSizeColumn=true
-
-
- -

-Now, let’s choose the geometry of our file picker. These two first lines -set where the file picker appears: -

-
-
GeometryX=566
-GeometryY=202
-
-
- -

-And these two describe the size of the window: -

-
-
GeometryWidth=800
-GeometryHeight=400
-
-
- -

-With these two lines, we set how our files are sorted: by name, and in the -ascending order. -

-
-
SortColumn=name
-SortOrder=ascending
-
-
- -

-Our default view mode is a list of files: -

-
-
ViewMode=list-view
-
-
- -

-And finally, setting our icon view scale to -1 sets the icon view to the -max size. -

-
-
IconViewScale=-1
-
-
-
-
- -
-
3.2.1.2 GTK3
-
-

-The following file helps me choosing the aspect of various GTK+ 3 software, -including their theme and icons. First, let’s declare the header: -

-
-
[Settings]
-
-
- -

-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. -

-
-
gtk-application-prefer-dark-theme = true
-
-
- -

-Next, the icon theme is the Flat Remix Dark icon theme: -

-
-
gtk-icon-theme-name = Flat-Remix-Dark
-
-
- -

-Now, the general theme for GTK3 is Arc Dark. -

-
-
gtk-theme-name = Arc-Dark
-
-
- -
-
gtk-can-change-accels = 1
-
-
- -
-
gtk-xft-antialias=1
-gtk-xft-hinting=1
-gtk-xft-hintstyle=hintslight
-# gtk-xft-rgba=rgb
-
-
- -

-Since window decorations are handled by my WMs, I will leave this variable -empty. -

-
-
gtk-decoration-layout=
-
-
-
-
-
- -
-

3.2.2 Picom

-
-

-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 here. -

-
-
- -
-

3.2.3 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 can also set the transparency of st (my terminal emulator) like so: -

-
-
st.alpha: 0.9
-
-
- -

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

-
-
-
- -
-

3.3 Text and source code editing

-
-
-
-

3.3.1 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. -

-
-
- -
-

3.3.2 Nano

-
-

-Although it is a very simple piece of software, nano does offer some -customization. Mine can be found in my nano.org file. -

-
-
- -
-

3.3.3 Rustfmt

-
-

-You can find my Rustfmt configuration here. -

-
-
-
- -
-

3.4 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. -

-
-
- -
-

3.5 Fish configuration with useful abbreviations

-
-

-You can also find in my Fish shell configuration in my fish.org file, which -contains my usual abbreviations. -

-
-
- -
-

3.6 And some minor configuration files

-
-
-
-

3.6.1 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)
-
-Sent from a Free and Open-Source Linux operating system with GNU/Emacs
-
-
-
-
- -
-

3.6.2 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 don’t want -nano’s backup files. -

-
-
~*
-
-
- -

-And object files and output binaries generated by gcc and the likes aren’t -welcome either. -

-
-
*.out
-*.o
-
-
-
-
-
- -
-

3.7 Tmux configuration

-
-

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

-
-
-
- -
-

4 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. -

-
-
- -
-

5 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. -

-
-
- -
-

6 Licence

-
-

-All of my dotfiles (and my dotfiles only) are available under the GNU GPLv3 -Licence. Please consult 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, it’s your -own responsibility. -

-
-
-
-
-

Author: Lucien Cartier-Tilet

-

Email: lucien@phundrak.com

-

Created: 2020-05-05 mar. 23:17

-
- - diff --git a/org/config/neofetch.html b/org/config/neofetch.html deleted file mode 100644 index 5f0fd87..0000000 --- a/org/config/neofetch.html +++ /dev/null @@ -1,1072 +0,0 @@ - - - - - - -Neofetch configuration - - - - - - - - - - - - - - - - - - - - - - - - - -
-

Neofetch configuration

-
-

Table of Contents

- -
- -
-

1 Introduction

-
-

-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. -

-
-
# -*- mode: sh -*-
-
-
-
-
- -
-

2 The print_info functions

-
-

-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: -

-
-
print_info() {
-    # Print information here…
-}
-
-
- -

-Generally, what we will display will be shown through the info function, -redefined inside Neofetch (this is not info(1)). This info function -accepts one or two arguments. With one argument, such as with info memory, -we can get a result that looks like 5136MiB / 15873MiB, while calling it -with two arguments will treat the first one as a prefix and the second one as -the interesting information; info "Memory" memory will look like -Memory: 5136MiB / 15873MiB. Here is what we want to display: -

- - - --- -- -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PrefixInformationWhat it does
 line_breakInsert a blank line
 titleUsername and hostname
 line_breakInsert a blank line
 colsSystem theme
 line_breakInsert a blank line
OSdistroDistribution name
KernelkernelKernel version
UptimeuptimeMachine uptime
PackagespackagesNumber of installed packages
ShellshellUser’s default shell
WMwmUser’s Window Manager
TerminaltermDefault terminal
CPUcpuCPU information
GPUgpuGPU information
MemorymemoryRAM information
- -

-Hence, the function looks like so: -

-
-
print_info() {
-    info line_break
-    info title
-    info line_break
-    info cols
-    info line_break
-    info "OS" distro
-    info "Kernel" kernel
-    info "Uptime" uptime
-    info "Packages" packages
-    info "Shell" shell
-    info "WM" wm
-    info "Terminal" term
-    info "CPU" cpu
-    info "GPU" gpu
-    info "Memory" memory
-
-}
-
-
- -

-Each of these modules can be tuned with the variables presented below. -

-
-
- -
-

3 Information settings

-
-

-Each of the following variable tunes a function that can be called in -print_info described above. It is possible to tune them by modifying this -document or the configuration file itself, and they can be overridden by the -command line with flags passed to neofetch. I will divide these variables in -two main categories: hardware and software-related properties. -

-
- -
-

3.1 Software

-
-
-
-

3.1.1 OS

-
-
-
-
3.1.1.1 Kernel
-
-

-The variable below can shorten the output ofh the kernel function. -

-
-
Default value
"on"
-
Values
    -
  • "on"
  • -
  • "off"
  • -
-
Flag
"--kernel_shorthand"
-
Supports
Everything except *BSDs (except PacBSD and PC-BSD)
-
Examples
-
on
4.8.9-1-ARCH
-
off
Linux 4.8.9-1-ARCH
-
-
-
-
kernel_shorthand="off"
-
-
-
-
- -
-
3.1.1.2 Distro
-
-

-This variable can shorten the output of the distro function. -

-
-
Default value
"on"
-
Values
    -
  • "on"
  • -
  • "off"
  • -
-
Flag
"--distro_shorthand"
-
Supports
Everything except Windows and Haiku
-
Examples
-
on
Arch Linux
-
off
Arch
-
-
-
-
distro_shorthand="off"
-
-
-
-
- -
-
3.1.1.3 OS Architecture
-
-

-This variable can show or hide the OS architecture in the distro output. -

-
-
Default value
"off"
-
Values
    -
  • "on"
  • -
  • "off"
  • -
-
Flag
"--os_arch"
-
Examples
-
on
Arch Linux x86_64
-
off
Arch Linux
-
-
-
-
os_arch="off"
-
-
-
-
-
- -
-

3.1.2 Uptime shorthand

-
-

-This variable can shorten the output of the uptime function. on shortens -it a bit, while tiny shortens it greatly. -

-
-
Default value
"on"
-
Values
    -
  • "on"
  • -
  • "tiny"
  • -
  • "off"
  • -
-
Flag
"--uptime_shorthand"
-
Examples
-
on
2 days, 10 hours, 3 mins
-
off
2 days, 10 hours, 3 minutes
-
tiny
2d 10h 3m
-
-
-
-
uptime_shorthand="on"
-
-
-
-
- -
-

3.1.3 Shell

-
-
-
-
3.1.3.1 Shell path
-
-

-This allows to show either the path of the user’s shell, or simply its -name. -

-
-
Default value
"off"
-
Values
    -
  • "on"
  • -
  • "off"
  • -
-
Flag
"--shell_path"
-
Examples
-
on
/bin/bash
-
off
bash
-
-
-
-
shell_path="off"
-
-
-
-
- -
-
3.1.3.2 Shell version
-
-

-This allows to show the shell’s version in the output of shell. -

-
-
Default value
"on"
-
Values
    -
  • "on"
  • -
  • "off"
  • -
-
Flag
"--shell_version"
-
Examples
-
on
bash 4.4.5
-
off
bash
-
-
-
-
shell_version="off"
-
-
-
-
-
- -
-

3.1.4 Theming

-
-

-This section will allow the user to modify what Neofetch can and cannot -display about the machine’s theming —by this, I mean its GTK theme, its -icons and its default font. -

-
- -
-
3.1.4.1 Shorten output
-
-

-With this value, it is possible to shorten the output of the computer’s -theming. -

-
-
Default value
"off"
-
Values
    -
  • "on"
  • -
  • "off"
  • -
-
Flag
"--gtk_shorthand"
-
Examples
-
on
Numix, Adwaita
-
off
Numix [GTK2], Adwaita [GTK3]
-
-
-
-
gtk_shorthand="on"
-
-
-
-
- -
-
3.1.4.2 Enable or disable theming display for GTK2
-
-

-It is possible to explicitely show or hide the computer’s theming with GTK2 -with this variable. -

-
-
Default value
"on"
-
Values
    -
  • "on"
  • -
  • "off"
  • -
-
Flag
"--gtk2"
-
Examples
-
on
Numix [GTK2], Adwaita [GTK3]
-
off
Adwaita [GTK3]
-
-
-
-
gtk2="off"
-
-
-
-
- -
-
3.1.4.3 Enable or disable theming display for GTK3
-
-

-The same variable as above is also available for GTK3. -

-
-
Default value
"on"
-
Values
    -
  • ""
  • -
  • ""
  • -
-
Flag
""
-
Supports
- -
Examples
-
on
~~
-
off
~~
-
-
-
-
-
-
- - -
-
Default value
""
-
Values
    -
  • ""
  • -
  • ""
  • -
-
Flag
""
-
Supports
- -
Examples
-
on
~~
-
off
~~
-
-
-
-
-
-
-
-
-
-
- -
-

3.2 Hardware

-
-
-
-

3.2.1 CPU

-
-
- -
-
3.2.1.1 CPU brand
-
-

-With this variables, it is possible to show or hide the brand of a CPU in -the cpu output. -

-
-
Default value
"on"
-
Values
    -
  • "on"
  • -
  • "off"
  • -
-
Flag
"--cpu_brand"
-
Examples
-
on
Intel i7-6500U
-
off
i7-6500U
-
-
-
-
cpu_brand="off"
-
-
-
-
- -
-
3.2.1.2 CPU speed
-
-

-With this variable, it is possible to show or hide the speed of the CPU. -

-
-
Default value
"on"
-
Values
    -
  • "on"
  • -
  • "off"
  • -
-
Flag
"--cpu_speed"
-
Examples
-
on
Intel i7-6500U (4) @ 3.1GHz
-
off
Intel i7-6500U (4)
-
-
-
-
cpu_speed="off"
-
-
-
-
- -
-
3.2.1.3 CPU speed type
-
-

-This allows Neofetch to know what type of speed it has to fetch regarding -the machine’s CPU. Any file in /sys/devices/system/cpu/cpu0/cpufreq can -be used as a value. -

-
-
Default value
"bios_limit"
-
Values
    -
  • "scaling_cur_freq"
  • -
  • "scaling_min_freq"
  • -
  • "scaling_max_freq"
  • -
  • "bios_limit"
  • -
-
Flag
"--speed_type"
-
Supports
Linux with cpufreq
-
-
-
speed_type="bios_limit"
-
-
-
-
- -
-
3.2.1.4 CPU speed shorthand
-
-

-This value allows to show sorter CPU speed with less digits. This flag is -not supported in systems with CPU speed below 1GHz. -

-
-
Default value
"off"
-
Values
    -
  • "on"
  • -
  • "on"
  • -
-
Flag
"--speed_shorthand"
-
Examples
-
on
i7-6500U (4) @ 3.1GHz
-
off
i7-6500U (4) @ 3.100GHz
-
-
-
-
speed_shorthand="on"
-
-
-
-
- -
-
3.2.1.5 CPU cores
-
-

-With this variable, it is possible to display the number of cores that are -available in the CPU. -

-
-
Default value
"logical"
-
Values
    -
  • "logical"
  • -
  • "physical"
  • -
  • "off"
  • -
-
Flag
"--cpu_cores"
-
Supports
physical does not work on BSD.
-
Examples
-
logical
Intel i7-6500U (4) @ 3.1GHz (All virtual cores)
-
physical
Intel i7-6500U (2) @ 3.1GHz (All physical cores)
-
off
Intel i7-6500U @ 3.1GHz
-
-
-
-
cpu_cores="off"
-
-
-
-
- -
-
3.2.1.6 CPU temperature
-
-

-This variable allows the user to hide or show the CPU’s temperature, and if -shown, the user can display it in Celcius or Farenheit degrees. For FreeBSD -and NetBSD-based systems, you’ll need to enable the coretemp kernel -module. This only supports newer Intel processors. -

-
-
Default value
"off"
-
Values
    -
  • "C"
  • -
  • "F"
  • -
  • "off"
  • -
-
Flag
"--cpu_temp"
-
Supports
Linux, BSD
-
Examples
-
C
Intel i7-6500U (4) @ 3.1GHz [27.2°C]
-
F
Intel i7-6500U (4) @ 3.1GHz [82.0°F]
-
off
Intel i7-6500U (4) @ 3.1GHz
-
-
-
-
cpu_temp="off"
-
-
-
-
-
- -
-

3.2.2 GPU

-
-

-The function responsible for displaying information regarding the GPUs is -gpu. It will try to list all available GPUs and display what it knows -about them. -

-
- -
-
3.2.2.1 GPU brand
-
-

-This value allows the user to hide or show the brand of their GPU in the -output of gpu. -

-
-
Default value
"on"
-
Values
    -
  • "on"
  • -
  • "off"
  • -
-
Flag
"--gpu_brand"
-
Supports
- -
Examples
-
on
AMD HD 7950
-
off
HD 7950
-
-
-
-
gpu_brand="off"
-
-
-
-
- -
-
3.2.2.2 Which GPU to display
-
-

-This allows the user to choose which GPU appears in the output of the -function gpu. -

-
-
Default value
"all"
-
Values
    -
  • "all"
  • -
  • "dedicated"
  • -
  • "integrated"
  • -
-
Flag
"--gpu_type"
-
Supports
Linux
-
Examples
-
all
- -
dedicated
GPU1: AMD HD 7950
-
integrated
GPU1: Intel Integrated Graphics
-
-
-
-
gpu_type="all"
-
-
-
-
-
- -
-

3.2.3 Resolution

-
-

-This will try to list all the connected screens and display their resolution -individually. It is possible to display the refresh rate or to hide it. -

-
-
Default value
"off"
-
Values
    -
  • "on"
  • -
  • "off"
  • -
-
Flag
"--refresh_rate"
-
Supports
Does not work on Windows
-
Examples
-
on
1920x1080 @ 60Hz
-
off
1920x1080
-
-
-
-
refresh_rate="off"
-
-
-
-
-
-
-
-
-

Author: Lucien Cartier-Tilet

-

Email: lucien@phundrak.com

-

Created: 2020-04-21 mar. 15:02

-
- -