config.phundrak.com/org/config/neofetch.html

1073 lines
40 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<!-- 2020-04-21 mar. 15:02 -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Neofetch configuration</title>
<meta name="generator" content="Org mode">
<meta name="author" content="Lucien Cartier-Tilet">
<meta name="keywords" content="dotfiles linux emacs configuration phundrak drakpa">
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
.title { text-align: center;
margin-bottom: .2em; }
.subtitle { text-align: center;
font-size: medium;
font-weight: bold;
margin-top:0; }
.todo { font-family: monospace; color: red; }
.done { font-family: monospace; color: green; }
.priority { font-family: monospace; color: orange; }
.tag { background-color: #eee; font-family: monospace;
padding: 2px; font-size: 80%; font-weight: normal; }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
.underline { text-decoration: underline; }
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
p.verse { margin-left: 3%; }
pre {
border: 1px solid #ccc;
box-shadow: 3px 3px 3px #eee;
padding: 8pt;
font-family: monospace;
overflow: auto;
margin: 1.2em;
}
pre.src {
position: relative;
overflow: visible;
padding-top: 1.2em;
}
pre.src:before {
display: none;
position: absolute;
background-color: white;
top: -10px;
right: 10px;
padding: 3px;
border: 1px solid black;
}
pre.src:hover:before { display: inline;}
/* Languages per Org manual */
pre.src-asymptote:before { content: 'Asymptote'; }
pre.src-awk:before { content: 'Awk'; }
pre.src-C:before { content: 'C'; }
/* pre.src-C++ doesn't work in CSS */
pre.src-clojure:before { content: 'Clojure'; }
pre.src-css:before { content: 'CSS'; }
pre.src-D:before { content: 'D'; }
pre.src-ditaa:before { content: 'ditaa'; }
pre.src-dot:before { content: 'Graphviz'; }
pre.src-calc:before { content: 'Emacs Calc'; }
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
pre.src-fortran:before { content: 'Fortran'; }
pre.src-gnuplot:before { content: 'gnuplot'; }
pre.src-haskell:before { content: 'Haskell'; }
pre.src-hledger:before { content: 'hledger'; }
pre.src-java:before { content: 'Java'; }
pre.src-js:before { content: 'Javascript'; }
pre.src-latex:before { content: 'LaTeX'; }
pre.src-ledger:before { content: 'Ledger'; }
pre.src-lisp:before { content: 'Lisp'; }
pre.src-lilypond:before { content: 'Lilypond'; }
pre.src-lua:before { content: 'Lua'; }
pre.src-matlab:before { content: 'MATLAB'; }
pre.src-mscgen:before { content: 'Mscgen'; }
pre.src-ocaml:before { content: 'Objective Caml'; }
pre.src-octave:before { content: 'Octave'; }
pre.src-org:before { content: 'Org mode'; }
pre.src-oz:before { content: 'OZ'; }
pre.src-plantuml:before { content: 'Plantuml'; }
pre.src-processing:before { content: 'Processing.js'; }
pre.src-python:before { content: 'Python'; }
pre.src-R:before { content: 'R'; }
pre.src-ruby:before { content: 'Ruby'; }
pre.src-sass:before { content: 'Sass'; }
pre.src-scheme:before { content: 'Scheme'; }
pre.src-screen:before { content: 'Gnu Screen'; }
pre.src-sed:before { content: 'Sed'; }
pre.src-sh:before { content: 'shell'; }
pre.src-sql:before { content: 'SQL'; }
pre.src-sqlite:before { content: 'SQLite'; }
/* additional languages in org.el's org-babel-load-languages alist */
pre.src-forth:before { content: 'Forth'; }
pre.src-io:before { content: 'IO'; }
pre.src-J:before { content: 'J'; }
pre.src-makefile:before { content: 'Makefile'; }
pre.src-maxima:before { content: 'Maxima'; }
pre.src-perl:before { content: 'Perl'; }
pre.src-picolisp:before { content: 'Pico Lisp'; }
pre.src-scala:before { content: 'Scala'; }
pre.src-shell:before { content: 'Shell Script'; }
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
/* additional language identifiers per "defun org-babel-execute"
in ob-*.el */
pre.src-cpp:before { content: 'C++'; }
pre.src-abc:before { content: 'ABC'; }
pre.src-coq:before { content: 'Coq'; }
pre.src-groovy:before { content: 'Groovy'; }
/* additional language identifiers from org-babel-shell-names in
ob-shell.el: ob-shell is the only babel language using a lambda to put
the execution function name together. */
pre.src-bash:before { content: 'bash'; }
pre.src-csh:before { content: 'csh'; }
pre.src-ash:before { content: 'ash'; }
pre.src-dash:before { content: 'dash'; }
pre.src-ksh:before { content: 'ksh'; }
pre.src-mksh:before { content: 'mksh'; }
pre.src-posh:before { content: 'posh'; }
/* Additional Emacs modes also supported by the LaTeX listings package */
pre.src-ada:before { content: 'Ada'; }
pre.src-asm:before { content: 'Assembler'; }
pre.src-caml:before { content: 'Caml'; }
pre.src-delphi:before { content: 'Delphi'; }
pre.src-html:before { content: 'HTML'; }
pre.src-idl:before { content: 'IDL'; }
pre.src-mercury:before { content: 'Mercury'; }
pre.src-metapost:before { content: 'MetaPost'; }
pre.src-modula-2:before { content: 'Modula-2'; }
pre.src-pascal:before { content: 'Pascal'; }
pre.src-ps:before { content: 'PostScript'; }
pre.src-prolog:before { content: 'Prolog'; }
pre.src-simula:before { content: 'Simula'; }
pre.src-tcl:before { content: 'tcl'; }
pre.src-tex:before { content: 'TeX'; }
pre.src-plain-tex:before { content: 'Plain TeX'; }
pre.src-verilog:before { content: 'Verilog'; }
pre.src-vhdl:before { content: 'VHDL'; }
pre.src-xml:before { content: 'XML'; }
pre.src-nxml:before { content: 'XML'; }
/* add a generic configuration mode; LaTeX export needs an additional
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
pre.src-conf:before { content: 'Configuration File'; }
table { border-collapse:collapse; }
caption.t-above { caption-side: top; }
caption.t-bottom { caption-side: bottom; }
td, th { vertical-align:top; }
th.org-right { text-align: center; }
th.org-left { text-align: center; }
th.org-center { text-align: center; }
td.org-right { text-align: right; }
td.org-left { text-align: left; }
td.org-center { text-align: center; }
dt { font-weight: bold; }
.footpara { display: inline; }
.footdef { margin-bottom: 1em; }
.figure { padding: 1em; }
.figure p { text-align: center; }
.equation-container {
display: table;
text-align: center;
width: 100%;
}
.equation {
vertical-align: middle;
}
.equation-label {
display: table-cell;
text-align: right;
vertical-align: middle;
}
.inlinetask {
padding: 10px;
border: 2px solid gray;
margin: 10px;
background: #ffffcc;
}
#org-div-home-and-up
{ text-align: right; font-size: 70%; white-space: nowrap; }
textarea { overflow-x: auto; }
.linenr { font-size: smaller }
.code-highlighted { background-color: #ffff00; }
.org-info-js_info-navigation { border-style: none; }
#org-info-js_console-label
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
.org-info-js_search-highlight
{ background-color: #ffff00; color: #000000; font-weight: bold; }
.org-svg { width: 90%; }
/*]]>*/-->
</style>
<meta property="og:image" content="https://cdn.phundrak.com/img/rich_preview.png" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@phundrak" />
<meta name="twitter:creator" content="@phundrak" />
<link rel="stylesheet" href="https://langue.phundrak.com/css/main.css"/>
<link rel="stylesheet" href="https://langue.phundrak.com/css/htmlize.min.css"/>
<link rel="stylesheet" id="theme" href="https://langue.phundrak.com/css/dark.css"/>
<link rel="shortcut icon" href="https://cdn.phundrak.com/img/mahakala-128x128.png" type="img/png" media="screen" />
<link rel="shortcut icon" href="https://cdn.phundrak.com/img/favicon.ico" type="image/x-icon" media="screen" />
<script defer src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<script defer src="https://langue.phundrak.com/dart/main.dart.js"></script>
<script defer src="https://kit.fontawesome.com/4d42d0c8c5.js"></script>
<meta name="description" content="Phundrak's Neofetch config" />
<meta property="og:title" content="Phundrak's Neofetch config" />
<meta property="og:description" content="Description of the Neofetch config file of Phundrak" />
<script type="text/javascript" src="https://orgmode.org/org-info.js">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&amp;dn=gpl-3.0.txt GPL-v3-or-Later
// @license-end
</script>
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&amp;dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
org_html_manager.set("TOC_DEPTH", "4");
org_html_manager.set("LINK_HOME", "");
org_html_manager.set("LINK_UP", "");
org_html_manager.set("LOCAL_TOC", "1");
org_html_manager.set("VIEW_BUTTONS", "0");
org_html_manager.set("MOUSE_HINT", "underline");
org_html_manager.set("FIXED_TOC", "0");
org_html_manager.set("TOC", "1");
org_html_manager.set("VIEW", "showall");
org_html_manager.setup(); // activate after the parameters are set
/*]]>*///-->
// @license-end
</script>
<script type="text/javascript">
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&amp;dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
// @license-end
</script>
</head>
<body>
<div id="content">
<h1 class="title">Neofetch configuration</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#h-1b7321bc-190e-41a7-a6e0-ff13e9a61b74">1. Introduction</a></li>
<li><a href="#h-3a3a5ade-adab-4508-9aa9-17896126b169">2. The <code>print_info</code> functions</a></li>
<li><a href="#h-d1ddb7fc-e87a-42d1-a71b-6fc7b10c9f78">3. Information settings</a>
<ul>
<li><a href="#h-2f562a5c-3530-4b50-b553-a0cb801affea">3.1. Software</a>
<ul>
<li><a href="#h-afe50abf-8988-48dd-9768-72eb0143b613">3.1.1. OS</a>
<ul>
<li><a href="#h-be4b75c8-2612-4e40-933f-bd451bd6fc5e">3.1.1.1. Kernel</a></li>
<li><a href="#h-979a15ac-c2ac-41a4-91f2-5676feba6dd4">3.1.1.2. Distro</a></li>
<li><a href="#h-c621c645-f926-411f-852c-9b4508a0736a">3.1.1.3. OS Architecture</a></li>
</ul>
</li>
<li><a href="#h-41f62c23-4306-4828-a824-7a33e19deee5">3.1.2. Uptime shorthand</a></li>
<li><a href="#h-759202dd-43a9-477f-8d11-df1790870673">3.1.3. Shell</a>
<ul>
<li><a href="#h-dd92a375-1fa1-4e46-9427-503c03b83b83">3.1.3.1. Shell path</a></li>
<li><a href="#h-636dfde0-f0d1-4166-870c-8f1ff31b6dc2">3.1.3.2. Shell version</a></li>
</ul>
</li>
<li><a href="#h-e2ee7a72-d852-436d-b610-946508597696">3.1.4. Theming</a>
<ul>
<li><a href="#h-19994d7e-908b-4e20-912c-a527eee19668">3.1.4.1. Shorten output</a></li>
<li><a href="#h-c9bf1b93-ec7b-4c48-b9f8-5d44edbcb8bc">3.1.4.2. Enable or disable theming display for GTK2</a></li>
<li><a href="#h-6d367bd6-bb5c-469c-bfd7-145ef0ecd6d9">3.1.4.3. Enable or disable theming display for GTK3</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#h-d7f87860-5c1d-427b-9d2e-f7674d9fbab5">3.2. Hardware</a>
<ul>
<li><a href="#h-b2183b8b-de13-4812-a7da-9f2d4d66e42d">3.2.1. CPU</a>
<ul>
<li><a href="#h-7300f2bb-e8d2-4ede-8765-a6e8883af99e">3.2.1.1. CPU brand</a></li>
<li><a href="#h-5cd70ef6-4ba3-45a3-a46e-ec2d5b76d36a">3.2.1.2. CPU speed</a></li>
<li><a href="#h-61affc64-b69d-44f2-b950-1623cd908b6a">3.2.1.3. CPU speed type</a></li>
<li><a href="#h-6138e3bd-937f-4604-b2c0-db0a49b869bc">3.2.1.4. CPU speed shorthand</a></li>
<li><a href="#h-eea09747-5334-49af-aef3-1a29f59ea40e">3.2.1.5. CPU cores</a></li>
<li><a href="#h-66633b86-2427-4079-9e62-e72b3d458a21">3.2.1.6. CPU temperature</a></li>
</ul>
</li>
<li><a href="#h-6138e3bd-937f-4604-b2c0-db0a49b869bc">3.2.2. GPU</a>
<ul>
<li><a href="#h-d2a0a4dd-7dc4-4584-8093-ce417b4bb59b">3.2.2.1. GPU brand</a></li>
<li><a href="#h-4309d902-fc80-48c9-be89-02b932d1f650">3.2.2.2. Which GPU to display</a></li>
</ul>
</li>
<li><a href="#h-9803fa70-bf09-400a-800f-071de9f2d91d">3.2.3. Resolution</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-h-1b7321bc-190e-41a7-a6e0-ff13e9a61b74" class="outline-2">
<h2 id="h-1b7321bc-190e-41a7-a6e0-ff13e9a61b74"><span class="section-number-2">1</span> Introduction</h2>
<div class="outline-text-2" id="text-h-1b7321bc-190e-41a7-a6e0-ff13e9a61b74">
<p>
<a href="https://github.com/dylanaraps/neofetch">Neofetch</a> 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 <code>~/.config/neofetch/config.conf</code>.
First, lets insert the Emacs config header in order to specify the mode to
open the file with.
</p>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #62686E;"># </span><span style="color: #62686E;">-*- mode: sh -*-</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-3a3a5ade-adab-4508-9aa9-17896126b169" class="outline-2">
<h2 id="h-3a3a5ade-adab-4508-9aa9-17896126b169"><span class="section-number-2">2</span> The <code>print_info</code> functions</h2>
<div class="outline-text-2" id="text-h-3a3a5ade-adab-4508-9aa9-17896126b169">
<p>
The <code>print_info</code> function is the function called by Neofetch in order to print
the system information it could fetch. In this function, well choose what to
display, and how. This function looks like this:
</p>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #5cEfFF;">print_info</span><span style="color: #51afef;">()</span> <span style="color: #51afef;">{</span>
<span style="color: #62686E;"># </span><span style="color: #62686E;">Print information here&#8230;</span>
<span style="color: #51afef;">}</span>
</pre>
</div>
<p>
Generally, what we will display will be shown through the <code>info</code> function,
redefined inside Neofetch (this is not <code>info(1)</code>). This <code>info</code> function
accepts one or two arguments. With one argument, such as with <code>info memory</code>,
we can get a result that looks like <code>5136MiB / 15873MiB</code>, while calling it
with two arguments will treat the first one as a prefix and the second one as
the interesting information; <code>info "Memory" memory</code> will look like
<code>Memory: 5136MiB / 15873MiB</code>. Here is what we want to display:
</p>
<table id="org41fba92">
<colgroup>
<col class="org-left">
<col class="org-left">
<col class="org-left">
</colgroup>
<thead>
<tr>
<th scope="col" class="org-left">Prefix</th>
<th scope="col" class="org-left">Information</th>
<th scope="col" class="org-left">What it does</th>
</tr>
</thead>
<tbody>
<tr>
<td class="org-left">&#xa0;</td>
<td class="org-left">line_break</td>
<td class="org-left">Insert a blank line</td>
</tr>
<tr>
<td class="org-left">&#xa0;</td>
<td class="org-left">title</td>
<td class="org-left">Username and hostname</td>
</tr>
<tr>
<td class="org-left">&#xa0;</td>
<td class="org-left">line_break</td>
<td class="org-left">Insert a blank line</td>
</tr>
<tr>
<td class="org-left">&#xa0;</td>
<td class="org-left">cols</td>
<td class="org-left">System theme</td>
</tr>
<tr>
<td class="org-left">&#xa0;</td>
<td class="org-left">line_break</td>
<td class="org-left">Insert a blank line</td>
</tr>
<tr>
<td class="org-left">OS</td>
<td class="org-left">distro</td>
<td class="org-left">Distribution name</td>
</tr>
<tr>
<td class="org-left">Kernel</td>
<td class="org-left">kernel</td>
<td class="org-left">Kernel version</td>
</tr>
<tr>
<td class="org-left">Uptime</td>
<td class="org-left">uptime</td>
<td class="org-left">Machine uptime</td>
</tr>
<tr>
<td class="org-left">Packages</td>
<td class="org-left">packages</td>
<td class="org-left">Number of installed packages</td>
</tr>
<tr>
<td class="org-left">Shell</td>
<td class="org-left">shell</td>
<td class="org-left">Users default shell</td>
</tr>
<tr>
<td class="org-left">WM</td>
<td class="org-left">wm</td>
<td class="org-left">Users Window Manager</td>
</tr>
<tr>
<td class="org-left">Terminal</td>
<td class="org-left">term</td>
<td class="org-left">Default terminal</td>
</tr>
<tr>
<td class="org-left">CPU</td>
<td class="org-left">cpu</td>
<td class="org-left">CPU information</td>
</tr>
<tr>
<td class="org-left">GPU</td>
<td class="org-left">gpu</td>
<td class="org-left">GPU information</td>
</tr>
<tr>
<td class="org-left">Memory</td>
<td class="org-left">memory</td>
<td class="org-left">RAM information</td>
</tr>
</tbody>
</table>
<p>
Hence, the function looks like so:
</p>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #5cEfFF;">print_info</span><span style="color: #51afef;">()</span> <span style="color: #51afef;">{</span>
info line_break
info title
info line_break
info cols
info line_break
info <span style="color: #7bc275;">"OS"</span> distro
info <span style="color: #7bc275;">"Kernel"</span> kernel
info <span style="color: #7bc275;">"Uptime"</span> uptime
info <span style="color: #7bc275;">"Packages"</span> packages
info <span style="color: #7bc275;">"Shell"</span> shell
info <span style="color: #7bc275;">"WM"</span> wm
info <span style="color: #7bc275;">"Terminal"</span> term
info <span style="color: #7bc275;">"CPU"</span> cpu
info <span style="color: #7bc275;">"GPU"</span> gpu
info <span style="color: #7bc275;">"Memory"</span> memory
<span style="color: #51afef;">}</span>
</pre>
</div>
<p>
Each of these modules can be tuned with the variables presented below.
</p>
</div>
</div>
<div id="outline-container-h-d1ddb7fc-e87a-42d1-a71b-6fc7b10c9f78" class="outline-2">
<h2 id="h-d1ddb7fc-e87a-42d1-a71b-6fc7b10c9f78"><span class="section-number-2">3</span> Information settings</h2>
<div class="outline-text-2" id="text-h-d1ddb7fc-e87a-42d1-a71b-6fc7b10c9f78">
<p>
Each of the following variable tunes a function that can be called in
<code>print_info</code> 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 <code>neofetch</code>. I will divide these variables in
two main categories: hardware and software-related properties.
</p>
</div>
<div id="outline-container-h-2f562a5c-3530-4b50-b553-a0cb801affea" class="outline-3">
<h3 id="h-2f562a5c-3530-4b50-b553-a0cb801affea"><span class="section-number-3">3.1</span> Software</h3>
<div class="outline-text-3" id="text-h-2f562a5c-3530-4b50-b553-a0cb801affea">
</div>
<div id="outline-container-h-afe50abf-8988-48dd-9768-72eb0143b613" class="outline-4">
<h4 id="h-afe50abf-8988-48dd-9768-72eb0143b613"><span class="section-number-4">3.1.1</span> OS</h4>
<div class="outline-text-4" id="text-h-afe50abf-8988-48dd-9768-72eb0143b613">
</div>
<div id="outline-container-h-be4b75c8-2612-4e40-933f-bd451bd6fc5e" class="outline-5">
<h5 id="h-be4b75c8-2612-4e40-933f-bd451bd6fc5e"><span class="section-number-5">3.1.1.1</span> Kernel</h5>
<div class="outline-text-5" id="text-h-be4b75c8-2612-4e40-933f-bd451bd6fc5e">
<p>
The variable below can shorten the output ofh the <code>kernel</code> function.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"on"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--kernel_shorthand"</code></dd>
<dt>Supports</dt><dd>Everything except *BSDs (except PacBSD and PC-BSD)</dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>4.8.9-1-ARCH</code></dd>
<dt>off</dt><dd><code>Linux 4.8.9-1-ARCH</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">kernel_shorthand</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-979a15ac-c2ac-41a4-91f2-5676feba6dd4" class="outline-5">
<h5 id="h-979a15ac-c2ac-41a4-91f2-5676feba6dd4"><span class="section-number-5">3.1.1.2</span> Distro</h5>
<div class="outline-text-5" id="text-h-979a15ac-c2ac-41a4-91f2-5676feba6dd4">
<p>
This variable can shorten the output of the <code>distro</code> function.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"on"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--distro_shorthand"</code></dd>
<dt>Supports</dt><dd>Everything except Windows and Haiku</dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>Arch Linux</code></dd>
<dt>off</dt><dd><code>Arch</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">distro_shorthand</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-c621c645-f926-411f-852c-9b4508a0736a" class="outline-5">
<h5 id="h-c621c645-f926-411f-852c-9b4508a0736a"><span class="section-number-5">3.1.1.3</span> OS Architecture</h5>
<div class="outline-text-5" id="text-h-c621c645-f926-411f-852c-9b4508a0736a">
<p>
This variable can show or hide the OS architecture in the <code>distro</code> output.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"off"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--os_arch"</code></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>Arch Linux x86_64</code></dd>
<dt>off</dt><dd><code>Arch Linux</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">os_arch</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-h-41f62c23-4306-4828-a824-7a33e19deee5" class="outline-4">
<h4 id="h-41f62c23-4306-4828-a824-7a33e19deee5"><span class="section-number-4">3.1.2</span> Uptime shorthand</h4>
<div class="outline-text-4" id="text-h-41f62c23-4306-4828-a824-7a33e19deee5">
<p>
This variable can shorten the output of the <code>uptime</code> function. <code>on</code> shortens
it a bit, while <code>tiny</code> shortens it greatly.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"on"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"tiny"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--uptime_shorthand"</code></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>2 days, 10 hours, 3 mins</code></dd>
<dt>off</dt><dd><code>2 days, 10 hours, 3 minutes</code></dd>
<dt>tiny</dt><dd><code>2d 10h 3m</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">uptime_shorthand</span>=<span style="color: #7bc275;">"on"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-759202dd-43a9-477f-8d11-df1790870673" class="outline-4">
<h4 id="h-759202dd-43a9-477f-8d11-df1790870673"><span class="section-number-4">3.1.3</span> Shell</h4>
<div class="outline-text-4" id="text-h-759202dd-43a9-477f-8d11-df1790870673">
</div>
<div id="outline-container-h-dd92a375-1fa1-4e46-9427-503c03b83b83" class="outline-5">
<h5 id="h-dd92a375-1fa1-4e46-9427-503c03b83b83"><span class="section-number-5">3.1.3.1</span> Shell path</h5>
<div class="outline-text-5" id="text-h-dd92a375-1fa1-4e46-9427-503c03b83b83">
<p>
This allows to show either the path of the users shell, or simply its
name.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"off"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--shell_path"</code></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>/bin/bash</code></dd>
<dt>off</dt><dd><code>bash</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">shell_path</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-636dfde0-f0d1-4166-870c-8f1ff31b6dc2" class="outline-5">
<h5 id="h-636dfde0-f0d1-4166-870c-8f1ff31b6dc2"><span class="section-number-5">3.1.3.2</span> Shell version</h5>
<div class="outline-text-5" id="text-h-636dfde0-f0d1-4166-870c-8f1ff31b6dc2">
<p>
This allows to show the shells version in the output of <code>shell</code>.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"on"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--shell_version"</code></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>bash 4.4.5</code></dd>
<dt>off</dt><dd><code>bash</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">shell_version</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-h-e2ee7a72-d852-436d-b610-946508597696" class="outline-4">
<h4 id="h-e2ee7a72-d852-436d-b610-946508597696"><span class="section-number-4">3.1.4</span> Theming</h4>
<div class="outline-text-4" id="text-h-e2ee7a72-d852-436d-b610-946508597696">
<p>
This section will allow the user to modify what Neofetch can and cannot
display about the machines theming —by this, I mean its GTK theme, its
icons and its default font.
</p>
</div>
<div id="outline-container-h-19994d7e-908b-4e20-912c-a527eee19668" class="outline-5">
<h5 id="h-19994d7e-908b-4e20-912c-a527eee19668"><span class="section-number-5">3.1.4.1</span> Shorten output</h5>
<div class="outline-text-5" id="text-h-19994d7e-908b-4e20-912c-a527eee19668">
<p>
With this value, it is possible to shorten the output of the computers
theming.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"off"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--gtk_shorthand"</code></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>Numix, Adwaita</code></dd>
<dt>off</dt><dd><code>Numix [GTK2], Adwaita [GTK3]</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">gtk_shorthand</span>=<span style="color: #7bc275;">"on"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-c9bf1b93-ec7b-4c48-b9f8-5d44edbcb8bc" class="outline-5">
<h5 id="h-c9bf1b93-ec7b-4c48-b9f8-5d44edbcb8bc"><span class="section-number-5">3.1.4.2</span> Enable or disable theming display for GTK2</h5>
<div class="outline-text-5" id="text-h-c9bf1b93-ec7b-4c48-b9f8-5d44edbcb8bc">
<p>
It is possible to explicitely show or hide the computers theming with GTK2
with this variable.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"on"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--gtk2"</code></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>Numix [GTK2], Adwaita [GTK3]</code></dd>
<dt>off</dt><dd><code>Adwaita [GTK3]</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">gtk2</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-6d367bd6-bb5c-469c-bfd7-145ef0ecd6d9" class="outline-5">
<h5 id="h-6d367bd6-bb5c-469c-bfd7-145ef0ecd6d9"><span class="section-number-5">3.1.4.3</span> Enable or disable theming display for GTK3</h5>
<div class="outline-text-5" id="text-h-6d367bd6-bb5c-469c-bfd7-145ef0ecd6d9">
<p>
The same variable as above is also available for GTK3.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"on"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>""</code></li>
<li><code>""</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>""</code></dd>
<dt>Supports</dt><dd></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd>~~</dd>
<dt>off</dt><dd>~~</dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh">
</pre>
</div>
<dl class="org-dl">
<dt>Default value</dt><dd><code>""</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>""</code></li>
<li><code>""</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>""</code></dd>
<dt>Supports</dt><dd></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd>~~</dd>
<dt>off</dt><dd>~~</dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh">
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="outline-container-h-d7f87860-5c1d-427b-9d2e-f7674d9fbab5" class="outline-3">
<h3 id="h-d7f87860-5c1d-427b-9d2e-f7674d9fbab5"><span class="section-number-3">3.2</span> Hardware</h3>
<div class="outline-text-3" id="text-h-d7f87860-5c1d-427b-9d2e-f7674d9fbab5">
</div>
<div id="outline-container-h-b2183b8b-de13-4812-a7da-9f2d4d66e42d" class="outline-4">
<h4 id="h-b2183b8b-de13-4812-a7da-9f2d4d66e42d"><span class="section-number-4">3.2.1</span> CPU</h4>
<div class="outline-text-4" id="text-h-b2183b8b-de13-4812-a7da-9f2d4d66e42d">
</div>
<div id="outline-container-h-7300f2bb-e8d2-4ede-8765-a6e8883af99e" class="outline-5">
<h5 id="h-7300f2bb-e8d2-4ede-8765-a6e8883af99e"><span class="section-number-5">3.2.1.1</span> CPU brand</h5>
<div class="outline-text-5" id="text-h-7300f2bb-e8d2-4ede-8765-a6e8883af99e">
<p>
With this variables, it is possible to show or hide the brand of a CPU in
the <code>cpu</code> output.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"on"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--cpu_brand"</code></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>Intel i7-6500U</code></dd>
<dt>off</dt><dd><code>i7-6500U</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">cpu_brand</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-5cd70ef6-4ba3-45a3-a46e-ec2d5b76d36a" class="outline-5">
<h5 id="h-5cd70ef6-4ba3-45a3-a46e-ec2d5b76d36a"><span class="section-number-5">3.2.1.2</span> CPU speed</h5>
<div class="outline-text-5" id="text-h-5cd70ef6-4ba3-45a3-a46e-ec2d5b76d36a">
<p>
With this variable, it is possible to show or hide the speed of the CPU.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"on"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--cpu_speed"</code></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>Intel i7-6500U (4) @ 3.1GHz</code></dd>
<dt>off</dt><dd><code>Intel i7-6500U (4)</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">cpu_speed</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-61affc64-b69d-44f2-b950-1623cd908b6a" class="outline-5">
<h5 id="h-61affc64-b69d-44f2-b950-1623cd908b6a"><span class="section-number-5">3.2.1.3</span> CPU speed type</h5>
<div class="outline-text-5" id="text-h-61affc64-b69d-44f2-b950-1623cd908b6a">
<p>
This allows Neofetch to know what type of speed it has to fetch regarding
the machines CPU. Any file in <code>/sys/devices/system/cpu/cpu0/cpufreq</code> can
be used as a value.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"bios_limit"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"scaling_cur_freq"</code></li>
<li><code>"scaling_min_freq"</code></li>
<li><code>"scaling_max_freq"</code></li>
<li><code>"bios_limit"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--speed_type"</code></dd>
<dt>Supports</dt><dd>Linux with <code>cpufreq</code></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">speed_type</span>=<span style="color: #7bc275;">"bios_limit"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-6138e3bd-937f-4604-b2c0-db0a49b869bc" class="outline-5">
<h5 id="h-6138e3bd-937f-4604-b2c0-db0a49b869bc"><span class="section-number-5">3.2.1.4</span> CPU speed shorthand</h5>
<div class="outline-text-5" id="text-h-6138e3bd-937f-4604-b2c0-db0a49b869bc">
<p>
This value allows to show sorter CPU speed with less digits. This flag is
not supported in systems with CPU speed below 1GHz.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"off"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"on"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--speed_shorthand"</code></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>i7-6500U (4) @ 3.1GHz</code></dd>
<dt>off</dt><dd><code>i7-6500U (4) @ 3.100GHz</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">speed_shorthand</span>=<span style="color: #7bc275;">"on"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-eea09747-5334-49af-aef3-1a29f59ea40e" class="outline-5">
<h5 id="h-eea09747-5334-49af-aef3-1a29f59ea40e"><span class="section-number-5">3.2.1.5</span> CPU cores</h5>
<div class="outline-text-5" id="text-h-eea09747-5334-49af-aef3-1a29f59ea40e">
<p>
With this variable, it is possible to display the number of cores that are
available in the CPU.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"logical"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"logical"</code></li>
<li><code>"physical"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--cpu_cores"</code></dd>
<dt>Supports</dt><dd><code>physical</code> does not work on BSD.</dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>logical</dt><dd><code>Intel i7-6500U (4) @ 3.1GHz</code> (All virtual cores)</dd>
<dt>physical</dt><dd><code>Intel i7-6500U (2) @ 3.1GHz</code> (All physical cores)</dd>
<dt>off</dt><dd><code>Intel i7-6500U @ 3.1GHz</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">cpu_cores</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-66633b86-2427-4079-9e62-e72b3d458a21" class="outline-5">
<h5 id="h-66633b86-2427-4079-9e62-e72b3d458a21"><span class="section-number-5">3.2.1.6</span> CPU temperature</h5>
<div class="outline-text-5" id="text-h-66633b86-2427-4079-9e62-e72b3d458a21">
<p>
This variable allows the user to hide or show the CPUs temperature, and if
shown, the user can display it in Celcius or Farenheit degrees. For FreeBSD
and NetBSD-based systems, youll need to enable the <code>coretemp</code> kernel
module. This only supports newer Intel processors.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"off"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"C"</code></li>
<li><code>"F"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--cpu_temp"</code></dd>
<dt>Supports</dt><dd>Linux, BSD</dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>C</dt><dd><code>Intel i7-6500U (4) @ 3.1GHz [27.2°C]</code></dd>
<dt>F</dt><dd><code>Intel i7-6500U (4) @ 3.1GHz [82.0°F]</code></dd>
<dt>off</dt><dd><code>Intel i7-6500U (4) @ 3.1GHz</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">cpu_temp</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-h-6138e3bd-937f-4604-b2c0-db0a49b869bc" class="outline-4">
<h4 id="h-6138e3bd-937f-4604-b2c0-db0a49b869bc"><span class="section-number-4">3.2.2</span> GPU</h4>
<div class="outline-text-4" id="text-h-6138e3bd-937f-4604-b2c0-db0a49b869bc">
<p>
The function responsible for displaying information regarding the GPUs is
<code>gpu</code>. It will try to list all available GPUs and display what it knows
about them.
</p>
</div>
<div id="outline-container-h-d2a0a4dd-7dc4-4584-8093-ce417b4bb59b" class="outline-5">
<h5 id="h-d2a0a4dd-7dc4-4584-8093-ce417b4bb59b"><span class="section-number-5">3.2.2.1</span> GPU brand</h5>
<div class="outline-text-5" id="text-h-d2a0a4dd-7dc4-4584-8093-ce417b4bb59b">
<p>
This value allows the user to hide or show the brand of their GPU in the
output of <code>gpu</code>.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"on"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--gpu_brand"</code></dd>
<dt>Supports</dt><dd></dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>AMD HD 7950</code></dd>
<dt>off</dt><dd><code>HD 7950</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">gpu_brand</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-h-4309d902-fc80-48c9-be89-02b932d1f650" class="outline-5">
<h5 id="h-4309d902-fc80-48c9-be89-02b932d1f650"><span class="section-number-5">3.2.2.2</span> Which GPU to display</h5>
<div class="outline-text-5" id="text-h-4309d902-fc80-48c9-be89-02b932d1f650">
<p>
This allows the user to choose which GPU appears in the output of the
function <code>gpu</code>.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"all"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"all"</code></li>
<li><code>"dedicated"</code></li>
<li><code>"integrated"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--gpu_type"</code></dd>
<dt>Supports</dt><dd>Linux</dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>all</dt><dd></dd>
<dt>dedicated</dt><dd><code>GPU1: AMD HD 7950</code></dd>
<dt>integrated</dt><dd><code>GPU1: Intel Integrated Graphics</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">gpu_type</span>=<span style="color: #7bc275;">"all"</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-h-9803fa70-bf09-400a-800f-071de9f2d91d" class="outline-4">
<h4 id="h-9803fa70-bf09-400a-800f-071de9f2d91d"><span class="section-number-4">3.2.3</span> Resolution</h4>
<div class="outline-text-4" id="text-h-9803fa70-bf09-400a-800f-071de9f2d91d">
<p>
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.
</p>
<dl class="org-dl">
<dt>Default value</dt><dd><code>"off"</code></dd>
<dt>Values</dt><dd><ul class="org-ul">
<li><code>"on"</code></li>
<li><code>"off"</code></li>
</ul></dd>
<dt>Flag</dt><dd><code>"--refresh_rate"</code></dd>
<dt>Supports</dt><dd>Does not work on Windows</dd>
<dt>Examples</dt><dd><dl class="org-dl">
<dt>on</dt><dd><code>1920x1080 @ 60Hz</code></dd>
<dt>off</dt><dd><code>1920x1080</code></dd>
</dl></dd>
</dl>
<div class="org-src-container">
<pre class="src src-sh"><span style="color: #DFDFDF;">refresh_rate</span>=<span style="color: #7bc275;">"off"</span>
</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Lucien Cartier-Tilet</p>
<p class="email">Email: <a href="mailto:lucien@phundrak.com">lucien@phundrak.com</a></p>
<p class="date">Created: 2020-04-21 mar. 15:02</p>
</div>
</body>
</html>