[Org files] Formatted org files to look better with new org config
This commit is contained in:
parent
e3880c48b1
commit
3a1015b9e7
File diff suppressed because it is too large
Load Diff
1952
org/config/bin.org
1952
org/config/bin.org
File diff suppressed because it is too large
Load Diff
@ -1794,7 +1794,6 @@ One of the amazing features of org-mode is its literary programming capacities b
|
|||||||
| sass |
|
| sass |
|
||||||
| scheme |
|
| scheme |
|
||||||
| shell |
|
| shell |
|
||||||
| swift |
|
|
||||||
|
|
||||||
#+NAME: org-babel-languages-gen
|
#+NAME: org-babel-languages-gen
|
||||||
#+BEGIN_SRC emacs-lisp :exports none :tangle no :var languages=org-babel-languages-table[,0] :cache yes :results replace
|
#+BEGIN_SRC emacs-lisp :exports none :tangle no :var languages=org-babel-languages-table[,0] :cache yes :results replace
|
||||||
@ -1803,7 +1802,7 @@ One of the amazing features of org-mode is its literary programming capacities b
|
|||||||
"\n")
|
"\n")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+RESULTS[d8ef67cfac36191c43e0f20b9c0a024cb1e9413e]: org-babel-languages-gen
|
#+RESULTS[cf8b81f0da6306f8131e34be6d3742248fdb057b]: org-babel-languages-gen
|
||||||
#+begin_example
|
#+begin_example
|
||||||
(C . t)
|
(C . t)
|
||||||
(dot . t)
|
(dot . t)
|
||||||
@ -1815,7 +1814,6 @@ One of the amazing features of org-mode is its literary programming capacities b
|
|||||||
(sass . t)
|
(sass . t)
|
||||||
(scheme . t)
|
(scheme . t)
|
||||||
(shell . t)
|
(shell . t)
|
||||||
(swift . t)
|
|
||||||
#+end_example
|
#+end_example
|
||||||
|
|
||||||
The corresponding code is as follows:
|
The corresponding code is as follows:
|
||||||
@ -2604,7 +2602,6 @@ I also want to always be in ~visual-line-mode~ so Emacs soft-wraps lines that ar
|
|||||||
I also want for some non-programming modes to enable a hard-limit in terms of how many characters can fit on one line. The modes that benefit are ~message-mode~, ~org-mode~, ~text-mode~ and ~markdown-mode~.
|
I also want for some non-programming modes to enable a hard-limit in terms of how many characters can fit on one line. The modes that benefit are ~message-mode~, ~org-mode~, ~text-mode~ and ~markdown-mode~.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(mapc (lambda (x)
|
(mapc (lambda (x)
|
||||||
(add-hook x 'auto-fill-mode)
|
|
||||||
(add-hook x 'visual-line-mode))
|
(add-hook x 'visual-line-mode))
|
||||||
'(message-mode-hook
|
'(message-mode-hook
|
||||||
text-mode-hook
|
text-mode-hook
|
||||||
@ -3005,16 +3002,15 @@ I want to see by default how much battery my computer has, so let’s enable it:
|
|||||||
:END:
|
:END:
|
||||||
As I will always say, orgmode is an amazing piece of software that deserves particular care and love. That is why I want to give it a unique look and feel compared to the rest of my Emacs configuration, in order to make it feel much more comfortable.
|
As I will always say, orgmode is an amazing piece of software that deserves particular care and love. That is why I want to give it a unique look and feel compared to the rest of my Emacs configuration, in order to make it feel much more comfortable.
|
||||||
|
|
||||||
In order to make org-mode even sexier, let’s enable ~variable-pitch-mode~ for org-mode so we can get some proportional font:
|
In order to make org-mode even sexier, let’s enable ~variable-pitch-mode~ for org-mode so we can get some proportional font. I’ll also remove ~auto-fill-mode~ which seems to stick to Orgmode like hell and I don’t know why.
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(add-hook 'org-mode-hook 'variable-pitch-mode)
|
(add-hook 'org-mode-hook 'variable-pitch-mode)
|
||||||
(add-hook 'org-mode-hook 'visual-line-mode)
|
(add-hook 'org-mode-hook 'visual-line-mode)
|
||||||
(message "coucou")
|
(remove-hook 'org-mode-hook 'auto-fill-mode)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Fonts will play an important part in this, but so will colors and font size. The following code is largely based on the one found [[https://zzamboni.org/post/beautifying-org-mode-in-emacs/][on this blog post]].
|
Fonts will play an important part in this, but so will colors and font size. The following code is largely based on the one found [[https://zzamboni.org/post/beautifying-org-mode-in-emacs/][on this blog post]].
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(message "Setting up some beautiful org-mode")
|
|
||||||
(let* ((font `(:font "Charis SIL"))
|
(let* ((font `(:font "Charis SIL"))
|
||||||
(head `(:inherit default :weight bold))
|
(head `(:inherit default :weight bold))
|
||||||
(fixed `(:inherit fixed-pitch :height 0.8)))
|
(fixed `(:inherit fixed-pitch :height 0.8)))
|
||||||
@ -3044,7 +3040,6 @@ Fonts will play an important part in this, but so will colors and font size. The
|
|||||||
`(org-link ((t (:foreground ,phundrak/nord8 :underline t))))
|
`(org-link ((t (:foreground ,phundrak/nord8 :underline t))))
|
||||||
'(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch) :height 0.8))))
|
'(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch) :height 0.8))))
|
||||||
'(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch)))))))
|
'(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch)))))))
|
||||||
(message "Org-mode is now beautiful")
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Finally, let’s limit the width of images inlined in org buffers to 400px:
|
Finally, let’s limit the width of images inlined in org buffers to 400px:
|
||||||
|
File diff suppressed because it is too large
Load Diff
1244
org/config/i3.org
1244
org/config/i3.org
File diff suppressed because it is too large
Load Diff
@ -9,69 +9,51 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Presentation-981f2f04
|
:CUSTOM_ID: Presentation-981f2f04
|
||||||
:END:
|
:END:
|
||||||
This is my collection of dotfiles for my daily GNU/Linux environment, tweaked
|
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.
|
||||||
to my liking. If you wish to get the same setup as mine, follow the
|
|
||||||
instructions below.
|
|
||||||
|
|
||||||
For starters, here is the link to all the pages on my website that you might
|
For starters, here is the link to all the pages on my website that you might find interesting. I’ll describe them in more details below.
|
||||||
find interesting. I’ll describe them in more details below.
|
- [[file:installation.org][Arch Linux bootstrap script]]
|
||||||
- [[file:installation.org][Arch Linux bootstrap script]]
|
- [[file:awesome.org][AwesomeWM configuration]]
|
||||||
- [[file:awesome.org][AwesomeWM configuration]]
|
- [[file:bin.org][Custom scripts]]
|
||||||
- [[file:bin.org][Custom scripts]]
|
- [[file:spacemacs.org][Emacs (Spacemacs) configuration]]
|
||||||
- [[file:spacemacs.org][Emacs (Spacemacs) configuration]]
|
- [[file:fish.org][Fish shell configuration]]
|
||||||
- [[file:fish.org][Fish shell configuration]]
|
- [[file:i3.org][i3 configuration]] (deprecated)
|
||||||
- [[file:i3.org][i3 configuration]] (deprecated)
|
- [[file:nano.org][Nano configuration]] (deprecated)
|
||||||
- [[file:nano.org][Nano configuration]] (deprecated)
|
- [[file:ncmpcpp.org][ncmpcpp configuration]] (work in progress)
|
||||||
- [[file:ncmpcpp.org][ncmpcpp configuration]] (work in progress)
|
- [[file:neofetch.org][Neofetch configuration]]
|
||||||
- [[file:neofetch.org][Neofetch configuration]]
|
- [[file:picom.org][Picom configuration]] (new fork of Compton)
|
||||||
- [[file:picom.org][Picom configuration]] (new fork of Compton)
|
- [[file:polybar.org][Polybar configuration]] (deprecated)
|
||||||
- [[file:polybar.org][Polybar configuration]] (deprecated)
|
- [[file:rustfmt.org][Rustfmt configuration]]
|
||||||
- [[file:rustfmt.org][Rustfmt configuration]]
|
- [[file:tmux.org][Tmux configuration]]
|
||||||
- [[file:tmux.org][Tmux configuration]]
|
|
||||||
|
|
||||||
As you can see, I personally use [[https://fishshell.com/][fish]] as my shell of choice, and [[https://www.gnu.org/software/emacs/][Emacs]] 28.0
|
As you can see, I personally use [[https://fishshell.com/][fish]] as my shell of choice, and [[https://www.gnu.org/software/emacs/][Emacs]] 28.0 (using the ~native-comp~ branch) using [[http://spacemacs.org][Spacemacs]] (still with Emacs keybinding in Insert mode but with Evil in Normal mode) as my main text editor.
|
||||||
(using the ~native-comp~ branch) using [[http://spacemacs.org][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.
|
When it comes to my graphical UI, I do not have any desktop environment. Instead, I have a tiling window manager, AwesomeWM. The historical first on my configuration is [[https://github.com/Airblader/i3][i3-gaps]], an [[https://i3wm.org/][i3]] fork by [[https://github.com/Airblader/i3][Airblader]] with which I use two bars generated by [[https://polybar.github.io/][Polybar]]. It used [[https://github.com/dylanaraps/pywal][pywal]] to define their color scheme, as well as [[https://github.com/davatorium/rofi][rofi]]’s color scheme. My other TWM and the one I currently use is [[https://awesomewm.org/][AwesomeWM]].
|
||||||
Instead, I have a tiling window manager, AwesomeWM. The historical first on my
|
|
||||||
configuration is [[https://github.com/Airblader/i3][i3-gaps]], an [[https://i3wm.org/][i3]] fork by [[https://github.com/Airblader/i3][Airblader]] with which I use two bars
|
|
||||||
generated by [[https://polybar.github.io/][Polybar]]. It used [[https://github.com/dylanaraps/pywal][pywal]] to define their color scheme, as well as
|
|
||||||
[[https://github.com/davatorium/rofi][rofi]]’s color scheme. My other TWM and the one I currently use is [[https://awesomewm.org/][AwesomeWM]].
|
|
||||||
|
|
||||||
Finally, you can find my configuration for my ErgodoxEZ keyboard [[https://configure.ergodox-ez.com/ergodox-ez/layouts/5WrVw/latest/0][here]]. It is
|
Finally, you can find my configuration for my ErgodoxEZ keyboard [[https://configure.ergodox-ez.com/ergodox-ez/layouts/5WrVw/latest/0][here]]. It is optimized for usage with the Bépo layout set as a software layout, and for shortcuts from i3.
|
||||||
optimized for usage with the Bépo layout set as a software layout, and for
|
|
||||||
shortcuts from i3.
|
|
||||||
|
|
||||||
* Screenshots
|
* Screenshots
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Screenshots-51f1cef3
|
:CUSTOM_ID: Screenshots-51f1cef3
|
||||||
:END:
|
:END:
|
||||||
|
#+CAPTION: Desktop with Neofetch in the terminal
|
||||||
|
[[./img/neofetch.png.webp]]
|
||||||
|
|
||||||
#+CAPTION: Desktop with Neofetch in the terminal
|
#+CAPTION: Desktop with Emacs opened
|
||||||
[[./img/neofetch.png.webp]]
|
[[./img/emacs.png.webp]]
|
||||||
|
|
||||||
#+CAPTION: Desktop with Emacs opened
|
#+CAPTION: Desktop with Rofi
|
||||||
[[./img/emacs.png.webp]]
|
[[./img/rofi.png.webp]]
|
||||||
|
|
||||||
#+CAPTION: Desktop with Rofi
|
|
||||||
[[./img/rofi.png.webp]]
|
|
||||||
|
|
||||||
* Features
|
* Features
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Features-5ab2a2c0
|
:CUSTOM_ID: Features-5ab2a2c0
|
||||||
:END:
|
:END:
|
||||||
- Emacs configuration perfectly tailored for my own use
|
- Emacs configuration perfectly tailored for my own use
|
||||||
- Beautiful and comfy i3 and polybar configuration
|
- Beautiful and comfy i3 and polybar configuration
|
||||||
- And enough information below to get basically the same distro install as I
|
- And enough information below to get basically the same distro install as I have on my main computer and my travel laptop.
|
||||||
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
|
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 [[file:installation.org][installation.org]] exports almost all of its code snippets to [[file:.config/yadm/bootstrap][.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.
|
||||||
of much of my config files. For instance, the bootstrap found in
|
|
||||||
[[file:installation.org][installation.org]] exports almost all of its code snippets to
|
|
||||||
[[file:.config/yadm/bootstrap][.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.
|
|
||||||
|
|
||||||
** Tiling Window Managers
|
** Tiling Window Managers
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
@ -81,25 +63,19 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Features-Tiling_Window_Managers-AwesomeWM-2eac61a9
|
:CUSTOM_ID: Features-Tiling_Window_Managers-AwesomeWM-2eac61a9
|
||||||
:END:
|
:END:
|
||||||
AwesomeWM is the TWM I use the most on my computer between itself and i3. My
|
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 [[file:awesome.org][here]].
|
||||||
configuration for it is documented in detail in its corresponding document,
|
|
||||||
which you can find [[file:awesome.org][here]].
|
|
||||||
|
|
||||||
*** i3 configuration (Deprecated)
|
*** i3 configuration (Deprecated)
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Features-Tiling_Window_Managers-i3_configuration-9c92e43c
|
:CUSTOM_ID: Features-Tiling_Window_Managers-i3_configuration-9c92e43c
|
||||||
:END:
|
:END:
|
||||||
The i3 configuration is detailed in its corresponding README which you can
|
The i3 configuration is detailed in its corresponding README which you can find [[file:i3.org][here]]. Be aware I do not use i3 anymore, and I will not update it until I may someday use it again. This was deprecated on August 22nd, 2020.
|
||||||
find [[file:i3.org][here]]. Be aware I do not use i3 anymore, and I will not update it until
|
|
||||||
I may someday use it again. This was deprecated on August 22nd, 2020.
|
|
||||||
|
|
||||||
** Polybar config (Deprecated)
|
** Polybar config (Deprecated)
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Features-Polybar_config_(Deprecated)-c8f95774
|
:CUSTOM_ID: Features-Polybar_config_(Deprecated)-c8f95774
|
||||||
:END:
|
:END:
|
||||||
My annotated polybar config can be found [[file:polybar.org][here]], if you wish to use it. Be
|
My annotated polybar config can be found [[file:polybar.org][here]], if you wish to use it. Be aware I do not use polybar anymore, and I will not update it until I may someday use it again. This was deprecated on August 22nd, 2020.
|
||||||
aware I do not use polybar anymore, and I will not update it until I may
|
|
||||||
someday use it again. This was deprecated on August 22nd, 2020.
|
|
||||||
|
|
||||||
** Graphical tweaks
|
** Graphical tweaks
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
@ -118,207 +94,191 @@
|
|||||||
:HEADER-ARGS: :mkdirp yes :tangle ~/.gtkrc-2.0
|
:HEADER-ARGS: :mkdirp yes :tangle ~/.gtkrc-2.0
|
||||||
:CUSTOM_ID: Features-Graphical_tweaks-GTK_Settings-GTK2-General_configuration-eb1f1f3c
|
:CUSTOM_ID: Features-Graphical_tweaks-GTK_Settings-GTK2-General_configuration-eb1f1f3c
|
||||||
:END:
|
:END:
|
||||||
This file is tangled at ~$HOME/.gtkrc-2.0~. This is an equivalent for the
|
This file is tangled at ~$HOME/.gtkrc-2.0~. This is an equivalent for the GTK3 configuration file you will see below, and it shares most of its settings. First, let’s select the Nordic theme for GTK2. Let’s also set the icon theme.
|
||||||
GTK3 configuration file you will see below, and it shares most of its
|
#+BEGIN_SRC conf-unix
|
||||||
settings. First, let’s select the Nordic theme for GTK2. Let’s also set
|
# -*- mode: unix-config -*-
|
||||||
the icon theme.
|
gtk-theme-name="Nordic"
|
||||||
#+BEGIN_SRC conf-unix
|
gtk-icon-theme-name="Flat-Remix-Dark"
|
||||||
# -*- mode: unix-config -*-
|
#+END_SRC
|
||||||
gtk-theme-name="Nordic"
|
|
||||||
gtk-icon-theme-name="Flat-Remix-Dark"
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
gtk-xft-antialias=1
|
gtk-xft-antialias=1
|
||||||
gtk-xft-hinting=1
|
gtk-xft-hinting=1
|
||||||
gtk-xft-hintstyle="hintslight"
|
gtk-xft-hintstyle="hintslight"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
This changes the shortcuts in menu, let’s also make the menus snappier.
|
This changes the shortcuts in menu, let’s also make the menus snappier.
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
gtk-can-change-accels=1
|
gtk-can-change-accels=1
|
||||||
gtk-menu-bar-popup-delay=0
|
gtk-menu-bar-popup-delay=0
|
||||||
gtk-menu-popdown-delay=0
|
gtk-menu-popdown-delay=0
|
||||||
gtk-menu-popup-delay=0
|
gtk-menu-popup-delay=0
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
***** Filechooser
|
***** Filechooser
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:HEADER-ARGS: :mkdirp yes :tangle ~/.config/gtk-2.0/gtkfilechooser.ini
|
:HEADER-ARGS: :mkdirp yes :tangle ~/.config/gtk-2.0/gtkfilechooser.ini
|
||||||
:CUSTOM_ID: Features-Graphical_tweaks-GTK_Settings-GTK2-Filechooser-389f040d
|
:CUSTOM_ID: Features-Graphical_tweaks-GTK_Settings-GTK2-Filechooser-389f040d
|
||||||
:END:
|
:END:
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
[Filechooser Settings]
|
[Filechooser Settings]
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
The first option alows me to open the file chooser in the current working
|
The first option alows me to open the file chooser in the current working directory:
|
||||||
directory:
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
StartupMode=cwd
|
||||||
StartupMode=cwd
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Next, setting the location mode to ~path-bar~ will show the path as buttons
|
Next, setting the location mode to ~path-bar~ will show the path as buttons that can be clicked rather than the full path.
|
||||||
that can be clicked rather than the full path.
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
LocationMode=path-bar
|
||||||
LocationMode=path-bar
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
With this configuration, by default we won’t see hidden files.
|
With this configuration, by default we won’t see hidden files.
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
ShowHidden=true
|
ShowHidden=true
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
And we'll also see the size of the visible files.
|
And we'll also see the size of the visible files.
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
ShowSizeColumn=true
|
ShowSizeColumn=true
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Now, let’s choose the geometry of our file picker. These two first lines
|
Now, let’s choose the geometry of our file picker. These two first lines set where the file picker appears:
|
||||||
set where the file picker appears:
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
GeometryX=566
|
||||||
GeometryX=566
|
GeometryY=202
|
||||||
GeometryY=202
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
And these two describe the size of the window:
|
And these two describe the size of the window:
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
GeometryWidth=800
|
GeometryWidth=800
|
||||||
GeometryHeight=400
|
GeometryHeight=400
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
With these two lines, we set how our files are sorted: by name, and in the
|
With these two lines, we set how our files are sorted: by name, and in the ascending order.
|
||||||
ascending order.
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
SortColumn=name
|
||||||
SortColumn=name
|
SortOrder=ascending
|
||||||
SortOrder=ascending
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Our default view mode is a list of files:
|
Our default view mode is a list of files:
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
ViewMode=list-view
|
ViewMode=list-view
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
And finally, setting our icon view scale to ~-1~ sets the icon view to the
|
And finally, setting our icon view scale to ~-1~ sets the icon view to the max size.
|
||||||
max size.
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
IconViewScale=-1
|
||||||
IconViewScale=-1
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
**** GTK3
|
**** GTK3
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:HEADER-ARGS: :mkdirp yes :tangle ~/.config/gtk-3.0/settings.ini
|
:HEADER-ARGS: :mkdirp yes :tangle ~/.config/gtk-3.0/settings.ini
|
||||||
:CUSTOM_ID: Features-Graphical_tweaks-GTK_Settings-GTK3-3d6cba86
|
:CUSTOM_ID: Features-Graphical_tweaks-GTK_Settings-GTK3-3d6cba86
|
||||||
:END:
|
:END:
|
||||||
The following file helps me choosing the aspect of various GTK+ 3 software,
|
The following file helps me choosing the aspect of various GTK+ 3 software, including their theme and icons. First, let’s declare the header:
|
||||||
including their theme and icons. First, let’s declare the header:
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
[Settings]
|
||||||
[Settings]
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Now, let’s hint to GTK that I prefer dark themes. This can have an
|
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.
|
||||||
influence also on some websites that can detect this preference and
|
#+BEGIN_SRC conf-unix
|
||||||
therefore set their own theme to dark by themselves.
|
gtk-application-prefer-dark-theme = true
|
||||||
#+BEGIN_SRC conf-unix
|
#+END_SRC
|
||||||
gtk-application-prefer-dark-theme = true
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Next, the icon theme is the Flat Remix Dark icon theme:
|
Next, the icon theme is the Flat Remix Dark icon theme:
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
gtk-icon-theme-name = Flat-Remix-Dark
|
gtk-icon-theme-name = Flat-Remix-Dark
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Now, the general theme for GTK3 is Nordic.
|
Now, the general theme for GTK3 is Nordic.
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
gtk-theme-name = Nordic
|
gtk-theme-name = Nordic
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
gtk-can-change-accels=1
|
gtk-can-change-accels=1
|
||||||
gtk-menu-bar-popup-delay=0
|
gtk-menu-bar-popup-delay=0
|
||||||
gtk-menu-popdown-delay=0
|
gtk-menu-popdown-delay=0
|
||||||
gtk-menu-popup-delay=0
|
gtk-menu-popup-delay=0
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
gtk-xft-antialias=1
|
gtk-xft-antialias=1
|
||||||
gtk-xft-hinting=1
|
gtk-xft-hinting=1
|
||||||
gtk-xft-hintstyle=hintslight
|
gtk-xft-hintstyle=hintslight
|
||||||
# gtk-xft-rgba=rgb
|
# gtk-xft-rgba=rgb
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Since window decorations are handled by my WMs, I will leave this variable
|
Since window decorations are handled by my WMs, I will leave this variable empty.
|
||||||
empty.
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
gtk-decoration-layout=
|
||||||
gtk-decoration-layout=
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
*** Picom (Compton)
|
*** Picom (Compton)
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Features-Graphical_tweaks-Picom-b5b9a4dd
|
:CUSTOM_ID: Features-Graphical_tweaks-Picom-b5b9a4dd
|
||||||
:END:
|
:END:
|
||||||
Picom is a standalone compositor for Xorg, and the successor to Compton,
|
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 [[file:picom.org][here]].
|
||||||
itself successor to xcompmgr-dana, itself a fork of xcompmgr. You can find
|
|
||||||
my Picom configuration [[file:picom.org][here]].
|
|
||||||
|
|
||||||
*** Xresources
|
*** Xresources
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:HEADER-ARGS: :mkdirp yes :tangle ~/.Xresources :exports code
|
:HEADER-ARGS: :mkdirp yes :tangle ~/.Xresources :exports code
|
||||||
:CUSTOM_ID: Features-Graphical_tweaks-Xresources-8b622de1
|
:CUSTOM_ID: Features-Graphical_tweaks-Xresources-8b622de1
|
||||||
:END:
|
:END:
|
||||||
My Xresources file is very short. Indeed, it only contains two lines which
|
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.
|
||||||
are dedicated to my =st= terminal to set its font and shell. The font is set
|
#+BEGIN_SRC conf
|
||||||
as follows.
|
st.font: Fantasque Sans Mono:size=10:antialias=true
|
||||||
#+BEGIN_SRC conf
|
#+END_SRC
|
||||||
st.font: Fantasque Sans Mono:size=10:antialias=true
|
|
||||||
#+END_SRC
|
|
||||||
I can also set the transparency of st (my terminal emulator) like so:
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
st.alpha: 0.85
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Next is the declaration of my color theme. It is based on the [[https://www.nordtheme.com/][Nord]] theme,
|
I can also set the transparency of st (my terminal emulator) like so:
|
||||||
from their [[https://github.com/arcticicestudio/nord-xresources/][Git repository]].
|
#+BEGIN_SRC conf
|
||||||
#+BEGIN_SRC conf
|
st.alpha: 0.85
|
||||||
#define nord0 #2E3440
|
#+END_SRC
|
||||||
#define nord1 #3B4252
|
|
||||||
#define nord2 #434C5E
|
|
||||||
#define nord3 #4C566A
|
|
||||||
#define nord4 #D8DEE9
|
|
||||||
#define nord5 #E5E9F0
|
|
||||||
#define nord6 #ECEFF4
|
|
||||||
#define nord7 #8FBCBB
|
|
||||||
#define nord8 #88C0D0
|
|
||||||
#define nord9 #81A1C1
|
|
||||||
#define nord10 #5E81AC
|
|
||||||
#define nord11 #BF616A
|
|
||||||
#define nord12 #D08770
|
|
||||||
#define nord13 #EBCB8B
|
|
||||||
#define nord14 #A3BE8C
|
|
||||||
#define nord15 #B48EAD
|
|
||||||
|
|
||||||
,*.foreground: nord4
|
Next is the declaration of my color theme. It is based on the [[https://www.nordtheme.com/][Nord]] theme, from their [[https://github.com/arcticicestudio/nord-xresources/][Git repository]].
|
||||||
,*.background: nord0
|
#+BEGIN_SRC conf
|
||||||
,*.cursorColor: nord4
|
#define nord0 #2E3440
|
||||||
,*fading: 35
|
#define nord1 #3B4252
|
||||||
,*fadeColor: nord3
|
#define nord2 #434C5E
|
||||||
|
#define nord3 #4C566A
|
||||||
|
#define nord4 #D8DEE9
|
||||||
|
#define nord5 #E5E9F0
|
||||||
|
#define nord6 #ECEFF4
|
||||||
|
#define nord7 #8FBCBB
|
||||||
|
#define nord8 #88C0D0
|
||||||
|
#define nord9 #81A1C1
|
||||||
|
#define nord10 #5E81AC
|
||||||
|
#define nord11 #BF616A
|
||||||
|
#define nord12 #D08770
|
||||||
|
#define nord13 #EBCB8B
|
||||||
|
#define nord14 #A3BE8C
|
||||||
|
#define nord15 #B48EAD
|
||||||
|
|
||||||
,*.color0: nord1
|
,*.foreground: nord4
|
||||||
,*.color1: nord11
|
,*.background: nord0
|
||||||
,*.color2: nord14
|
,*.cursorColor: nord4
|
||||||
,*.color3: nord13
|
,*fading: 35
|
||||||
,*.color4: nord9
|
,*fadeColor: nord3
|
||||||
,*.color5: nord15
|
|
||||||
,*.color6: nord8
|
,*.color0: nord1
|
||||||
,*.color7: nord5
|
,*.color1: nord11
|
||||||
,*.color8: nord3
|
,*.color2: nord14
|
||||||
,*.color9: nord11
|
,*.color3: nord13
|
||||||
,*.color10: nord14
|
,*.color4: nord9
|
||||||
,*.color11: nord13
|
,*.color5: nord15
|
||||||
,*.color12: nord9
|
,*.color6: nord8
|
||||||
,*.color13: nord15
|
,*.color7: nord5
|
||||||
,*.color14: nord7
|
,*.color8: nord3
|
||||||
,*.color15: nord6
|
,*.color9: nord11
|
||||||
#+END_SRC
|
,*.color10: nord14
|
||||||
|
,*.color11: nord13
|
||||||
|
,*.color12: nord9
|
||||||
|
,*.color13: nord15
|
||||||
|
,*.color14: nord7
|
||||||
|
,*.color15: nord6
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Text and source code editing
|
** Text and source code editing
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
@ -328,47 +288,36 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Features-Text_and_source_code_editing-Emacs_configuration-ef937102
|
:CUSTOM_ID: Features-Text_and_source_code_editing-Emacs_configuration-ef937102
|
||||||
:END:
|
:END:
|
||||||
Emacs is my main text editor, which I use for almost everything. Because,
|
Emacs is my main text editor, which I use for almost everything. Because, you know…
|
||||||
you know…
|
#+begin_quote
|
||||||
#+begin_quote
|
Emacs is a great operating system, it just lacks a good text editor.
|
||||||
Emacs is a great operating system, it just lacks a good text editor.
|
#+end_quote
|
||||||
#+end_quote
|
|
||||||
|
|
||||||
You can find my Emacs config, based on Spacemacs, in my [[https://labs.phundrak.com/phundrak/dotfiles/src/branch/master/.spacemacs][.spacemacs]] file, and
|
You can find my Emacs config, based on Spacemacs, in my [[https://labs.phundrak.com/phundrak/dotfiles/src/branch/master/.spacemacs][.spacemacs]] file, and my user configuration in my [[file:emacs.org][emacs.org]] file.
|
||||||
my user configuration in my [[file:emacs.org][emacs.org]] file.
|
|
||||||
|
|
||||||
*** Nano (deprecated)
|
*** Nano (deprecated)
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Features-Text_and_source_code_editing-Nano-a9d4839f
|
:CUSTOM_ID: Features-Text_and_source_code_editing-Nano-a9d4839f
|
||||||
:END:
|
:END:
|
||||||
Although it is a very simple piece of software, nano does offer some
|
Although it is a very simple piece of software, nano does offer some customization. Mine can be found in my [[file:~/org/config-website/nano.org][nano.org]] file. Be aware I do not use nano anymore, and I will not update it until I may someday use it again. This was deprecated on August 28th, 2020.
|
||||||
customization. Mine can be found in my [[file:~/org/config-website/nano.org][nano.org]] file. Be aware I do not use
|
|
||||||
nano anymore, and I will not update it until I may someday use it again.
|
|
||||||
This was deprecated on August 28th, 2020.
|
|
||||||
|
|
||||||
*** Rustfmt
|
*** Rustfmt
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Features-Text_and_source_code_editing-Rustfmt-2c4ac0b3
|
:CUSTOM_ID: Features-Text_and_source_code_editing-Rustfmt-2c4ac0b3
|
||||||
:END:
|
:END:
|
||||||
You can find my Rustfmt configuration [[file:rustfmt.org][here]].
|
You can find my Rustfmt configuration [[file:rustfmt.org][here]].
|
||||||
|
|
||||||
** Custom scripts in =PATH=
|
** Custom scripts in =PATH=
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Features-Custom_scripts_in_=PATH=-043e8c8e
|
:CUSTOM_ID: Features-Custom_scripts_in_=PATH=-043e8c8e
|
||||||
:END:
|
:END:
|
||||||
I have written some scripts that help me daily accomplish some simple tasks,
|
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 my [[file:bin.org][bin.org]] file 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.
|
||||||
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 my
|
|
||||||
[[file:bin.org][bin.org]] file 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.
|
|
||||||
|
|
||||||
** Fish configuration with useful abbreviations
|
** Fish configuration with useful abbreviations
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Features-Fish_configuration_with_useful_abbreviations-c71ffba0
|
:CUSTOM_ID: Features-Fish_configuration_with_useful_abbreviations-c71ffba0
|
||||||
:END:
|
:END:
|
||||||
You can also find in my Fish shell configuration in my [[file:~/org/config-website/fish.org][fish.org]] file, which
|
You can also find in my Fish shell configuration in my [[file:~/org/config-website/fish.org][fish.org]] file, which contains my usual abbreviations.
|
||||||
contains my usual abbreviations.
|
|
||||||
|
|
||||||
** And some minor configuration files
|
** And some minor configuration files
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
@ -379,85 +328,69 @@
|
|||||||
:HEADER-ARGS: :mkdirp yes :tangle ~/.signature
|
:HEADER-ARGS: :mkdirp yes :tangle ~/.signature
|
||||||
:CUSTOM_ID: Features-And_some_minor_configuration_files-Email_signature-8c5f2218
|
:CUSTOM_ID: Features-And_some_minor_configuration_files-Email_signature-8c5f2218
|
||||||
:END:
|
:END:
|
||||||
This file gets inserted automatically at the end of my emails.
|
This file gets inserted automatically at the end of my emails.
|
||||||
#+BEGIN_SRC text
|
#+BEGIN_SRC text
|
||||||
Lucien “Phundrak” Cartier-Tilet
|
Lucien “Phundrak” Cartier-Tilet
|
||||||
Étudiant en Master Informatique, Tuteur, Université Paris 8
|
Étudiant en Master Informatique, Tuteur, Université Paris 8
|
||||||
https://phundrak.com (Français)
|
https://phundrak.com (Français)
|
||||||
https://phundrak.com/en (English)
|
https://phundrak.com/en (English)
|
||||||
|
|
||||||
Sent from GNU/Emacs
|
Sent from GNU/Emacs
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Global gitignore
|
*** Global gitignore
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:HEADER-ARGS: :mkdirp yes :tangle ~/.gitignore_global
|
:HEADER-ARGS: :mkdirp yes :tangle ~/.gitignore_global
|
||||||
:CUSTOM_ID: Features-And_some_minor_configuration_files-Global_gitignore-42467108
|
:CUSTOM_ID: Features-And_some_minor_configuration_files-Global_gitignore-42467108
|
||||||
:END:
|
:END:
|
||||||
Sometimes, there are some lines that always reappear in gitignores. So,
|
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 [[file:.gitignore_global][~/.gitignore_global]] file. First, we don’t want nano’s backup files.
|
||||||
instead of always adding them, let git now that some elements are to be
|
#+BEGIN_SRC text
|
||||||
ignored by default, hence the [[file:.gitignore_global][~/.gitignore_global]] file. First, we don’t want
|
~*
|
||||||
nano’s backup files.
|
#+END_SRC
|
||||||
#+BEGIN_SRC text
|
|
||||||
~*
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
And object files and output binaries generated by =gcc= and the likes aren’t
|
And object files and output binaries generated by =gcc= and the likes aren’t welcome either.
|
||||||
welcome either.
|
#+BEGIN_SRC text
|
||||||
#+BEGIN_SRC text
|
,*.out
|
||||||
,*.out
|
,*.o
|
||||||
,*.o
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Tmux configuration
|
** Tmux configuration
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Features-Tmux_configuration-ce76e030
|
:CUSTOM_ID: Features-Tmux_configuration-ce76e030
|
||||||
:END:
|
:END:
|
||||||
You can find my tmux configuration in [[file:tmux.org][tmux.org]]. It depends on the submodule
|
You can find my tmux configuration in [[file:tmux.org][tmux.org]]. It depends on the submodule [[https://github.com/gpakosz/.tmux.git][.tmux]] by [[https://pempek.net/][Gregory Pakosz]].
|
||||||
[[https://github.com/gpakosz/.tmux.git][.tmux]] by [[https://pempek.net/][Gregory Pakosz]].
|
|
||||||
|
|
||||||
* Dependencies
|
* Dependencies
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Dependencies-ef5057dd
|
:CUSTOM_ID: Dependencies-ef5057dd
|
||||||
:END:
|
:END:
|
||||||
Of course, some dependencies are needed for my dotfiles to work well. Here is
|
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:
|
||||||
a non-exhaustive list of software needed by these configuration files:
|
- [[https://www.gnu.org/software/emacs/][GNU/Emacs]] >= 26.2
|
||||||
- [[https://www.gnu.org/software/emacs/][GNU/Emacs]] >= 26.2
|
- [[http://spacemacs.org][Spacemacs]] (develop branch)
|
||||||
- [[http://spacemacs.org][Spacemacs]] (develop branch)
|
- My [[https://labs.phundrak.com/phundrak/conlang-layer][conlanging layer]]
|
||||||
- My [[https://labs.phundrak.com/phundrak/conlang-layer][conlanging layer]]
|
- [[https://github.com/venmos/w3m-layer][Venmos]]’ [[https://github.com/venmos/w3m-layer][w3m layer]]
|
||||||
- [[https://github.com/venmos/w3m-layer][Venmos]]’ [[https://github.com/venmos/w3m-layer][w3m layer]]
|
- The [[https://fishshell.com/][Fish shell]], using [[https://github.com/jorgebucaran/fisher][fisher]]
|
||||||
- The [[https://fishshell.com/][Fish shell]], using [[https://github.com/jorgebucaran/fisher][fisher]]
|
- [[https://lukesmith.xyz/][Luke Smith]]’s [[https://github.com/LukeSmithxyz/st][fork]] of [[https://st.suckless.org/][st]]
|
||||||
- [[https://lukesmith.xyz/][Luke Smith]]’s [[https://github.com/LukeSmithxyz/st][fork]] of [[https://st.suckless.org/][st]]
|
- [[https://tools.suckless.org/dmenu/][dmenu]]
|
||||||
- [[https://resloved.info/][Resloved]]’s [[https://github.com/resloved/i3][i3-gaps-rounded]] fork of [[https://github.com/Airblader/i3][Airblader]]’s [[https://github.com/Airblader/i3][i3-gaps]], itself a fork of [[https://i3wm.org/][i3]]
|
- [[https://github.com/enkore/j4-dmenu-desktop][j4-dmenu-desktop]]
|
||||||
- [[https://github.com/yshui/compton][Compton]], more specificaly [[https://github.com/tryone144/compton][Tryone]]’s [[https://github.com/tryone144/compton][fork]]
|
- [[https://github.com/davatorium/rofi][Rofi]]
|
||||||
- [[https://github.com/dylanaraps/pywal/][pywal]]
|
- [[https://github.com/gpoore/minted][minted]]
|
||||||
- [[https://tools.suckless.org/dmenu/][dmenu]]
|
- [[https://www.rust-lang.org/][Rust]] (stable and nightly)
|
||||||
- [[https://github.com/enkore/j4-dmenu-desktop][j4-dmenu-desktop]]
|
- [[https://www.latex-project.org/][LaTeX]] and [[http://xetex.sourceforge.net/][XeTeX]] (=texlive= packages on Arch Linux)
|
||||||
- [[https://github.com/davatorium/rofi][Rofi]]
|
- [[https://github.com/tmux/tmux][tmux]], based on [[https://github.com/gpakosz/.tmux][this repo]]’s configuration by [[https://pempek.net/][Grégory Pakosz]].
|
||||||
- [[https://github.com/gpoore/minted][minted]]
|
- And a bunch of other stuff, see below
|
||||||
- [[https://www.rust-lang.org/][Rust]] (stable and nightly)
|
And some other stuff scattered around in my dotfiles.
|
||||||
- [[https://www.latex-project.org/][LaTeX]] and [[http://xetex.sourceforge.net/][XeTeX]] (=texlive= packages on Arch Linux)
|
|
||||||
- [[https://github.com/tmux/tmux][tmux]], based on [[https://github.com/gpakosz/.tmux][this repo]]’s configuration by [[https://pempek.net/][Grégory Pakosz]].
|
|
||||||
- And a bunch of other stuff, see below
|
|
||||||
And some other stuff scattered around in my dotfiles.
|
|
||||||
|
|
||||||
BTW, I use Arch.
|
BTW, I use Arch.
|
||||||
|
|
||||||
* Installation
|
* Installation
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Installation-9ec2ae86
|
:CUSTOM_ID: Installation-9ec2ae86
|
||||||
:END:
|
:END:
|
||||||
For an installation walkthrough of my Arch Linux installation, check out my
|
For an installation walkthrough of my Arch Linux installation, check out my [[file:installation.org][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.
|
||||||
[[file:installation.org][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
|
* Licence
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Licence-48911096
|
:CUSTOM_ID: Licence-48911096
|
||||||
:END:
|
:END:
|
||||||
All of my dotfiles (and my dotfiles only) are available under the GNU GPLv3
|
All of my dotfiles (and my dotfiles only) are available under the GNU GPLv3 Licence. Please consult [[file: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.
|
||||||
Licence. Please consult [[file: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.
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -10,134 +10,106 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Introduction-7e535842
|
:CUSTOM_ID: Introduction-7e535842
|
||||||
:END:
|
:END:
|
||||||
*Before proceeding, be aware that I deprecated this nano config on August
|
*Before proceeding, be aware that I deprecated this nano config on August 28th, 2020, meaning I won’t update it anymore unless I use it again some day in the future. I will keep it on my website though.*
|
||||||
28th, 2020, meaning I won’t update it anymore unless I use it again some day
|
|
||||||
in the future. I will keep it on my website though.*
|
|
||||||
|
|
||||||
I nowadays rarely use Nano as a text editor, since I mainly rely on Emacs for
|
I nowadays rarely use Nano as a text editor, since I mainly rely on Emacs for all sorts of tasks, including quick file editing. However, at times, Emacs won’t work or won’t be available, and I therefore need a lightweight, fast and reliable text editor: Nano. And despite Nano being a simple piece of software, it does offer some customization I cannot refuse. Here is how I configured it:
|
||||||
all sorts of tasks, including quick file editing. However, at times, Emacs
|
|
||||||
won’t work or won’t be available, and I therefore need a lightweight, fast and
|
|
||||||
reliable text editor: Nano. And despite Nano being a simple piece of software,
|
|
||||||
it does offer some customization I cannot refuse. Here is how I configured it:
|
|
||||||
|
|
||||||
* Configuration
|
* Configuration
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Configuration-b55668a7
|
:CUSTOM_ID: Configuration-b55668a7
|
||||||
:END:
|
:END:
|
||||||
When saving a file, create a backup file by adding a tilde (=~=) to the file's
|
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/=.
|
||||||
name. And make and keep not just one backup file, but make and keep a uniquely
|
#+BEGIN_SRC conf
|
||||||
numbered one every time a file is saved — when backups are enabled with =set
|
set backup
|
||||||
backup= or =--backup= or =-B=. The uniquely numbered files are stored in the
|
set backupdir /home/phundrak/.cache/nano/backups/
|
||||||
directory =~/.cache/nano/backups/=.
|
#+END_SRC
|
||||||
#+BEGIN_SRC conf
|
|
||||||
set backup
|
|
||||||
set backupdir /home/phundrak/.cache/nano/backups/
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Save a file by default in Unix format. This overrides nano's default behavior
|
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=.)
|
||||||
of saving a file in the format that it had. (This option has no effect when
|
#+BEGIN_SRC conf
|
||||||
you also use =set noconvert=.)
|
set unix
|
||||||
#+BEGIN_SRC conf
|
#+END_SRC
|
||||||
set unix
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Keys behavior
|
** Keys behavior
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Configuration-Keys_behavior-c665fa36
|
:CUSTOM_ID: Configuration-Keys_behavior-c665fa36
|
||||||
:END:
|
:END:
|
||||||
Make the Home key smarter. When Home is pressed anywhere but at the very
|
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.
|
||||||
beginning of non-whitespace characters on a line, the cursor will jump to
|
#+BEGIN_SRC conf
|
||||||
that beginning (either forwards or backwards). If the cursor is already at
|
set smarthome
|
||||||
that position, it will jump to the true beginning of the line.
|
#+END_SRC
|
||||||
#+BEGIN_SRC conf
|
|
||||||
set smarthome
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Search
|
** Search
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Configuration-Search-6e458076
|
:CUSTOM_ID: Configuration-Search-6e458076
|
||||||
:END:
|
:END:
|
||||||
Do case-unsensitive searches by default.
|
Do case-unsensitive searches by default.
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
unset casesensitive
|
unset casesensitive
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Do regular-expression searches by default. Regular expressions in =nano= are
|
Do regular-expression searches by default. Regular expressions in =nano= are of the extended type (ERE).
|
||||||
of the extended type (ERE).
|
#+BEGIN_SRC conf
|
||||||
#+BEGIN_SRC conf
|
set regexp
|
||||||
set regexp
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Visual settings
|
** Visual settings
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Configuration-Visual_settings-9952f2ae
|
:CUSTOM_ID: Configuration-Visual_settings-9952f2ae
|
||||||
:END:
|
:END:
|
||||||
Use bold instead of reverse video for the title bar, status bar, key combos,
|
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=.
|
||||||
function tags, line numbers, and selected text. This can be overridden by
|
#+BEGIN_SRC conf
|
||||||
setting the options =titlecolor=, =statuscolor=, =keycolor=, =functioncolor=,
|
set boldtext
|
||||||
=numbercolor=, and =selectedcolor=.
|
#+END_SRC
|
||||||
#+BEGIN_SRC conf
|
|
||||||
set boldtext
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Enable soft line wrapping for easier viewing of very long lines.
|
Enable soft line wrapping for easier viewing of very long lines.
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set softwrap
|
set softwrap
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
When soft line wrapping is enabled, make it wrap lines at blank characters
|
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.
|
||||||
(tabs and spaces) instead of always at the edge of the screen.
|
#+BEGIN_SRC conf
|
||||||
#+BEGIN_SRC conf
|
set atblanks
|
||||||
set atblanks
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Display line numbers to the left of the text area.
|
Display line numbers to the left of the text area.
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set linenumbers
|
set linenumbers
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Constantly display the cursor position in the status bar. This overrides the
|
Constantly display the cursor position in the status bar. This overrides the option =quickblank=.
|
||||||
option =quickblank=.
|
#+BEGIN_SRC conf
|
||||||
#+BEGIN_SRC conf
|
set constantshow
|
||||||
set constantshow
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Whitespace settings
|
** Whitespace settings
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Configuration-Whitespace_settings-8cef9cd7
|
:CUSTOM_ID: Configuration-Whitespace_settings-8cef9cd7
|
||||||
:END:
|
:END:
|
||||||
Convert typed tabs to spaces. Sue me.
|
Convert typed tabs to spaces. Sue me.
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
set tabstospaces
|
set tabstospaces
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Use a tab size of a certain amount of columns. The value of number must be
|
Use a tab size of a certain amount of columns. The value of number must be greater than 0. The default value is 8.
|
||||||
greater than 0. The default value is 8.
|
#+BEGIN_SRC conf
|
||||||
#+BEGIN_SRC conf
|
set tabsize 2
|
||||||
set tabsize 2
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Automatically indent a newly created line to the same number of tabs and/or
|
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).
|
||||||
spaces as the previous line (or as the next line if the previous line is the
|
#+BEGIN_SRC conf
|
||||||
beginning of a paragraph).
|
set autoindent
|
||||||
#+BEGIN_SRC conf
|
#+END_SRC
|
||||||
set autoindent
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Remove trailing whitespace from wrapped lines when automatic hard-wrapping
|
Remove trailing whitespace from wrapped lines when automatic hard-wrapping occurs or when text is justified.
|
||||||
occurs or when text is justified.
|
#+BEGIN_SRC conf
|
||||||
#+BEGIN_SRC conf
|
set trimblanks
|
||||||
set trimblanks
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Included configuration file
|
** Included configuration file
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Configuration-Included_configuration_file-70b0f35b
|
:CUSTOM_ID: Configuration-Included_configuration_file-70b0f35b
|
||||||
:END:
|
:END:
|
||||||
Nano gives the opportunity to include some files located elsewhere. This is
|
Nano gives the opportunity to include some files located elsewhere. This is why I added [[https://github.com/scopatz/nanorc][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.
|
||||||
why I added [[https://github.com/scopatz/nanorc][this repo]] as a submodule of my dotfiles so I can access a lot of
|
#+BEGIN_SRC conf
|
||||||
them at the same time. Since the submodule is cloned in =~/.config/nanorc=,
|
include ~/.config/nano/nano-syntax/*.nanorc
|
||||||
we can add only one line to include all of the =.nanorc= files.
|
#+END_SRC
|
||||||
#+BEGIN_SRC conf
|
|
||||||
include ~/.config/nano/nano-syntax/*.nanorc
|
|
||||||
#+END_SRC
|
|
||||||
|
@ -10,55 +10,47 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Introduction-3e61ecfc
|
:CUSTOM_ID: Introduction-3e61ecfc
|
||||||
:END:
|
:END:
|
||||||
Ncmpcpp is a TUI front-end for MPD, with an UI very similar to Ncmpc. This is
|
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
|
my main MPD front-end after my i3 shortcuts. You can find below some
|
||||||
screenshots of how my current ncmpcpp configuration looks like.
|
screenshots of how my current ncmpcpp configuration looks like.
|
||||||
|
|
||||||
[[file:img/ncmpcpp-queue.png]]
|
[[file:img/ncmpcpp-queue.png]]
|
||||||
|
|
||||||
[[file:img/ncmpcpp-directory.png]]
|
[[file:img/ncmpcpp-directory.png]]
|
||||||
|
|
||||||
[[file:img/ncmpcpp-visualizer.png]]
|
[[file:img/ncmpcpp-visualizer.png]]
|
||||||
|
|
||||||
* Core Ncmpcpp settings
|
* Core Ncmpcpp settings
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Core_Ncmpcpp_settings-8cacae18
|
:CUSTOM_ID: Core_Ncmpcpp_settings-8cacae18
|
||||||
:END:
|
:END:
|
||||||
#+BEGIN_SRC conf :exports none
|
#+BEGIN_SRC conf :exports none
|
||||||
# -*- mode: conf -*-
|
# -*- mode: conf -*-
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Directories
|
** Directories
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Core_Ncmpcpp_settings-Directories-28092c92
|
:CUSTOM_ID: Core_Ncmpcpp_settings-Directories-28092c92
|
||||||
:END:
|
:END:
|
||||||
Ncmpcpp has two vital directories: the lyrics directory, and its own
|
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/~.
|
||||||
configuration directory. The configuration for ncmpcpp is generally either in
|
#+BEGIN_SRC conf
|
||||||
~$HOME/.ncmpcpp/~ or in ~$XDG_CONFIG_HOME/ncmpcpp/~.
|
ncmpcpp_directory = ~/.config/ncmpcpp
|
||||||
#+BEGIN_SRC conf
|
#+END_SRC
|
||||||
ncmpcpp_directory = ~/.config/ncmpcpp
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
When it comes to the lyrics, be sure to set the directory to the same
|
When it comes to the lyrics, be sure to set the directory to the same directory pointed at by Mpd.
|
||||||
directory pointed at by Mpd.
|
#+BEGIN_SRC conf
|
||||||
#+BEGIN_SRC conf
|
lyrics_directory = ~/.lyrics
|
||||||
lyrics_directory = ~/.lyrics
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** MPD
|
** MPD
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Core_Ncmpcpp_settings-MPD-a2a7452e
|
:CUSTOM_ID: Core_Ncmpcpp_settings-MPD-a2a7452e
|
||||||
:END:
|
:END:
|
||||||
These settings tell ncmpcpp how to communicate with Mpd. Once again, be sure
|
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.
|
||||||
to follow your own MPD settings. In my case, I am connecting to my local MPD
|
#+BEGIN_SRC conf
|
||||||
server, hence the ~localhost~ value of the variable below, and I did not
|
mpd_host = localhost
|
||||||
change the default port of MPD. My music is located at =~/Music=, and ncmpcpp
|
mpd_port = 6600
|
||||||
should connect pretty much immediately, although I allow a five seconds
|
mpd_music_dir = ~/Music
|
||||||
timeout before ncmpcpp treats it as an error. Also, no crossfade please.
|
mpd_connection_timeout = 5
|
||||||
#+BEGIN_SRC conf
|
mpd_crossfade_time = 0
|
||||||
mpd_host = localhost
|
#+END_SRC
|
||||||
mpd_port = 6600
|
|
||||||
mpd_music_dir = ~/Music
|
|
||||||
mpd_connection_timeout = 5
|
|
||||||
mpd_crossfade_time = 0
|
|
||||||
#+END_SRC
|
|
||||||
|
@ -11,101 +11,84 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Introduction-5942aea3
|
:CUSTOM_ID: Introduction-5942aea3
|
||||||
:END:
|
:END:
|
||||||
[[https://github.com/dylanaraps/neofetch][Neofetch]] is a CLI utility used to display system information. It was written
|
[[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~. This configuration will only contain what I need. For any further information, please refer to the [[https://github.com/dylanaraps/neofetch][original repository]] and [[https://github.com/dylanaraps/neofetch/wiki/Customizing-Info][its documentation]].
|
||||||
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~.
|
|
||||||
This configuration will only contain what I need. For any further information,
|
|
||||||
please refer to the [[https://github.com/dylanaraps/neofetch][original repository]] and [[https://github.com/dylanaraps/neofetch/wiki/Customizing-Info][its documentation]].
|
|
||||||
|
|
||||||
* The ~print_info~ functions
|
* The ~print_info~ functions
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: The_print_info_functions-bb30763f
|
:CUSTOM_ID: The_print_info_functions-bb30763f
|
||||||
:END:
|
:END:
|
||||||
The ~print_info~ function is the function called by Neofetch in order to print
|
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:
|
||||||
the system information it could fetch. In this function, we’ll choose what to
|
#+BEGIN_SRC sh :tangle no
|
||||||
display, and how. This function looks like this:
|
print_info() {
|
||||||
#+BEGIN_SRC sh :tangle no
|
# Print information here…
|
||||||
print_info() {
|
}
|
||||||
# Print information here…
|
#+END_SRC
|
||||||
}
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Generally, what we will display will be shown through the ~info~ function,
|
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:
|
||||||
redefined inside Neofetch (this is not ~info(1)~). This ~info~ function
|
#+NAME: info-elements-table
|
||||||
accepts one or two arguments. With one argument, such as with ~info memory~,
|
| Prefix | Information | What it does |
|
||||||
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
|
| | title | Username and hostname |
|
||||||
the interesting information; ~info "Memory" memory~ will look like
|
| | line_break | Insert a blank line |
|
||||||
~Memory: 5136MiB / 15873MiB~. Here is what we want to display:
|
| | cols | System theme |
|
||||||
#+NAME: info-elements-table
|
| | line_break | Insert a blank line |
|
||||||
| Prefix | Information | What it does |
|
| OS | distro | Distribution name |
|
||||||
|----------+-------------+-----------------------------------|
|
| Kernel | kernel | Kernel version |
|
||||||
| | title | Username and hostname |
|
| Uptime | uptime | Machine uptime |
|
||||||
| | line_break | Insert a blank line |
|
| Packages | packages | Number of installed packages |
|
||||||
| | cols | System theme |
|
| Shell | shell | User’s default shell |
|
||||||
| | line_break | Insert a blank line |
|
| WM | wm | User’s Window Manager |
|
||||||
| OS | distro | Distribution name |
|
| Terminal | term | Default terminal |
|
||||||
| Kernel | kernel | Kernel version |
|
| CPU | cpu | CPU information |
|
||||||
| Uptime | uptime | Machine uptime |
|
| GPU | gpu | GPU information |
|
||||||
| Packages | packages | Number of installed packages |
|
| Memory | memory | RAM information |
|
||||||
| Shell | shell | User’s default shell |
|
|
||||||
| WM | wm | User’s Window Manager |
|
|
||||||
| Terminal | term | Default terminal |
|
|
||||||
| CPU | cpu | CPU information |
|
|
||||||
| GPU | gpu | GPU information |
|
|
||||||
| Memory | memory | RAM information |
|
|
||||||
|
|
||||||
#+NAME: info-elements-gen
|
#+NAME: info-elements-gen
|
||||||
#+BEGIN_SRC emacs-lisp :var table=info-elements-table :cache yes
|
#+BEGIN_SRC emacs-lisp :var table=info-elements-table :cache yes
|
||||||
(mapconcat (lambda (x)
|
(mapconcat (lambda (x)
|
||||||
(format "info %s%s"
|
(format "info %s%s"
|
||||||
(if (not (string= (car x) ""))
|
(if (not (string= (car x) ""))
|
||||||
(format "\"%s\" " (car x))
|
(format "\"%s\" " (car x))
|
||||||
"")
|
"")
|
||||||
(cadr x)))
|
(cadr x)))
|
||||||
table
|
table
|
||||||
"\n")
|
"\n")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+RESULTS[1e66bf48472ad24006f0cb9dc9c86078764ba84e]: info-elements-gen
|
#+RESULTS[1e66bf48472ad24006f0cb9dc9c86078764ba84e]: info-elements-gen
|
||||||
#+begin_example
|
#+begin_example
|
||||||
info line_break
|
info line_break
|
||||||
info title
|
info title
|
||||||
info line_break
|
info line_break
|
||||||
info cols
|
info cols
|
||||||
info line_break
|
info line_break
|
||||||
info "OS" distro
|
info "OS" distro
|
||||||
info "Kernel" kernel
|
info "Kernel" kernel
|
||||||
info "Uptime" uptime
|
info "Uptime" uptime
|
||||||
info "Packages" packages
|
info "Packages" packages
|
||||||
info "Shell" shell
|
info "Shell" shell
|
||||||
info "WM" wm
|
info "WM" wm
|
||||||
info "Terminal" term
|
info "Terminal" term
|
||||||
info "CPU" cpu
|
info "CPU" cpu
|
||||||
info "GPU" gpu
|
info "GPU" gpu
|
||||||
info "Memory" memory
|
info "Memory" memory
|
||||||
info "Disks" disks
|
info "Disks" disks
|
||||||
#+end_example
|
#+end_example
|
||||||
|
|
||||||
Hence, the function looks like so:
|
Hence, the function looks like so:
|
||||||
#+BEGIN_SRC sh
|
#+BEGIN_SRC sh
|
||||||
print_info() {
|
print_info() {
|
||||||
<<info-elements-gen()>>
|
<<info-elements-gen()>>
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Each of these modules can be tuned with the variables presented below.
|
Each of these modules can be tuned with the variables presented below.
|
||||||
|
|
||||||
* Information settings
|
* Information settings
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-9d4cfe88
|
:CUSTOM_ID: Information_settings-9d4cfe88
|
||||||
:END:
|
:END:
|
||||||
Each of the following variable tunes a function that can be called in
|
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.
|
||||||
~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.
|
|
||||||
|
|
||||||
** Software
|
** Software
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
@ -119,73 +102,72 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-OS-Distro-cd12bc4f
|
:CUSTOM_ID: Information_settings-Software-OS-Distro-cd12bc4f
|
||||||
:END:
|
:END:
|
||||||
This variable can shorten the output of the ~distro~ function.
|
This variable can shorten the output of the ~distro~ function.
|
||||||
- Default value :: ~"on"~
|
- Default value :: ~"on"~
|
||||||
- Values ::
|
- Values ::
|
||||||
- ~"on"~
|
- ~"on"~
|
||||||
- ~"off"~
|
- ~"off"~
|
||||||
- Flag :: ~--distro_shorthand~
|
- Flag :: ~--distro_shorthand~
|
||||||
- Supports :: Everything except Windows and Haiku
|
- Supports :: Everything except Windows and Haiku
|
||||||
- Examples ::
|
- Examples ::
|
||||||
- on :: ~Arch Linux~
|
- on :: ~Arch Linux~
|
||||||
- off :: ~Arch~
|
- off :: ~Arch~
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
distro_shorthand="off"
|
distro_shorthand="off"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
It is possible to display when the distro has been installed on the computer.
|
It is possible to display when the distro has been installed on the computer.
|
||||||
|
|
||||||
**** Kernel
|
**** Kernel
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-OS-Kernel-658cedce
|
:CUSTOM_ID: Information_settings-Software-OS-Kernel-658cedce
|
||||||
:END:
|
:END:
|
||||||
The variable below can shorten the output ofh the ~kernel~ function.
|
The variable below can shorten the output ofh the ~kernel~ function.
|
||||||
- Default value :: ~"on"~
|
- Default value :: ~"on"~
|
||||||
- Values ::
|
- Values ::
|
||||||
- ~"on"~
|
- ~"on"~
|
||||||
- ~"off"~
|
- ~"off"~
|
||||||
- Flag :: ~--kernel_shorthand~
|
- Flag :: ~--kernel_shorthand~
|
||||||
- Supports :: Everything except *BSDs (except PacBSD and PC-BSD)
|
- Supports :: Everything except *BSDs (except PacBSD and PC-BSD)
|
||||||
- Examples ::
|
- Examples ::
|
||||||
- on :: ~4.8.9-1-ARCH~
|
- on :: ~4.8.9-1-ARCH~
|
||||||
- off :: ~Linux 4.8.9-1-ARCH~
|
- off :: ~Linux 4.8.9-1-ARCH~
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
kernel_shorthand="off"
|
kernel_shorthand="off"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** OS Architecture
|
**** OS Architecture
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-OS-OS_Architecture-2f60c93c
|
:CUSTOM_ID: Information_settings-Software-OS-OS_Architecture-2f60c93c
|
||||||
:END:
|
:END:
|
||||||
This variable can show or hide the OS architecture in the ~distro~ output.
|
This variable can show or hide the OS architecture in the ~distro~ output.
|
||||||
- Default value :: ~"off"~
|
- Default value :: ~"off"~
|
||||||
- Values ::
|
- Values ::
|
||||||
- ~"on"~
|
- ~"on"~
|
||||||
- ~"off"~
|
- ~"off"~
|
||||||
- Flag :: ~--os_arch~
|
- Flag :: ~--os_arch~
|
||||||
- Examples ::
|
- Examples ::
|
||||||
- on :: ~Arch Linux x86_64~
|
- on :: ~Arch Linux x86_64~
|
||||||
- off :: ~Arch Linux~
|
- off :: ~Arch Linux~
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
os_arch="off"
|
os_arch="off"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** Packages
|
**** Packages
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-OS-Packages-f836a58d
|
:CUSTOM_ID: Information_settings-Software-OS-Packages-f836a58d
|
||||||
:END:
|
:END:
|
||||||
It is possible to show or hide Package Manager names.
|
It is possible to show or hide Package Manager names.
|
||||||
|
- Default :: ~'tiny'~
|
||||||
- Default :: ~'tiny'~
|
- Values :: ~'on'~ / ~'tiny'~ / ~'off'~
|
||||||
- Values :: ~'on'~ / ~'tiny'~ / ~'off'~
|
- Flag :: ~--package_managers~
|
||||||
- Flag :: ~--package_managers~
|
- Example ::
|
||||||
- Example ::
|
- on :: ~'998 (pacman), 8 (flatpak), 4 (snap)'~
|
||||||
- on :: ~'998 (pacman), 8 (flatpak), 4 (snap)'~
|
- tiny :: ~'908 (pacman, flatpak, snap)'~
|
||||||
- tiny :: ~'908 (pacman, flatpak, snap)'~
|
- off :: ~'908'~
|
||||||
- off :: ~'908'~
|
#+BEGIN_SRC sh
|
||||||
#+BEGIN_SRC sh
|
package_managers="on"
|
||||||
package_managers="on"
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
**** Shell
|
**** Shell
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
@ -195,142 +177,136 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-Shell-Shell_path-9eda636d
|
:CUSTOM_ID: Information_settings-Software-Shell-Shell_path-9eda636d
|
||||||
:END:
|
:END:
|
||||||
This allows to show either the path of the user’s shell, or simply its
|
This allows to show either the path of the user’s shell, or simply its name.
|
||||||
name.
|
- Default value :: ~"off"~
|
||||||
- Default value :: ~"off"~
|
- Values ::
|
||||||
- Values ::
|
- ~"on"~
|
||||||
- ~"on"~
|
- ~"off"~
|
||||||
- ~"off"~
|
- Flag :: ~--shell_path~
|
||||||
- Flag :: ~--shell_path~
|
- Examples ::
|
||||||
- Examples ::
|
- on :: ~/bin/bash~
|
||||||
- on :: ~/bin/bash~
|
- off :: ~bash~
|
||||||
- off :: ~bash~
|
+begin_src sh
|
||||||
#+begin_src sh
|
shell_path="off"
|
||||||
shell_path="off"
|
+end_src
|
||||||
#+end_src
|
|
||||||
|
|
||||||
***** Shell version
|
***** Shell version
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-Shell-Shell_version-03964bb3
|
:CUSTOM_ID: Information_settings-Software-Shell-Shell_version-03964bb3
|
||||||
:END:
|
:END:
|
||||||
This allows to show the shell’s version in the output of ~shell~.
|
This allows to show the shell’s version in the output of ~shell~.
|
||||||
- Default value :: ~"on"~
|
- Default value :: ~"on"~
|
||||||
- Values ::
|
- Values ::
|
||||||
- ~"on"~
|
- ~"on"~
|
||||||
- ~"off"~
|
- ~"off"~
|
||||||
- Flag :: ~--shell_version~
|
- Flag :: ~--shell_version~
|
||||||
- Examples ::
|
- Examples ::
|
||||||
- on :: ~bash 4.4.5~
|
- on :: ~bash 4.4.5~
|
||||||
- off :: ~bash~
|
- off :: ~bash~
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
shell_version="off"
|
shell_version="off"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Uptime
|
*** Uptime
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-Uptime-a7b5361a
|
:CUSTOM_ID: Information_settings-Software-Uptime-a7b5361a
|
||||||
:END:
|
:END:
|
||||||
This variable can shorten the output of the ~uptime~ function. ~on~ shortens
|
This variable can shorten the output of the ~uptime~ function. ~on~ shortens
|
||||||
it a bit, while ~tiny~ shortens it greatly.
|
it a bit, while ~tiny~ shortens it greatly.
|
||||||
- Default value :: ~"on"~
|
- Default value :: ~"on"~
|
||||||
- Values ::
|
- Values ::
|
||||||
- ~"on"~
|
- ~"on"~
|
||||||
- ~"tiny"~
|
- ~"tiny"~
|
||||||
- ~"off"~
|
- ~"off"~
|
||||||
- Flag :: ~--uptime_shorthand~
|
- Flag :: ~--uptime_shorthand~
|
||||||
- Examples ::
|
- Examples ::
|
||||||
- on :: ~2 days, 10 hours, 3 mins~
|
- on :: ~2 days, 10 hours, 3 mins~
|
||||||
- off :: ~2 days, 10 hours, 3 minutes~
|
- off :: ~2 days, 10 hours, 3 minutes~
|
||||||
- tiny :: ~2d 10h 3m~
|
- tiny :: ~2d 10h 3m~
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
uptime_shorthand="on"
|
uptime_shorthand="on"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** IP address
|
*** IP address
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-IP_address-26df5e1d
|
:CUSTOM_ID: Information_settings-Software-IP_address-26df5e1d
|
||||||
:END:
|
:END:
|
||||||
It is possible to display the machine’s public IP address with the function
|
It is possible to display the machine’s public IP address with the function ~ip~. The value below allows the user to change the website used to fetch it.
|
||||||
~ip~. The value below allows the user to change the website used to fetch
|
- Default value :: ~"http://ident.me"~
|
||||||
it.
|
- Value :: ~"url"~
|
||||||
- Default value :: ~"http://ident.me"~
|
- Flag :: ~--ip_host~
|
||||||
- Value :: ~"url"~
|
#+begin_src sh
|
||||||
- Flag :: ~--ip_host~
|
public_ip_host="http://ident.me"
|
||||||
#+begin_src sh
|
#+end_src
|
||||||
public_ip_host="http://ident.me"
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
- Default value :: ~""~
|
- Default value :: ~""~
|
||||||
- Values ::
|
- Values ::
|
||||||
- ~""~
|
- ~""~
|
||||||
- ~""~
|
- ~""~
|
||||||
- Flag :: ~""~
|
- Flag :: ~""~
|
||||||
- Supports ::
|
- Supports ::
|
||||||
- Examples ::
|
- Examples ::
|
||||||
- on :: ~~
|
- on :: ~~
|
||||||
- off :: ~~
|
- off :: ~~
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Theming
|
*** Theming
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-Theming-ba7f1ccd
|
:CUSTOM_ID: Information_settings-Software-Theming-ba7f1ccd
|
||||||
:END:
|
:END:
|
||||||
This section will allow the user to modify what Neofetch can and cannot
|
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.
|
||||||
display about the machine’s theming —by this, I mean its GTK theme, its
|
|
||||||
icons and its default font.
|
|
||||||
|
|
||||||
**** Shorten output
|
**** Shorten output
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-Theming-Shorten_output-cbef1fa4
|
:CUSTOM_ID: Information_settings-Software-Theming-Shorten_output-cbef1fa4
|
||||||
:END:
|
:END:
|
||||||
With this value, it is possible to shorten the output of the computer’s
|
With this value, it is possible to shorten the output of the computer’s theming.
|
||||||
theming.
|
- Default value :: ~"off"~
|
||||||
- Default value :: ~"off"~
|
- Values ::
|
||||||
- Values ::
|
- ~"on"~
|
||||||
- ~"on"~
|
- ~"off"~
|
||||||
- ~"off"~
|
- Flag :: ~--gtk_shorthand~
|
||||||
- Flag :: ~--gtk_shorthand~
|
- Examples ::
|
||||||
- Examples ::
|
- on :: ~Numix, Adwaita~
|
||||||
- on :: ~Numix, Adwaita~
|
- off :: ~Numix [GTK2], Adwaita [GTK3]~
|
||||||
- off :: ~Numix [GTK2], Adwaita [GTK3]~
|
#+begin_src sh
|
||||||
#+begin_src sh
|
gtk_shorthand="on"
|
||||||
gtk_shorthand="on"
|
#+end_src
|
||||||
#+end_src
|
|
||||||
|
|
||||||
**** Enable or disable theming display for GTK2
|
**** Enable or disable theming display for GTK2
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-Theming-Enable_or_disable_theming_display_for_GTK2-f4398571
|
:CUSTOM_ID: Information_settings-Software-Theming-Enable_or_disable_theming_display_for_GTK2-f4398571
|
||||||
:END:
|
:END:
|
||||||
It is possible to explicitely show or hide the computer’s theming with GTK2
|
It is possible to explicitely show or hide the computer’s theming with GTK2 with this variable.
|
||||||
with this variable.
|
- Default value :: ~"on"~
|
||||||
- Default value :: ~"on"~
|
- Values ::
|
||||||
- Values ::
|
- ~"on"~
|
||||||
- ~"on"~
|
- ~"off"~
|
||||||
- ~"off"~
|
- Flag :: ~--gtk2~
|
||||||
- Flag :: ~--gtk2~
|
- Examples ::
|
||||||
- Examples ::
|
- on :: ~Numix [GTK2], Adwaita [GTK3]~
|
||||||
- on :: ~Numix [GTK2], Adwaita [GTK3]~
|
- off :: ~Adwaita [GTK3]~
|
||||||
- off :: ~Adwaita [GTK3]~
|
#+begin_src sh
|
||||||
#+begin_src sh
|
gtk2="off"
|
||||||
gtk2="off"
|
#+end_src
|
||||||
#+end_src
|
|
||||||
|
|
||||||
**** Enable or disable theming display for GTK3
|
**** Enable or disable theming display for GTK3
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Software-Theming-Enable_or_disable_theming_display_for_GTK3-c4070e66
|
:CUSTOM_ID: Information_settings-Software-Theming-Enable_or_disable_theming_display_for_GTK3-c4070e66
|
||||||
:END:
|
:END:
|
||||||
The same variable as above is also available for GTK3.
|
The same variable as above is also available for GTK3.
|
||||||
- Default value :: ~"on"~
|
- Default value :: ~"on"~
|
||||||
- Values ::
|
- Values ::
|
||||||
- ~"on"~
|
- ~"on"~
|
||||||
- ~"off"~
|
- ~"off"~
|
||||||
- Flag :: ~--gtk3~
|
- Flag :: ~--gtk3~
|
||||||
- Examples ::
|
- Examples ::
|
||||||
- on :: ~Numix [GTK2], Adwaita [GTK3]~
|
- on :: ~Numix [GTK2], Adwaita [GTK3]~
|
||||||
- off :: ~Numix [GTK2]~
|
- off :: ~Numix [GTK2]~
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
#+end_src
|
gtk3="off"
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** Hardware
|
** Hardware
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
@ -340,190 +316,177 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Hardware-CPU-eb0bcd7d
|
:CUSTOM_ID: Information_settings-Hardware-CPU-eb0bcd7d
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
**** CPU brand
|
**** CPU brand
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_brand-5b25776b
|
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_brand-5b25776b
|
||||||
:END:
|
:END:
|
||||||
With this variables, it is possible to show or hide the brand of a CPU in
|
With this variables, it is possible to show or hide the brand of a CPU in
|
||||||
the ~cpu~ output.
|
the ~cpu~ output.
|
||||||
- Default value :: ~"on"~
|
- Default value :: ~"on"~
|
||||||
- Values ::
|
- Values ::
|
||||||
- ~"on"~
|
- ~"on"~
|
||||||
- ~"off"~
|
- ~"off"~
|
||||||
- Flag :: ~--cpu_brand~
|
- Flag :: ~--cpu_brand~
|
||||||
- Examples ::
|
- Examples ::
|
||||||
- on :: ~Intel i7-6500U~
|
- on :: ~Intel i7-6500U~
|
||||||
- off :: ~i7-6500U~
|
- off :: ~i7-6500U~
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
cpu_brand="off"
|
cpu_brand="off"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** CPU speed
|
**** CPU speed
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_speed-2bf6e5f7
|
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_speed-2bf6e5f7
|
||||||
:END:
|
:END:
|
||||||
With this variable, it is possible to show or hide the speed of the CPU.
|
With this variable, it is possible to show or hide the speed of the CPU.
|
||||||
- Default value :: ~"on"~
|
- Default value :: ~"on"~
|
||||||
- Values ::
|
- Values ::
|
||||||
- ~"on"~
|
- ~"on"~
|
||||||
- ~"off"~
|
- ~"off"~
|
||||||
- Flag :: ~--cpu_speed~
|
- Flag :: ~--cpu_speed~
|
||||||
- Examples ::
|
- Examples ::
|
||||||
- on :: ~Intel i7-6500U (4) @ 3.1GHz~
|
- on :: ~Intel i7-6500U (4) @ 3.1GHz~
|
||||||
- off :: ~Intel i7-6500U (4)~
|
- off :: ~Intel i7-6500U (4)~
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
cpu_speed="off"
|
cpu_speed="off"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** CPU speed type
|
**** CPU speed type
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_speed_type-a24de48f
|
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_speed_type-a24de48f
|
||||||
:END:
|
:END:
|
||||||
This allows Neofetch to know what type of speed it has to fetch regarding
|
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.
|
||||||
the machine’s CPU. Any file in ~/sys/devices/system/cpu/cpu0/cpufreq~ can
|
- Default value :: ~"bios_limit"~
|
||||||
be used as a value.
|
- Values ::
|
||||||
- Default value :: ~"bios_limit"~
|
- ~"scaling_cur_freq"~
|
||||||
- Values ::
|
- ~"scaling_min_freq"~
|
||||||
- ~"scaling_cur_freq"~
|
- ~"scaling_max_freq"~
|
||||||
- ~"scaling_min_freq"~
|
- ~"bios_limit"~
|
||||||
- ~"scaling_max_freq"~
|
- Flag :: ~--speed_type~
|
||||||
- ~"bios_limit"~
|
- Supports :: Linux with ~cpufreq~
|
||||||
- Flag :: ~--speed_type~
|
#+begin_src sh
|
||||||
- Supports :: Linux with ~cpufreq~
|
speed_type="bios_limit"
|
||||||
#+begin_src sh
|
#+end_src
|
||||||
speed_type="bios_limit"
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
**** CPU speed shorthand
|
**** CPU speed shorthand
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_speed_shorthand-0d15fe08
|
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_speed_shorthand-0d15fe08
|
||||||
:END:
|
:END:
|
||||||
This value allows to show sorter CPU speed with less digits. This flag is
|
This value allows to show sorter CPU speed with less digits. This flag is not supported in systems with CPU speed below 1GHz.
|
||||||
not supported in systems with CPU speed below 1GHz.
|
- Default value :: ~"off"~
|
||||||
- Default value :: ~"off"~
|
- Values ::
|
||||||
- Values ::
|
- ~"on"~
|
||||||
- ~"on"~
|
- ~"on"~
|
||||||
- ~"on"~
|
- Flag :: ~--speed_shorthand~
|
||||||
- Flag :: ~--speed_shorthand~
|
- Examples ::
|
||||||
- Examples ::
|
- on :: ~i7-6500U (4) @ 3.1GHz~
|
||||||
- on :: ~i7-6500U (4) @ 3.1GHz~
|
- off :: ~i7-6500U (4) @ 3.100GHz~
|
||||||
- off :: ~i7-6500U (4) @ 3.100GHz~
|
#+begin_src sh
|
||||||
#+begin_src sh
|
speed_shorthand="on"
|
||||||
speed_shorthand="on"
|
#+end_src
|
||||||
#+end_src
|
|
||||||
|
|
||||||
**** CPU cores
|
**** CPU cores
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_cores-30177354
|
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_cores-30177354
|
||||||
:END:
|
:END:
|
||||||
With this variable, it is possible to display the number of cores that are
|
With this variable, it is possible to display the number of cores that are available in the CPU.
|
||||||
available in the CPU.
|
- Default value :: ~"logical"~
|
||||||
- Default value :: ~"logical"~
|
- Values ::
|
||||||
- Values ::
|
- ~"logical"~
|
||||||
- ~"logical"~
|
- ~"physical"~
|
||||||
- ~"physical"~
|
- ~"off"~
|
||||||
- ~"off"~
|
- Flag :: ~--cpu_cores~
|
||||||
- Flag :: ~--cpu_cores~
|
- Supports :: ~physical~ does not work on BSD.
|
||||||
- Supports :: ~physical~ does not work on BSD.
|
- Examples ::
|
||||||
- Examples ::
|
- logical :: ~Intel i7-6500U (4) @ 3.1GHz~ (All virtual cores)
|
||||||
- logical :: ~Intel i7-6500U (4) @ 3.1GHz~ (All virtual cores)
|
- physical :: ~Intel i7-6500U (2) @ 3.1GHz~ (All physical cores)
|
||||||
- physical :: ~Intel i7-6500U (2) @ 3.1GHz~ (All physical cores)
|
- off :: ~Intel i7-6500U @ 3.1GHz~
|
||||||
- off :: ~Intel i7-6500U @ 3.1GHz~
|
#+begin_src sh
|
||||||
#+begin_src sh
|
cpu_cores="off"
|
||||||
cpu_cores="off"
|
#+end_src
|
||||||
#+end_src
|
|
||||||
|
|
||||||
**** CPU temperature
|
**** CPU temperature
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_temperature-a22e522c
|
:CUSTOM_ID: Information_settings-Hardware-CPU-CPU_temperature-a22e522c
|
||||||
:END:
|
:END:
|
||||||
This variable allows the user to hide or show the CPU’s temperature, and if
|
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.
|
||||||
shown, the user can display it in Celcius or Farenheit degrees. For FreeBSD
|
- Default value :: ~"off"~
|
||||||
and NetBSD-based systems, you’ll need to enable the ~coretemp~ kernel
|
- Values ::
|
||||||
module. This only supports newer Intel processors.
|
- ~"C"~
|
||||||
- Default value :: ~"off"~
|
- ~"F"~
|
||||||
- Values ::
|
- ~"off"~
|
||||||
- ~"C"~
|
- Flag :: ~--cpu_temp~
|
||||||
- ~"F"~
|
- Supports :: Linux, BSD
|
||||||
- ~"off"~
|
- Examples ::
|
||||||
- Flag :: ~--cpu_temp~
|
- C :: ~Intel i7-6500U (4) @ 3.1GHz [27.2°C]~
|
||||||
- Supports :: Linux, BSD
|
- F :: ~Intel i7-6500U (4) @ 3.1GHz [82.0°F]~
|
||||||
- Examples ::
|
- off :: ~Intel i7-6500U (4) @ 3.1GHz~
|
||||||
- C :: ~Intel i7-6500U (4) @ 3.1GHz [27.2°C]~
|
#+begin_src sh
|
||||||
- F :: ~Intel i7-6500U (4) @ 3.1GHz [82.0°F]~
|
cpu_temp="off"
|
||||||
- off :: ~Intel i7-6500U (4) @ 3.1GHz~
|
#+end_src
|
||||||
#+begin_src sh
|
|
||||||
cpu_temp="off"
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
*** GPU
|
*** GPU
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Hardware-GPU-2c842575
|
:CUSTOM_ID: Information_settings-Hardware-GPU-2c842575
|
||||||
:END:
|
:END:
|
||||||
The function responsible for displaying information regarding the GPUs is
|
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.
|
||||||
~gpu~. It will try to list all available GPUs and display what it knows
|
|
||||||
about them.
|
|
||||||
|
|
||||||
**** GPU brand
|
**** GPU brand
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Hardware-GPU-GPU_brand-6e2da615
|
:CUSTOM_ID: Information_settings-Hardware-GPU-GPU_brand-6e2da615
|
||||||
:END:
|
:END:
|
||||||
This value allows the user to hide or show the brand of their GPU in the
|
This value allows the user to hide or show the brand of their GPU in the output of ~gpu~.
|
||||||
output of ~gpu~.
|
- Default value :: ~"on"~
|
||||||
- Default value :: ~"on"~
|
- Values ::
|
||||||
- Values ::
|
- ~"on"~
|
||||||
- ~"on"~
|
- ~"off"~
|
||||||
- ~"off"~
|
- Flag :: ~--gpu_brand~
|
||||||
- Flag :: ~--gpu_brand~
|
- Supports ::
|
||||||
- Supports ::
|
- Examples ::
|
||||||
- Examples ::
|
- on :: ~AMD HD 7950~
|
||||||
- on :: ~AMD HD 7950~
|
- off :: ~HD 7950~
|
||||||
- off :: ~HD 7950~
|
#+begin_src sh
|
||||||
#+begin_src sh
|
gpu_brand="off"
|
||||||
gpu_brand="off"
|
#+end_src
|
||||||
#+end_src
|
|
||||||
|
|
||||||
**** Which GPU to display
|
**** Which GPU to display
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Hardware-GPU-Which_GPU_to_display-f40d3aac
|
:CUSTOM_ID: Information_settings-Hardware-GPU-Which_GPU_to_display-f40d3aac
|
||||||
:END:
|
:END:
|
||||||
This allows the user to choose which GPU appears in the output of the
|
This allows the user to choose which GPU appears in the output of the function ~gpu~.
|
||||||
function ~gpu~.
|
- Default value :: ~"all"~
|
||||||
- Default value :: ~"all"~
|
- Values ::
|
||||||
- Values ::
|
- ~"all"~
|
||||||
- ~"all"~
|
- ~"dedicated"~
|
||||||
- ~"dedicated"~
|
- ~"integrated"~
|
||||||
- ~"integrated"~
|
- Flag :: ~--gpu_type~
|
||||||
- Flag :: ~--gpu_type~
|
- Supports :: Linux
|
||||||
- Supports :: Linux
|
- Examples ::
|
||||||
- Examples ::
|
- all ::
|
||||||
- all ::
|
#+BEGIN_SRC text
|
||||||
#+BEGIN_SRC text
|
GPU1: AMD HD 7950
|
||||||
GPU1: AMD HD 7950
|
GPU2: Intel Integrated Graphics
|
||||||
GPU2: Intel Integrated Graphics
|
#+END_SRC
|
||||||
#+END_SRC
|
- dedicated :: ~GPU1: AMD HD 7950~
|
||||||
- dedicated :: ~GPU1: AMD HD 7950~
|
- integrated :: ~GPU1: Intel Integrated Graphics~
|
||||||
- integrated :: ~GPU1: Intel Integrated Graphics~
|
#+begin_src sh
|
||||||
#+begin_src sh
|
gpu_type="all"
|
||||||
gpu_type="all"
|
#+end_src
|
||||||
#+end_src
|
|
||||||
|
|
||||||
*** Resolution
|
*** Resolution
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Information_settings-Hardware-Resolution-b768f865
|
:CUSTOM_ID: Information_settings-Hardware-Resolution-b768f865
|
||||||
:END:
|
:END:
|
||||||
This will try to list all the connected screens and display their 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.
|
||||||
individually. It is possible to display the refresh rate or to hide it.
|
- Default value :: ~"off"~
|
||||||
- Default value :: ~"off"~
|
- Values ::
|
||||||
- Values ::
|
- ~"on"~
|
||||||
- ~"on"~
|
- ~"off"~
|
||||||
- ~"off"~
|
- Flag :: ~--refresh_rate~
|
||||||
- Flag :: ~--refresh_rate~
|
- Supports :: Does not work on Windows
|
||||||
- Supports :: Does not work on Windows
|
- Examples ::
|
||||||
- Examples ::
|
- on :: ~1920x1080 @ 60Hz~
|
||||||
- on :: ~1920x1080 @ 60Hz~
|
- off :: ~1920x1080~
|
||||||
- off :: ~1920x1080~
|
#+begin_src sh
|
||||||
#+begin_src sh
|
refresh_rate="off"
|
||||||
refresh_rate="off"
|
#+end_src
|
||||||
#+end_src
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -10,117 +10,99 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Introduction-465e99fe
|
:CUSTOM_ID: Introduction-465e99fe
|
||||||
:END:
|
:END:
|
||||||
The ~.rustfmt.toml~ file located in the ~$HOME~ directory is a global
|
The ~.rustfmt.toml~ file located in the ~$HOME~ directory is a global configuration file for Rust’s code formatters, such as ~rustfmt~. In this file, you can find how my Rust code is always formatted.
|
||||||
configuration file for Rust’s code formatters, such as ~rustfmt~. In this
|
|
||||||
file, you can find how my Rust code is always formatted.
|
|
||||||
|
|
||||||
* General settings
|
* General settings
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: General_settings-7f5cb2f6
|
:CUSTOM_ID: General_settings-7f5cb2f6
|
||||||
:END:
|
:END:
|
||||||
First, we are using the 2018 edition of Rust.
|
First, we are using the 2018 edition of Rust.
|
||||||
#+BEGIN_SRC toml
|
#+BEGIN_SRC toml
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Put single-expression functions on a single line.
|
||||||
Put single-expression functions on a single line.
|
#+BEGIN_SRC toml
|
||||||
#+BEGIN_SRC toml
|
fn_single_line = true
|
||||||
fn_single_line = true
|
#+END_SRC
|
||||||
#+END_SRC
|
Format string literals where necessary.
|
||||||
|
#+BEGIN_SRC toml
|
||||||
Format string literals where necessary.
|
format_strings = true
|
||||||
#+BEGIN_SRC toml
|
#+END_SRC
|
||||||
format_strings = true
|
Maximum width of each line
|
||||||
#+END_SRC
|
#+BEGIN_SRC toml
|
||||||
|
max_width = 80
|
||||||
Maximum width of each line
|
#+END_SRC
|
||||||
#+BEGIN_SRC toml
|
Merge multiple imports into a single nested import.
|
||||||
max_width = 80
|
#+BEGIN_SRC toml
|
||||||
#+END_SRC
|
merge_imports = true
|
||||||
|
#+END_SRC
|
||||||
Merge multiple imports into a single nested import.
|
|
||||||
#+BEGIN_SRC toml
|
|
||||||
merge_imports = true
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Structs and Enums
|
* Structs and Enums
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Structs_and_Enums-6a2a856d
|
:CUSTOM_ID: Structs_and_Enums-6a2a856d
|
||||||
:END:
|
:END:
|
||||||
The maximum length of enum variant having discriminant, that gets vertically
|
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.
|
||||||
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
|
Note that this is not how much whitespace is inserted, but instead the longest variant name that doesn't get ignored when aligning.
|
||||||
variant name that doesn't get ignored when aligning.
|
#+BEGIN_SRC toml
|
||||||
#+BEGIN_SRC toml
|
enum_discrim_align_threshold = 20
|
||||||
enum_discrim_align_threshold = 20
|
#+END_SRC
|
||||||
#+END_SRC
|
The maximum diff of width between struct fields to be aligned with each other.
|
||||||
|
#+BEGIN_SRC toml
|
||||||
The maximum diff of width between struct fields to be aligned with each other.
|
struct_field_align_threshold = 20
|
||||||
#+BEGIN_SRC toml
|
#+END_SRC
|
||||||
struct_field_align_threshold = 20
|
Reorder impl items. ~type~ and ~const~ are put first, then macros and methods.
|
||||||
#+END_SRC
|
#+BEGIN_SRC toml
|
||||||
|
reorder_impl_items = true
|
||||||
Reorder impl items. ~type~ and ~const~ are put first, then macros and methods.
|
#+END_SRC
|
||||||
#+BEGIN_SRC toml
|
|
||||||
reorder_impl_items = true
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Comments
|
* Comments
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Comments-b1904bb0
|
:CUSTOM_ID: Comments-b1904bb0
|
||||||
:END:
|
:END:
|
||||||
Convert ~/* */~ comments to ~//~ comments where possible.
|
Convert ~/* */~ comments to ~//~ comments where possible.
|
||||||
#+BEGIN_SRC toml
|
#+BEGIN_SRC toml
|
||||||
normalize_comments = true
|
normalize_comments = true
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Break comments to fit on the line.
|
||||||
Break comments to fit on the line.
|
#+BEGIN_SRC toml
|
||||||
#+BEGIN_SRC toml
|
wrap_comments = true
|
||||||
wrap_comments = true
|
#+END_SRC
|
||||||
#+END_SRC
|
Report ~FIXME~ items in comments.
|
||||||
|
#+BEGIN_SRC toml
|
||||||
Report ~FIXME~ items in comments.
|
report_fixme = "Always"
|
||||||
#+BEGIN_SRC toml
|
#+END_SRC
|
||||||
report_fixme = "Always"
|
Report ~TODO~ items in comments.
|
||||||
#+END_SRC
|
#+BEGIN_SRC toml
|
||||||
|
todo = "Always"
|
||||||
Report ~TODO~ items in comments.
|
#+END_SRC
|
||||||
#+BEGIN_SRC toml
|
|
||||||
todo = "Always"
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Documentation
|
* Documentation
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Documentation-0c7981c7
|
:CUSTOM_ID: Documentation-0c7981c7
|
||||||
:END:
|
:END:
|
||||||
Format code snippet included in doc comments.
|
Format code snippet included in doc comments.
|
||||||
#+BEGIN_SRC toml
|
#+BEGIN_SRC toml
|
||||||
format_code_in_doc_comments = true
|
format_code_in_doc_comments = true
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Convert ~#![doc]~ and ~#[doc]~ attributes to ~//!~ and ~///~ doc comments.
|
||||||
Convert ~#![doc]~ and ~#[doc]~ attributes to ~//!~ and ~///~ doc comments.
|
#+BEGIN_SRC toml
|
||||||
#+BEGIN_SRC toml
|
normalize_doc_attributes = true
|
||||||
normalize_doc_attributes = true
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Whitespace
|
* Whitespace
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Whitespace-e8792b44
|
:CUSTOM_ID: Whitespace-e8792b44
|
||||||
:END:
|
:END:
|
||||||
|
Use tab characters for indentation, spaces for alignment.
|
||||||
Use tab characters for indentation, spaces for alignment.
|
#+BEGIN_SRC toml
|
||||||
#+BEGIN_SRC toml
|
hard_tabs = false
|
||||||
hard_tabs = false
|
#+END_SRC
|
||||||
#+END_SRC
|
Number of spaces per tab.
|
||||||
|
#+BEGIN_SRC toml
|
||||||
Number of spaces per tab.
|
tab_spaces = 4
|
||||||
#+BEGIN_SRC toml
|
#+END_SRC
|
||||||
tab_spaces = 4
|
I want newlines to always be Unix style.
|
||||||
#+END_SRC
|
#+BEGIN_SRC toml
|
||||||
|
newline_style = "Unix"
|
||||||
I want newlines to always be Unix style.
|
#+END_SRC
|
||||||
#+BEGIN_SRC toml
|
|
||||||
newline_style = "Unix"
|
|
||||||
#+END_SRC
|
|
||||||
|
@ -10,396 +10,334 @@
|
|||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Presentation-0b37c6c0
|
:CUSTOM_ID: Presentation-0b37c6c0
|
||||||
:END:
|
:END:
|
||||||
I don’t really use tmux often, but I certainly do like a nice presentation and
|
I don’t really use tmux often, but I certainly do like a nice presentation and useful features, hence this configuration. This config file is inspired by gpakosz’s tmux configuration repo you can find [[https://github.com/gpakosz/.tmux][here]].
|
||||||
useful features, hence this configuration. This config file is inspired by
|
|
||||||
gpakosz’s tmux configuration repo you can find [[https://github.com/gpakosz/.tmux][here]].
|
|
||||||
|
|
||||||
* Windows and pane creation
|
* Windows and pane creation
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Windows_and_pane_creation-66275518
|
:CUSTOM_ID: Windows_and_pane_creation-66275518
|
||||||
:END:
|
:END:
|
||||||
Whether if a new *window* will retain the current path. Possible values are:
|
Whether if a new *window* will retain the current path. Possible values are:
|
||||||
- true
|
- ~true~
|
||||||
- false (default)
|
- ~false~ (default)
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_new_window_retain_current_path=true
|
tmux_conf_new_window_retain_current_path=true
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Whether if a new *pane* should retain the current path. Possible values are:
|
||||||
Whether if a new *pane* should retain the current path. Possible values are:
|
- ~true~ (default)
|
||||||
- true (default)
|
- ~false~
|
||||||
- false
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_new_window_retain_current_path=true
|
||||||
tmux_conf_new_window_retain_current_path=true
|
#+END_SRC
|
||||||
#+END_SRC
|
Whether or not tmux should attempt to reconnect to the current ssh session. This is still experimental. Possible values are:
|
||||||
|
- ~true~
|
||||||
Whether or not tmux should attempt to reconnect to the current ssh session.
|
- ~false~ (default)
|
||||||
This is still experimental. Possible values are:
|
#+BEGIN_SRC conf-unix
|
||||||
- true
|
tmux_conf_new_pane_reconnect_ssh=true
|
||||||
- false (default)
|
#+END_SRC
|
||||||
#+BEGIN_SRC conf-unix
|
Whether tmux should prompt for new session name when creating a new one. Possible values are:
|
||||||
tmux_conf_new_pane_reconnect_ssh=true
|
- ~true~
|
||||||
#+END_SRC
|
- ~false~ (default)
|
||||||
|
#+BEGIN_SRC conf-unix
|
||||||
Whether tmux should prompt for new session name when creating a new one.
|
tmux_conf_new_session_prompt=false
|
||||||
Possible values are:
|
#+END_SRC
|
||||||
- true
|
|
||||||
- false (default)
|
|
||||||
#+BEGIN_SRC conf-unix
|
|
||||||
tmux_conf_new_session_prompt=false
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Display
|
* Display
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Display-d5ae1908
|
:CUSTOM_ID: Display-d5ae1908
|
||||||
:END:
|
:END:
|
||||||
Whether to activate RGB 24-bit color support (only available in tmux >= 2.2).
|
Whether to activate RGB 24-bit color support (only available in tmux >= 2.2). Possible values are:
|
||||||
Possible values are:
|
- ~true~
|
||||||
- true
|
- ~false~ (default)
|
||||||
- false (default)
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_24b_colour=false
|
||||||
tmux_conf_theme_24b_colour=false
|
#+END_SRC
|
||||||
#+END_SRC
|
These variables are for chosing the window style. I use the default one.
|
||||||
|
#+BEGIN_SRC conf-unix
|
||||||
These variables are for chosing the window style. I use the default one.
|
tmux_conf_theme_window_fg='default'
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_window_bg='default'
|
||||||
tmux_conf_theme_window_fg='default'
|
#+END_SRC
|
||||||
tmux_conf_theme_window_bg='default'
|
Whether the focused pane should be highlighted (only available in tmux >= 2.1). Possible values are:
|
||||||
#+END_SRC
|
- ~true~
|
||||||
|
- ~false~ (default)
|
||||||
Whether the focused pane should be highlighted (only available in tmux >=
|
#+BEGIN_SRC conf-unix
|
||||||
2.1). Possible values are:
|
tmux_conf_theme_highlight_focused_pane=false
|
||||||
- true
|
#+END_SRC
|
||||||
- false (default)
|
Set the terminal title. Built-in variables are:
|
||||||
#+BEGIN_SRC conf-unix
|
- =#{circled_window_index}=
|
||||||
tmux_conf_theme_highlight_focused_pane=false
|
- =#{circled_session_name}=
|
||||||
#+END_SRC
|
- =#{hostname}=
|
||||||
|
- =#{hostname_ssh}=
|
||||||
Set the terminal title. Built-in variables are:
|
- =#{username}=
|
||||||
- =#{circled_window_index}=
|
- =#{username_ssh}=
|
||||||
- =#{circled_session_name}=
|
#+BEGIN_SRC conf-unix
|
||||||
- =#{hostname}=
|
tmux_conf_theme_terminal_title='#h ❐ #S ● #I #W'
|
||||||
- =#{hostname_ssh}=
|
#+END_SRC
|
||||||
- =#{username}=
|
These variables set the left/right separators between sections. With the current values, you don’t need to install Powerline, but only fonts patched with Powerline symbols or the standalone PowerlineSymbols.otf font.
|
||||||
- =#{username_ssh}=
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_left_separator_main='\uE0B0'
|
||||||
tmux_conf_theme_terminal_title='#h ❐ #S ● #I #W'
|
tmux_conf_theme_left_separator_sub='\uE0B1'
|
||||||
#+END_SRC
|
tmux_conf_theme_right_separator_main='\uE0B2'
|
||||||
|
tmux_conf_theme_right_separator_sub='\uE0B3'
|
||||||
These variables set the left/right separators between sections. With the
|
#+END_SRC
|
||||||
current values, you don’t need to install Powerline, but only fonts patched
|
|
||||||
with Powerline symbols or the standalone PowerlineSymbols.otf font.
|
|
||||||
#+BEGIN_SRC conf-unix
|
|
||||||
tmux_conf_theme_left_separator_main='\uE0B0'
|
|
||||||
tmux_conf_theme_left_separator_sub='\uE0B1'
|
|
||||||
tmux_conf_theme_right_separator_main='\uE0B2'
|
|
||||||
tmux_conf_theme_right_separator_sub='\uE0B3'
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Colors and style
|
** Colors and style
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Display-Colors_and_style-0994a014
|
:CUSTOM_ID: Display-Colors_and_style-0994a014
|
||||||
:END:
|
:END:
|
||||||
Colors displayed in tmux can be chosen thanks to the following variables. Any
|
Colors displayed in tmux can be chosen thanks to the following variables. Any color should be formatted as a hexadecimal RGB value preceded by a pound sign =#= (e.g. =#00afff= for light blue) or =default= to let our terminal set it for us.
|
||||||
color should be formatted as a hexadecimal RGB value preceded by a pound sign
|
|
||||||
=#= (e.g. =#00afff= for light blue) or =default= to let our terminal set it
|
|
||||||
for us.
|
|
||||||
|
|
||||||
Choose the style of the pane borders. Possible values are:
|
Choose the style of the pane borders. Possible values are:
|
||||||
- thin (default)
|
- ~thin~ (default)
|
||||||
- fat
|
- ~fat~
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_theme_pane_border_style=thin
|
tmux_conf_theme_pane_border_style=thin
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Declare what the colors of the focused pane should be. The first variable specifies the foreground color, the other the background color.
|
||||||
Declare what the colors of the focused pane should be. The first variable
|
#+BEGIN_SRC conf-unix
|
||||||
specifies the foreground color, the other the background color.
|
tmux_conf_theme_focused_pane_fg='default'
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_focused_pane_bg='#0087d7'
|
||||||
tmux_conf_theme_focused_pane_fg='default'
|
#+END_SRC
|
||||||
tmux_conf_theme_focused_pane_bg='#0087d7'
|
Here you can set the colors of the pane borders.
|
||||||
#+END_SRC
|
#+BEGIN_SRC conf-unix
|
||||||
|
tmux_conf_theme_pane_border='#444444'
|
||||||
Here you can set the colors of the pane borders.
|
tmux_conf_theme_pane_active_border='#00afff'
|
||||||
#+BEGIN_SRC conf-unix
|
#+END_SRC
|
||||||
tmux_conf_theme_pane_border='#444444'
|
With these variables, you can set the colors for the pane indicators.
|
||||||
tmux_conf_theme_pane_active_border='#00afff'
|
#+BEGIN_SRC conf-unix
|
||||||
#+END_SRC
|
tmux_conf_theme_pane_indicator='#00afff'
|
||||||
|
tmux_conf_theme_pane_active_indicator='#00afff'
|
||||||
With these variables, you can set the colors for the pane indicators.
|
#+END_SRC
|
||||||
#+BEGIN_SRC conf-unix
|
These variables set the colors and the style of the status line.
|
||||||
tmux_conf_theme_pane_indicator='#00afff'
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_theme_pane_active_indicator='#00afff'
|
tmux_conf_theme_message_fg='#000000'
|
||||||
#+END_SRC
|
tmux_conf_theme_message_bg='#ffff00'
|
||||||
|
tmux_conf_theme_message_attr='bold'
|
||||||
These variables set the colors and the style of the status line.
|
#+END_SRC
|
||||||
#+BEGIN_SRC conf-unix
|
Same as above for the status line command style.
|
||||||
tmux_conf_theme_message_fg='#000000'
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_theme_message_bg='#ffff00'
|
tmux_conf_theme_message_command_fg='#ffff00'
|
||||||
tmux_conf_theme_message_attr='bold'
|
tmux_conf_theme_message_command_bg='#000000'
|
||||||
#+END_SRC
|
tmux_conf_theme_message_command_attr='bold'
|
||||||
|
#+END_SRC
|
||||||
Same as above for the status line command style.
|
These variables set the style of the window modes.
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_theme_message_command_fg='#ffff00'
|
tmux_conf_theme_mode_fg='#000000'
|
||||||
tmux_conf_theme_message_command_bg='#000000'
|
tmux_conf_theme_mode_bg='#ffff00'
|
||||||
tmux_conf_theme_message_command_attr='bold'
|
tmux_conf_theme_mode_attr='bold'
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Set the style of the status line.
|
||||||
These variables set the style of the window modes.
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_status_fg='#8a8a8a'
|
||||||
tmux_conf_theme_mode_fg='#000000'
|
tmux_conf_theme_status_bg='#080808'
|
||||||
tmux_conf_theme_mode_bg='#ffff00'
|
tmux_conf_theme_status_attr='none'
|
||||||
tmux_conf_theme_mode_attr='bold'
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Set the style of the status line.
|
|
||||||
#+BEGIN_SRC conf-unix
|
|
||||||
tmux_conf_theme_status_fg='#8a8a8a'
|
|
||||||
tmux_conf_theme_status_bg='#080808'
|
|
||||||
tmux_conf_theme_status_attr='none'
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
** Window status bar
|
** Window status bar
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Display-Window_status_bar-dff37ae7
|
:CUSTOM_ID: Display-Window_status_bar-dff37ae7
|
||||||
:END:
|
:END:
|
||||||
The following variables are to set the window’s status style and format.
|
The following variables are to set the window’s status style and format.
|
||||||
|
|
||||||
Sets the colors and style of the window status.
|
Sets the colors and style of the window status.
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_theme_window_status_fg='#8a8a8a'
|
tmux_conf_theme_window_status_fg='#8a8a8a'
|
||||||
tmux_conf_theme_window_status_bg='#080808'
|
tmux_conf_theme_window_status_bg='#080808'
|
||||||
tmux_conf_theme_window_status_attr='none'
|
tmux_conf_theme_window_status_attr='none'
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
Sets the format of the window status. Built-in variables are:
|
||||||
Sets the format of the window status. Built-in variables are:
|
- =#{circled_window_index}=
|
||||||
- =#{circled_window_index}=
|
- =#{circled_session_name}=
|
||||||
- =#{circled_session_name}=
|
- =#{hostname}=
|
||||||
- =#{hostname}=
|
- =#{hostname_ssh}=
|
||||||
- =#{hostname_ssh}=
|
- =#{username}=
|
||||||
- =#{username}=
|
- =#{username_ssh}=
|
||||||
- =#{username_ssh}=
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_window_status_format='#I #W'
|
||||||
tmux_conf_theme_window_status_format='#I #W'
|
#+END_SRC
|
||||||
#+END_SRC
|
Sets the colors and style of the current window status.
|
||||||
|
#+BEGIN_SRC conf-unix
|
||||||
Sets the colors and style of the current window status.
|
tmux_conf_theme_window_status_current_fg='#000000'
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_window_status_current_bg='#00afff'
|
||||||
tmux_conf_theme_window_status_current_fg='#000000'
|
tmux_conf_theme_window_status_current_attr='bold'
|
||||||
tmux_conf_theme_window_status_current_bg='#00afff'
|
#+END_SRC
|
||||||
tmux_conf_theme_window_status_current_attr='bold'
|
Sets the format of the currentwindow status. Built-in variables are:
|
||||||
#+END_SRC
|
- =#{circled_window_index}=
|
||||||
|
- =#{circled_session_name}=
|
||||||
Sets the format of the currentwindow status. Built-in variables are:
|
- =#{hostname}=
|
||||||
- =#{circled_window_index}=
|
- =#{hostname_ssh}=
|
||||||
- =#{circled_session_name}=
|
- =#{username}=
|
||||||
- =#{hostname}=
|
- =#{username_ssh}=
|
||||||
- =#{hostname_ssh}=
|
#+BEGIN_SRC conf-unix
|
||||||
- =#{username}=
|
tmux_conf_theme_window_status_current_format='#I #W'
|
||||||
- =#{username_ssh}=
|
#+END_SRC
|
||||||
#+BEGIN_SRC conf-unix
|
Sets the window activity status style.
|
||||||
tmux_conf_theme_window_status_current_format='#I #W'
|
#+BEGIN_SRC conf-unix
|
||||||
#+END_SRC
|
tmux_conf_theme_window_status_activity_fg='default'
|
||||||
|
tmux_conf_theme_window_status_activity_bg='default'
|
||||||
Sets the window activity status style.
|
tmux_conf_theme_window_status_activity_attr='underscore'
|
||||||
#+BEGIN_SRC conf-unix
|
#+END_SRC
|
||||||
tmux_conf_theme_window_status_activity_fg='default'
|
Sets the window bell status style.
|
||||||
tmux_conf_theme_window_status_activity_bg='default'
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_theme_window_status_activity_attr='underscore'
|
tmux_conf_theme_window_status_bell_fg='#ffff00'
|
||||||
#+END_SRC
|
tmux_conf_theme_window_status_bell_bg='default'
|
||||||
|
tmux_conf_theme_window_status_bell_attr='blink,bold'
|
||||||
Sets the window bell status style.
|
#+END_SRC
|
||||||
#+BEGIN_SRC conf-unix
|
Sets the window last status style.
|
||||||
tmux_conf_theme_window_status_bell_fg='#ffff00'
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_theme_window_status_bell_bg='default'
|
tmux_conf_theme_window_status_last_fg='#00afff'
|
||||||
tmux_conf_theme_window_status_bell_attr='blink,bold'
|
tmux_conf_theme_window_status_last_bg='default'
|
||||||
#+END_SRC
|
tmux_conf_theme_window_status_last_attr='none'
|
||||||
|
#+END_SRC
|
||||||
Sets the window last status style.
|
Sets the left and right content of the status bar of tmux. Sections should be separated with =|=, subsections with =,=. The built-in values are:
|
||||||
#+BEGIN_SRC conf-unix
|
- =#{battery_bar}=
|
||||||
tmux_conf_theme_window_status_last_fg='#00afff'
|
- =#{battery_hbar}=
|
||||||
tmux_conf_theme_window_status_last_bg='default'
|
- =#{battery_percentage}=
|
||||||
tmux_conf_theme_window_status_last_attr='none'
|
- =#{battery_status}=
|
||||||
#+END_SRC
|
- =#{battery_vbar}=
|
||||||
|
- =#{circled_session_name}=
|
||||||
Sets the left and right content of the status bar of tmux. Sections should be
|
- =#{hostname_ssh}=
|
||||||
separated with =|=, subsections with =,=. The built-in values are:
|
- =#{hostname}=
|
||||||
- =#{battery_bar}=
|
- =#{loadavg}=
|
||||||
- =#{battery_hbar}=
|
- =#{pairing}=
|
||||||
- =#{battery_percentage}=
|
- =#{prefix}=
|
||||||
- =#{battery_status}=
|
- =#{root}=
|
||||||
- =#{battery_vbar}=
|
- =#{synchronized}=
|
||||||
- =#{circled_session_name}=
|
- =#{uptime_y}=
|
||||||
- =#{hostname_ssh}=
|
- =#{uptime_d}= (modulo 365 when =#{uptime_y}= is used)
|
||||||
- =#{hostname}=
|
- =#{uptime_h}=
|
||||||
- =#{loadavg}=
|
- =#{uptime_m}=
|
||||||
- =#{pairing}=
|
- =#{uptime_s}=
|
||||||
- =#{prefix}=
|
- =#{username}=
|
||||||
- =#{root}=
|
- =#{username_ssh}=
|
||||||
- =#{synchronized}=
|
#+BEGIN_SRC conf-unix
|
||||||
- =#{uptime_y}=
|
tmux_conf_theme_status_left=' ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} '
|
||||||
- =#{uptime_d}= (modulo 365 when =#{uptime_y}= is used)
|
tmux_conf_theme_status_right='#{prefix}#{pairing}#{synchronized} #{?battery_status, #{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b | #{username}#{root} | #{hostname} '
|
||||||
- =#{uptime_h}=
|
#+END_SRC
|
||||||
- =#{uptime_m}=
|
Sets the left status style and colors.
|
||||||
- =#{uptime_s}=
|
#+BEGIN_SRC conf-unix
|
||||||
- =#{username}=
|
tmux_conf_theme_status_left_fg='#000000,#e4e4e4,#e4e4e4'
|
||||||
- =#{username_ssh}=
|
tmux_conf_theme_status_left_bg='#ffff00,#ff00af,#00afff'
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_status_left_attr='bold,none,none'
|
||||||
tmux_conf_theme_status_left=' ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} '
|
#+END_SRC
|
||||||
tmux_conf_theme_status_right='#{prefix}#{pairing}#{synchronized} #{?battery_status, #{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b | #{username}#{root} | #{hostname} '
|
Sets the right status style and colors.
|
||||||
#+END_SRC
|
#+BEGIN_SRC conf-unix
|
||||||
|
tmux_conf_theme_status_right_fg='#8a8a8a,#e4e4e4,#000000'
|
||||||
Sets the left status style and colors.
|
tmux_conf_theme_status_right_bg='#080808,#d70000,#e4e4e4'
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_status_right_attr='none,none,bold'
|
||||||
tmux_conf_theme_status_left_fg='#000000,#e4e4e4,#e4e4e4'
|
#+END_SRC
|
||||||
tmux_conf_theme_status_left_bg='#ffff00,#ff00af,#00afff'
|
Set the pairing indicator, its style and its attribute.
|
||||||
tmux_conf_theme_status_left_attr='bold,none,none'
|
#+BEGIN_SRC conf-unix
|
||||||
#+END_SRC
|
tmux_conf_theme_pairing='👓 ' # U+1F453
|
||||||
|
tmux_conf_theme_pairing_fg='none'
|
||||||
Sets the right status style and colors.
|
tmux_conf_theme_pairing_bg='none'
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_pairing_attr='none'
|
||||||
tmux_conf_theme_status_right_fg='#8a8a8a,#e4e4e4,#000000'
|
#+END_SRC
|
||||||
tmux_conf_theme_status_right_bg='#080808,#d70000,#e4e4e4'
|
Set the pairing indicator, its style and its attribute.
|
||||||
tmux_conf_theme_status_right_attr='none,none,bold'
|
#+BEGIN_SRC conf-unix
|
||||||
#+END_SRC
|
# prefix indicator
|
||||||
|
tmux_conf_theme_prefix='⌨ ' # U+2328
|
||||||
Set the pairing indicator, its style and its attribute.
|
tmux_conf_theme_prefix_fg='none'
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_prefix_bg='none'
|
||||||
tmux_conf_theme_pairing='👓 ' # U+1F453
|
tmux_conf_theme_prefix_attr='none'
|
||||||
tmux_conf_theme_pairing_fg='none'
|
#+END_SRC
|
||||||
tmux_conf_theme_pairing_bg='none'
|
Set the root indicator, its style and its attribute.
|
||||||
tmux_conf_theme_pairing_attr='none'
|
#+BEGIN_SRC conf-unix
|
||||||
#+END_SRC
|
tmux_conf_theme_root='!'
|
||||||
|
tmux_conf_theme_root_fg='none'
|
||||||
Set the pairing indicator, its style and its attribute.
|
tmux_conf_theme_root_bg='none'
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_root_attr='bold,blink'
|
||||||
# prefix indicator
|
#+END_SRC
|
||||||
tmux_conf_theme_prefix='⌨ ' # U+2328
|
Set the synchronized indicator, its style and its attribute.
|
||||||
tmux_conf_theme_prefix_fg='none'
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_theme_prefix_bg='none'
|
tmux_conf_theme_synchronized='🔒' # U+1F512
|
||||||
tmux_conf_theme_prefix_attr='none'
|
tmux_conf_theme_synchronized_fg='none'
|
||||||
#+END_SRC
|
tmux_conf_theme_synchronized_bg='none'
|
||||||
|
tmux_conf_theme_synchronized_attr='none'
|
||||||
Set the root indicator, its style and its attribute.
|
#+END_SRC
|
||||||
#+BEGIN_SRC conf-unix
|
Set the battery bar symbols.
|
||||||
tmux_conf_theme_root='!'
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_theme_root_fg='none'
|
tmux_conf_battery_bar_symbol_full='◼'
|
||||||
tmux_conf_theme_root_bg='none'
|
tmux_conf_battery_bar_symbol_empty='◻'
|
||||||
tmux_conf_theme_root_attr='bold,blink'
|
#+END_SRC
|
||||||
#+END_SRC
|
Set the battery bar length in terms of amount of symbols. Possible values are:
|
||||||
|
- =auto=
|
||||||
Set the synchronized indicator, its style and its attribute.
|
- an integer number, e.g. 5
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_theme_synchronized='🔒' # U+1F512
|
tmux_conf_battery_bar_length='auto'
|
||||||
tmux_conf_theme_synchronized_fg='none'
|
#+END_SRC
|
||||||
tmux_conf_theme_synchronized_bg='none'
|
Set the battery bar palette. Possible values are:
|
||||||
tmux_conf_theme_synchronized_attr='none'
|
- =gradient= (default)
|
||||||
#+END_SRC
|
- =heat=
|
||||||
|
- =color_full_fg,color_empty_fg,color_bg= with each being an hexadecimal RGB value preceded by a pound symbol =#=.
|
||||||
Set the battery bar symbols.
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_battery_bar_palette='gradient'
|
||||||
tmux_conf_battery_bar_symbol_full='◼'
|
#tmux_conf_battery_bar_palette='#d70000,#e4e4e4,#000000'
|
||||||
tmux_conf_battery_bar_symbol_empty='◻'
|
#+END_SRC
|
||||||
#+END_SRC
|
Set the hbar palette. Possible values are:
|
||||||
|
- =gradient= (default)
|
||||||
Set the battery bar length in terms of amount of symbols. Possible values
|
- =heat=
|
||||||
are:
|
- =color_full_fg,color_empty_fg,color_bg= with each being an hexadecimal RGB value preceded by a pound symbol =#=.
|
||||||
- =auto=
|
#+BEGIN_SRC conf-unix
|
||||||
- an integer number, e.g. 5
|
tmux_conf_battery_hbar_palette='gradient'
|
||||||
#+BEGIN_SRC conf-unix
|
#+END_SRC
|
||||||
tmux_conf_battery_bar_length='auto'
|
Set the vbar palette. Possible values are:
|
||||||
#+END_SRC
|
- =gradient= (default)
|
||||||
|
- =heat=
|
||||||
Set the battery bar palette. Possible values are:
|
- =color_full_fg,color_empty_fg,color_bg= with each being an hexadecimal RGB value preceded by a pound symbol =#=.
|
||||||
- =gradient= (default)
|
#+BEGIN_SRC conf-unix
|
||||||
- =heat=
|
tmux_conf_battery_vbar_palette='gradient'
|
||||||
- =color_full_fg,color_empty_fg,color_bg= with each being an hexadecimal RGB
|
#+END_SRC
|
||||||
value preceded by a pound symbol =#=.
|
Set symbols used to indicate whether the battery is charging or discharging.
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
tmux_conf_battery_bar_palette='gradient'
|
tmux_conf_battery_status_charging='⚡ ' # U+26A1
|
||||||
#tmux_conf_battery_bar_palette='#d70000,#e4e4e4,#000000'
|
tmux_conf_battery_status_discharging='🔋 ' # U+1F50B
|
||||||
#+END_SRC
|
# tmux_conf_battery_status_charging='↑' # U+2191
|
||||||
|
# tmux_conf_battery_status_discharging='↓' # U+2193
|
||||||
Set the hbar palette. Possible values are:
|
#tmux_conf_battery_status_charging='🔌 ' # U+1F50C
|
||||||
- =gradient= (default)
|
#+END_SRC
|
||||||
- =heat=
|
Set the clock style. If it is displayed on the right side of the status bar, it might be better to use =%I:%M %p= rather than =%R= in =tmux_conf_theme_status_right=.
|
||||||
- =color_full_fg,color_empty_fg,color_bg= with each being an hexadecimal RGB
|
#+BEGIN_SRC conf-unix
|
||||||
value preceded by a pound symbol =#=.
|
tmux_conf_theme_clock_colour='#00afff'
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_theme_clock_style='24'
|
||||||
tmux_conf_battery_hbar_palette='gradient'
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Set the vbar palette. Possible values are:
|
|
||||||
- =gradient= (default)
|
|
||||||
- =heat=
|
|
||||||
- =color_full_fg,color_empty_fg,color_bg= with each being an hexadecimal RGB
|
|
||||||
value preceded by a pound symbol =#=.
|
|
||||||
#+BEGIN_SRC conf-unix
|
|
||||||
tmux_conf_battery_vbar_palette='gradient'
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Set symbols used to indicate whether the battery is charging or discharging.
|
|
||||||
#+BEGIN_SRC conf-unix
|
|
||||||
tmux_conf_battery_status_charging='⚡ ' # U+26A1
|
|
||||||
tmux_conf_battery_status_discharging='🔋 ' # U+1F50B
|
|
||||||
# tmux_conf_battery_status_charging='↑' # U+2191
|
|
||||||
# tmux_conf_battery_status_discharging='↓' # U+2193
|
|
||||||
#tmux_conf_battery_status_charging='🔌 ' # U+1F50C
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Set the clock style. If it is displayed on the right side of the status bar,
|
|
||||||
it might be better to use =%I:%M %p= rather than =%R= in
|
|
||||||
=tmux_conf_theme_status_right=.
|
|
||||||
#+BEGIN_SRC conf-unix
|
|
||||||
tmux_conf_theme_clock_colour='#00afff'
|
|
||||||
tmux_conf_theme_clock_style='24'
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Clipboard
|
* Clipboard
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: Clipboard-66d0d03a
|
:CUSTOM_ID: Clipboard-66d0d03a
|
||||||
:END:
|
:END:
|
||||||
Whether if in copy mode, copying the selection also copies to the OS
|
Whether if in copy mode, copying the selection also copies to the OS clipboard. Possible values are:
|
||||||
clipboard. Possible values are:
|
- ~true~
|
||||||
- true
|
- ~false~ (default)
|
||||||
- false (default)
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
tmux_conf_copy_to_os_clipboard=false
|
||||||
tmux_conf_copy_to_os_clipboard=false
|
#+END_SRC
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* User customizations
|
* User customizations
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: User_customizations-c913b5d7
|
:CUSTOM_ID: User_customizations-c913b5d7
|
||||||
:END:
|
:END:
|
||||||
Here we can override or undo some setting from settings from tmux. First, we
|
Here we can override or undo some setting from settings from tmux. First, we can increase the history size.
|
||||||
can increase the history size.
|
#+BEGIN_SRC conf-unix
|
||||||
#+BEGIN_SRC conf-unix
|
set -g history-limit 10000
|
||||||
set -g history-limit 10000
|
#+END_SRC
|
||||||
#+END_SRC
|
We can also start with mouse mode enabled. But I don’t.
|
||||||
|
#+BEGIN_SRC conf-unix
|
||||||
We can also start with mouse mode enabled. But I don’t.
|
#set -g mouse on
|
||||||
#+BEGIN_SRC conf-unix
|
#+END_SRC
|
||||||
#set -g mouse on
|
Whether or not Vi mode should be enabled. But really, we should rather export the =VISUAL= or =EDITOR= environment variables, see the tmux manual. Although I don’t, as said in my dotfish, I prefer to use Emacs.
|
||||||
#+END_SRC
|
#+BEGIN_SRC conf-unix
|
||||||
|
#set -g status-keys vi
|
||||||
Whether or not Vi mode should be enabled. But really, we should rather export
|
#set -g mode-keys vi
|
||||||
the =VISUAL= or =EDITOR= environment variables, see the tmux manual. Although
|
#+END_SRC
|
||||||
I don’t, as said in my dotfish, I prefer to use Emacs.
|
Replace =C-b= by =C-a= instead of using both prefixes. I personally prefer to just use =C-b=, hence why the lines are commented.
|
||||||
#+BEGIN_SRC conf-unix
|
#+BEGIN_SRC conf-unix
|
||||||
#set -g status-keys vi
|
# set -gu prefix2
|
||||||
#set -g mode-keys vi
|
# unbind C-a
|
||||||
#+END_SRC
|
# unbind C-b
|
||||||
|
# set -g prefix C-a
|
||||||
Replace =C-b= by =C-a= instead of using both prefixes. I personally prefer to
|
# bind C-a send-prefix
|
||||||
just use =C-b=, hence why the lines are commented.
|
#+END_SRC
|
||||||
#+BEGIN_SRC conf-unix
|
Move the status line to the top.
|
||||||
# set -gu prefix2
|
#+BEGIN_SRC conf-unix
|
||||||
# unbind C-a
|
#set -g status-position top
|
||||||
# unbind C-b
|
#+END_SRC
|
||||||
# set -g prefix C-a
|
|
||||||
# bind C-a send-prefix
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
Move the status line to the top.
|
|
||||||
#+BEGIN_SRC conf-unix
|
|
||||||
#set -g status-position top
|
|
||||||
#+END_SRC
|
|
||||||
|
Loading…
Reference in New Issue
Block a user