literate-dotfiles/docs/polybar.html
2022-05-09 10:05:23 +02:00

1218 lines
71 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<!-- 2022-05-09 lun. 10:04 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Polybar Configuration</title>
<meta name="author" content="Dehaeze Thomas" />
<meta name="generator" content="Org Mode" />
<link rel="stylesheet" type="text/css" href="./dist/style.css"/>
<script type="text/javascript" src="./dist/script.js"></script>
</head>
<body>
<div id="org-div-home-and-up">
<a accesskey="h" href="./index.html"> UP </a>
|
<a accesskey="H" href="./index.html"> HOME </a>
</div><div id="content" class="content">
<h1 class="title">Polybar Configuration</h1>
<div id="table-of-contents" role="doc-toc">
<h2>Table of Contents</h2>
<div id="text-table-of-contents" role="doc-toc">
<ul>
<li><a href="#org23093f7">Colors</a></li>
<li><a href="#org3a3f201">VM</a></li>
<li><a href="#org56f016e">Top Bar</a></li>
<li><a href="#org28d0433">Show Windows Title</a></li>
<li><a href="#org1bb1329">I3 - Information about workspaces and active one</a></li>
<li><a href="#org57e5512">Music using MPD</a></li>
<li><a href="#orgf3bb2b1">Backlight level</a></li>
<li><a href="#org4814b45">CPU Usage</a></li>
<li><a href="#orge0fd380">Date</a></li>
<li><a href="#org5d661e1">Sound Volume</a></li>
<li><a href="#orgd5b3549">Battery</a></li>
<li><a href="#org01f6889">Temperature</a></li>
<li><a href="#org0395cfb">Unread Mails</a>
<ul>
<li><a href="#org7fbba5b">Unread Mail Scripts</a></li>
<li><a href="#org9132e45">Refresh Mail Scripts</a></li>
<li><a href="#org7b20227">Open Mails</a></li>
</ul>
</li>
<li><a href="#org65e9a41">Unread News</a>
<ul>
<li><a href="#orgc131299">Unread News Scripts</a></li>
<li><a href="#orgfc9c44a">Refresh News Scripts</a></li>
<li><a href="#org4009ff1">Open Newsboat</a></li>
</ul>
</li>
<li><a href="#org7319ad8">Calendar</a>
<ul>
<li><a href="#org5aef96a">Calendar Status Scripts</a></li>
<li><a href="#org91bad30">Open Calendar</a></li>
</ul>
</li>
<li><a href="#org311e763">Redshift</a>
<ul>
<li><a href="#orgda54f98">Redshift - Status</a></li>
<li><a href="#org4307668">Toggle Redshift</a></li>
</ul>
</li>
<li><a href="#org039d261">Packages</a>
<ul>
<li><a href="#orgfe0acea">Packages Status script</a></li>
<li><a href="#org0793482">Refresh New Packages script</a></li>
<li><a href="#orgd9a1739">Packages Update</a></li>
</ul>
</li>
<li><a href="#orgd69c0e2">Dunst</a>
<ul>
<li><a href="#org5a99d64">Dunst Status script</a></li>
<li><a href="#org3cefd8c">Dunst Toggle</a></li>
</ul>
</li>
<li><a href="#org6cab217">Lock Screen</a>
<ul>
<li><a href="#orgc187ea1">Lock screen Status script</a></li>
<li><a href="#org4bf0e14">Toggle Automatic Lock Screen</a></li>
</ul>
</li>
<li><a href="#org36340a9">Network</a>
<ul>
<li><a href="#orgc70de40">Run Network Manager</a></li>
<li><a href="#orgeb3e621">Toggle Wifi or Ethernet</a></li>
</ul>
</li>
<li><a href="#org5b4ce07">Bluetooth</a>
<ul>
<li><a href="#orgee442d6"><code>bluetooth-run.sh</code> - Bluetooth Run Manager</a></li>
<li><a href="#orgf3d5b30"><code>bluetooth-status.sh</code> - Bluetooth Connection Status</a></li>
<li><a href="#orgc2b2e0a"><code>bluetooth-toggle.sh</code> - Toggle Bluetooth Connection</a></li>
</ul>
</li>
<li><a href="#orgb29849d">NordVPN</a>
<ul>
<li><a href="#org836d582">Nordvpn Status script</a></li>
<li><a href="#orgf7e77c5">Nordvpn Toggle</a></li>
</ul>
</li>
<li><a href="#org26a9227">High cursor</a>
<ul>
<li><a href="#orgad6a518">Cursor - Status</a></li>
<li><a href="#orgc14dd88">Toggle Cursor</a></li>
</ul>
</li>
<li><a href="#orgb3fc699">Mounted Drives</a>
<ul>
<li><a href="#org324f63f">Drive - Status</a></li>
</ul>
</li>
<li><a href="#orgedf2999">Screenshot</a></li>
</ul>
</div>
</div>
<div id="outline-container-org23093f7" class="outline-2">
<h2 id="org23093f7">Colors</h2>
<div class="outline-text-2" id="text-org23093f7">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">colors</span>]
<span class="org-variable-name">bg</span> = ${xrdb:background}
<span class="org-variable-name">red</span> = ${xrdb:color1}
<span class="org-variable-name">green</span> = ${xrdb:color2}
<span class="org-variable-name">yellow</span> = ${xrdb:color3}
<span class="org-variable-name">blue</span> = ${xrdb:color4}
<span class="org-variable-name">purple</span> = ${xrdb:color5}
<span class="org-variable-name">aqua</span> = ${xrdb:color6}
<span class="org-variable-name">gray</span> = ${colors.color7}
<span class="org-variable-name">darkgray</span> = ${colors.color8}
<span class="org-variable-name">darkred</span> = ${xrdb:color9}
<span class="org-variable-name">darkgreen</span> = ${xrdb:color10}
<span class="org-variable-name">darkyellow</span> = ${xrdb:color11}
<span class="org-variable-name">darkblue</span> = ${xrdb:color12}
<span class="org-variable-name">darkpurple</span> = ${xrdb:color13}
<span class="org-variable-name">darkaqua</span> = ${xrdb:color14}
<span class="org-variable-name">fg</span> = ${xrdb:foreground}
</pre>
</div>
</div>
</div>
<div id="outline-container-org3a3f201" class="outline-2">
<h2 id="org3a3f201">VM</h2>
<div class="outline-text-2" id="text-org3a3f201">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">global/wm</span>]
<span class="org-variable-name">margin-top</span> = <span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">margin-bottom</span> = <span class="org-highlight-numbers-number">0</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org56f016e" class="outline-2">
<h2 id="org56f016e">Top Bar</h2>
<div class="outline-text-2" id="text-org56f016e">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">bar/top</span>]
<span class="org-variable-name">enable-ipc</span> = true
<span class="org-comment-delimiter"># </span><span class="org-comment">override-redirect = false</span>
<span class="org-variable-name">bottom</span> = false
<span class="org-variable-name">fixed-center</span> = false
<span class="org-variable-name">width</span> = 100%
<span class="org-variable-name">height</span> = <span class="org-highlight-numbers-number">27</span>
<span class="org-variable-name">radius</span> = <span class="org-highlight-numbers-number">0.0</span>
<span class="org-variable-name">background</span> = ${colors.bg}
<span class="org-variable-name">foreground</span> = ${colors.fg}
<span class="org-variable-name">line-size</span> = <span class="org-highlight-numbers-number">2</span>
<span class="org-variable-name">border-size</span> = <span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">padding-left</span> = <span class="org-highlight-numbers-number">2</span>
<span class="org-variable-name">padding-right</span> = <span class="org-highlight-numbers-number">12</span>
<span class="org-variable-name">module-margin-left</span> = <span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">module-margin-right</span> = <span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">font-0</span> = Hack Nerd Font:style=Regular:pixelsize=<span class="org-highlight-numbers-number">10</span>;<span class="org-highlight-numbers-number">1</span>
<span class="org-variable-name">font-1</span> = unifont:fontformat=truetype:size=<span class="org-highlight-numbers-number">8</span>:antialias=false;<span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">modules-left</span> = i3 xwindow
<span class="org-variable-name">modules-center</span> =
<span class="org-variable-name">modules-right</span> = pulseaudio drive_monochromator drive_tmp drive_homelab drive_groupshare drive_data_id21 drive_unix_home dunst cursor unread_mail calendar battery date
<span class="org-comment-delimiter"># </span><span class="org-comment">wm-restack = i3</span>
<span class="org-variable-name">tray-position</span> = right
<span class="org-variable-name">tray-detached</span> = true
<span class="org-variable-name">tray-padding</span> = <span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">tray-background</span> = ${colors.bg}
</pre>
</div>
</div>
</div>
<div id="outline-container-org28d0433" class="outline-2">
<h2 id="org28d0433">Show Windows Title</h2>
<div class="outline-text-2" id="text-org28d0433">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/xwindow</span>]
<span class="org-variable-name">type</span> = internal/xwindow
<span class="org-variable-name">label</span> = %title:<span class="org-highlight-numbers-number">0</span>:<span class="org-highlight-numbers-number">30</span>:...%
</pre>
</div>
</div>
</div>
<div id="outline-container-org1bb1329" class="outline-2">
<h2 id="org1bb1329">I3 - Information about workspaces and active one</h2>
<div class="outline-text-2" id="text-org1bb1329">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/i3</span>]
<span class="org-variable-name">type</span> = internal/i3
<span class="org-variable-name">enable-scroll</span> = false
<span class="org-variable-name">wrapping-scroll</span> = false
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">format</span> = &lt;label-state&gt; &lt;label-mode&gt;
<span class="org-variable-name">index-sort</span> = true
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf"><span class="org-variable-name">label-mode-foreground</span> = ${colors.bg}
<span class="org-variable-name">label-mode-background</span> = ${colors.fg}
<span class="org-variable-name">label-mode-padding</span> = <span class="org-highlight-numbers-number">1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">focused = Active workspace on focused monitor</span>
<span class="org-variable-name">label-focused</span> = %icon% %index%
<span class="org-variable-name">label-focused-foreground</span> = ${colors.fg}
<span class="org-variable-name">label-focused-background</span> = ${colors.bg}
<span class="org-variable-name">label-focused-underline</span> = ${colors.aqua}
<span class="org-variable-name">label-focused-padding</span> = <span class="org-highlight-numbers-number">1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">unfocused = Inactive workspace on any monitor</span>
<span class="org-variable-name">label-unfocused</span> = %icon% %index%
<span class="org-variable-name">label-unfocused-foreground</span> = ${colors.fg}
<span class="org-variable-name">label-unfocused-background</span> = ${colors.bg}
<span class="org-variable-name">label-unfocused-underline</span> = ${colors.bg}
<span class="org-variable-name">label-unfocused-padding</span> = <span class="org-highlight-numbers-number">1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">visible = Active workspace on unfocused monitor</span>
<span class="org-variable-name">label-visible</span> = %icon% %index%
<span class="org-variable-name">label-visible-background</span> = ${colors.bg}
<span class="org-variable-name">label-visible-underline</span> = ${colors.aqua}
<span class="org-variable-name">label-visible-padding</span> = <span class="org-highlight-numbers-number">1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">urgent = Workspace with urgency hint set</span>
<span class="org-variable-name">label-urgent</span> = %icon% %index%
<span class="org-variable-name">label-urgent-background</span> = ${colors.red}
<span class="org-variable-name">label-urgent-padding</span> = <span class="org-highlight-numbers-number">1</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org57e5512" class="outline-2">
<h2 id="org57e5512">Music using MPD</h2>
<div class="outline-text-2" id="text-org57e5512">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/mpd</span>]
<span class="org-variable-name">type</span> = internal/mpd
<span class="org-variable-name">format-online</span> = &lt;icon-prev&gt; &lt;toggle&gt; &lt;icon-next&gt; %{A1:$TERMINAL -e ncmpcpp &amp;:}&lt;label-song&gt;%{A}
<span class="org-variable-name">format-online-spacing</span> = <span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">format-online-padding</span> = <span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">label-offline</span> = mpd is offline
<span class="org-variable-name">format-offline</span> = &lt;label-offline&gt;
<span class="org-variable-name">format-offline-foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">777</span>
<span class="org-variable-name">label-song</span> = %artist% - %title%
<span class="org-variable-name">label-song-maxlen</span> = <span class="org-highlight-numbers-number">30</span>
<span class="org-variable-name">label-song-ellipsis</span> = true
<span class="org-variable-name">icon-prev</span> = &#63914;
<span class="org-variable-name">icon-stop</span> = &#63962;
<span class="org-variable-name">icon-play</span> = &#63753;
<span class="org-variable-name">icon-pause</span> = &#63715;
<span class="org-variable-name">icon-next</span> = &#63915;
<span class="org-variable-name">icon-random</span> = &#63902;
<span class="org-variable-name">icon-repeat</span> = &#63829;
<span class="org-comment-delimiter"># </span><span class="org-comment">Used to display the state of random/repeat/repeatone/single</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Only applies if &lt;icon-[random|repeat|repeatone|single]&gt; is used</span>
<span class="org-variable-name">toggle-on-foreground</span> = ${colors.fg}
<span class="org-variable-name">toggle-off-foreground</span> = ${colors.gray}
<span class="org-variable-name">bar-progress-width</span> = <span class="org-highlight-numbers-number">15</span>
<span class="org-variable-name">bar-progress-indicator</span> = |
<span class="org-variable-name">bar-progress-fill</span> = &#9472;
<span class="org-variable-name">bar-progress-empty</span> = &#9472;
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf3bb2b1" class="outline-2">
<h2 id="orgf3bb2b1">Backlight level</h2>
<div class="outline-text-2" id="text-orgf3bb2b1">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/xbacklight</span>]
<span class="org-variable-name">type</span> = internal/xbacklight
<span class="org-variable-name">format</span> = &lt;ramp&gt;
<span class="org-variable-name">ramp-0</span> = &#58312;
<span class="org-variable-name">ramp-1</span> = &#58313;
<span class="org-variable-name">ramp-2</span> = &#58314;
<span class="org-variable-name">ramp-3</span> = &#58315;
<span class="org-variable-name">ramp-4</span> = &#58316;
<span class="org-variable-name">ramp-5</span> = &#58317;
<span class="org-variable-name">ramp-6</span> = &#58319;
<span class="org-variable-name">ramp-7</span> = &#58320;
<span class="org-variable-name">ramp-8</span> = &#58321;
<span class="org-variable-name">ramp-9</span> = &#58322;
<span class="org-variable-name">ramp-10</span> = &#58323;
<span class="org-variable-name">ramp-11</span> = &#58324;
</pre>
</div>
</div>
</div>
<div id="outline-container-org4814b45" class="outline-2">
<h2 id="org4814b45">CPU Usage</h2>
<div class="outline-text-2" id="text-org4814b45">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/cpu</span>]
<span class="org-variable-name">type</span> = internal/cpu
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
<span class="org-variable-name">format-prefix-foreground</span> = ${colors.fg}
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">label</span> = %{A1:$TERMINAL -e htop &amp;:}&#64281; %percentage:2%%%{A}
</pre>
</div>
</div>
</div>
<div id="outline-container-orge0fd380" class="outline-2">
<h2 id="orge0fd380">Date</h2>
<div class="outline-text-2" id="text-orge0fd380">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/date</span>]
<span class="org-variable-name">type</span> = internal/date
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">1</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Open google calendar on left right</span>
<span class="org-variable-name">date</span> = %{A1:$TERMINAL --title khal -e ikhal &amp;:}&#62549; %d-%m%{A}
<span class="org-variable-name">date-alt</span> = <span class="org-string">"%{A1:$TERMINAL --title khal -e ikhal &amp;:}&#62549; %d-%m-%Y%{A}"</span>
<span class="org-variable-name">time</span> = &#58251; %H:%M
<span class="org-variable-name">time-alt</span> = &#58251; %H:%M:%S
<span class="org-variable-name">label</span> = %date% %time%
</pre>
</div>
</div>
</div>
<div id="outline-container-org5d661e1" class="outline-2">
<h2 id="org5d661e1">Sound Volume</h2>
<div class="outline-text-2" id="text-org5d661e1">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/pulseaudio</span>]
<span class="org-variable-name">type</span> = internal/pulseaudio
<span class="org-variable-name">sink</span> = alsa_output.pci-0000_00_1f.3-platform-sof_sdw.HiFi__hw_sofsoundwire_2__sink
<span class="org-comment-delimiter"># </span><span class="org-comment">Open pavucontrol on left right</span>
<span class="org-variable-name">format-volume</span> =%{A1:pavucontrol &amp;:}&lt;label-volume&gt; &lt;bar-volume&gt;%{A}
<span class="org-variable-name">label-volume</span> = %percentage%%
<span class="org-variable-name">label-volume-foreground</span> = ${root.foreground}
<span class="org-variable-name">label-muted</span> = &#64605; muted
<span class="org-variable-name">bar-volume-width</span> = <span class="org-highlight-numbers-number">10</span>
<span class="org-variable-name">bar-volume-foreground-0</span> = ${colors.green}
<span class="org-variable-name">bar-volume-foreground-1</span> = ${colors.green}
<span class="org-variable-name">bar-volume-foreground-2</span> = ${colors.blue}
<span class="org-variable-name">bar-volume-foreground-3</span> = ${colors.blue}
<span class="org-variable-name">bar-volume-foreground-4</span> = ${colors.red}
<span class="org-variable-name">bar-volume-foreground-5</span> = ${colors.red}
<span class="org-variable-name">bar-volume-foreground-6</span> = ${colors.red}
<span class="org-variable-name">bar-volume-gradient</span> = false
<span class="org-variable-name">bar-volume-indicator</span> = |
<span class="org-variable-name">bar-volume-indicator-font</span> = <span class="org-highlight-numbers-number">2</span>
<span class="org-variable-name">bar-volume-fill</span> = &#9472;
<span class="org-variable-name">bar-volume-fill-font</span> = <span class="org-highlight-numbers-number">2</span>
<span class="org-variable-name">bar-volume-empty</span> = &#9472;
<span class="org-variable-name">bar-volume-empty-font</span> = <span class="org-highlight-numbers-number">2</span>
<span class="org-variable-name">bar-volume-empty-foreground</span> = ${colors.fg}
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd5b3549" class="outline-2">
<h2 id="orgd5b3549">Battery</h2>
<div class="outline-text-2" id="text-orgd5b3549">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/battery</span>]
<span class="org-variable-name">type</span> = internal/battery
<span class="org-variable-name">battery</span> = BAT0
<span class="org-variable-name">adapter</span> = AC
<span class="org-variable-name">full-at</span> = <span class="org-highlight-numbers-number">95</span>
<span class="org-variable-name">format-charging</span> = %{A1:xfce4-power-manager-settings &amp;:}&lt;ramp-capacity&gt; &lt;label-charging&gt;%{A}
<span class="org-variable-name">format-charging-underline</span> = ${colors.blue}
<span class="org-variable-name">format-discharging</span> = %{A1:xfce4-power-manager-settings &amp;:}&lt;ramp-capacity&gt; &lt;label-discharging&gt;%{A}
<span class="org-variable-name">format-discharging-underline</span> = ${colors.red}
<span class="org-variable-name">label-full</span> = %{A1:xfce4-power-manager-settings &amp;:}&#62016; %{A}
<span class="org-variable-name">format-full-underline</span> = ${colors.bg}
<span class="org-variable-name">ramp-capacity-0</span> = &#62020;
<span class="org-variable-name">ramp-capacity-1</span> = &#62019;
<span class="org-variable-name">ramp-capacity-2</span> = &#62018;
<span class="org-variable-name">ramp-capacity-3</span> = &#62017;
<span class="org-variable-name">ramp-capacity-4</span> = &#62016;
</pre>
</div>
</div>
</div>
<div id="outline-container-org01f6889" class="outline-2">
<h2 id="org01f6889">Temperature</h2>
<div class="outline-text-2" id="text-org01f6889">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/temperature</span>]
<span class="org-variable-name">type</span> = internal/temperature
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
<span class="org-variable-name">thermal-zone</span> = <span class="org-highlight-numbers-number">0</span>
<span class="org-variable-name">base-temperature</span> = <span class="org-highlight-numbers-number">50</span>
<span class="org-variable-name">warn-temperature</span> = <span class="org-highlight-numbers-number">80</span>
<span class="org-variable-name">hwmon-path</span> = /sys/class/thermal/thermal_zone10/temp
<span class="org-variable-name">units</span> = false
<span class="org-variable-name">format</span> = %{A1:$TERMINAL --title=<span class="org-string">"Sensors"</span> -e watch sensors &amp;:}&lt;ramp&gt; &lt;label&gt;%{A}
<span class="org-variable-name">format-warn</span> = &lt;ramp&gt; &lt;label-warn&gt;
<span class="org-variable-name">label</span> = %temperature-c%&#176;C
<span class="org-variable-name">label-warn</span> = %temperature-c%&#176;C
<span class="org-variable-name">label-warn-foreground</span> = ${colors.fg}
<span class="org-variable-name">format-warn-underline</span> = ${colors.red}
<span class="org-variable-name">ramp-0</span> = &#62155;
<span class="org-variable-name">ramp-1</span> = &#62154;
<span class="org-variable-name">ramp-2</span> = &#62153;
<span class="org-variable-name">ramp-3</span> = &#62152;
<span class="org-variable-name">ramp-4</span> = &#62151;
<span class="org-variable-name">ramp-foreground</span> = ${colors.fg}
</pre>
</div>
</div>
</div>
<div id="outline-container-org0395cfb" class="outline-2">
<h2 id="org0395cfb">Unread Mails</h2>
<div class="outline-text-2" id="text-org0395cfb">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/unread_mail</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/mail-open.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">click-right</span> = ~/.config/polybar/scripts/mail-refresh.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/mail-status.sh
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
</pre>
</div>
</div>
<div id="outline-container-org7fbba5b" class="outline-3">
<h3 id="org7fbba5b">Unread Mail Scripts</h3>
<div class="outline-text-3" id="text-org7fbba5b">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">mail_nb</span>=<span class="org-sh-quoted-exec">`du -a ~/.mail/*/Inbox/new/* 2&gt;/dev/null | wc -l`</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">mail_nb</span></span><span class="org-string">"</span> -eq <span class="org-string">"0"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"&#63215;"</span>;
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"%{F#859900}&#63215; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">mail_nb</span></span><span class="org-string">%{F-}"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org9132e45" class="outline-3">
<h3 id="org9132e45">Refresh Mail Scripts</h3>
<div class="outline-text-3" id="text-org9132e45">
<div class="org-src-container">
<pre class="src src-bash">notify-send --hint=string:x-dunst-stack-tag:YpqAgorv <span class="org-string">"Mails &#62511;"</span> <span class="org-string">"Syncing..."</span>;
checkmail -q &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-variable-name">mail_nb</span>=<span class="org-sh-quoted-exec">`du -a ~/.mail/*/Inbox/new/* 2&gt;/dev/null | wc -l`</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">mail_nb</span></span><span class="org-string">"</span> -eq <span class="org-string">"0"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
notify-send --hint=string:x-dunst-stack-tag:YpqAgorv <span class="org-string">"Mails &#62511;"</span> <span class="org-string">"No new mail"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org7b20227" class="outline-3">
<h3 id="org7b20227">Open Mails</h3>
<div class="outline-text-3" id="text-org7b20227">
<div class="org-src-container">
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e tmux new-session -A -s neomutt neomutt
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org65e9a41" class="outline-2">
<h2 id="org65e9a41">Unread News</h2>
<div class="outline-text-2" id="text-org65e9a41">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/unread_news</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/news-open.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">click-right</span> = ~/.config/polybar/scripts/news-refresh.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/news-status.sh
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">60</span>
</pre>
</div>
</div>
<div id="outline-container-orgc131299" class="outline-3">
<h3 id="orgc131299">Unread News Scripts</h3>
<div class="outline-text-3" id="text-orgc131299">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">news_nb</span>=<span class="org-sh-quoted-exec">`newsboat -x print-unread 2&gt;/dev/null | cut -d " " -f1`</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">news_nb</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span> || <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">news_nb</span></span><span class="org-string">"</span> -eq <span class="org-string">"0"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"&#61930;"</span>;
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"%{F#859900}&#61930; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">news_nb</span></span><span class="org-string">%{F-}"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgfc9c44a" class="outline-3">
<h3 id="orgfc9c44a">Refresh News Scripts</h3>
<div class="outline-text-3" id="text-orgfc9c44a">
<div class="org-src-container">
<pre class="src src-bash">notify-send --hint=string:x-dunst-stack-tag:4z5CvV6G <span class="org-string">"Newsboat &#61763;"</span> <span class="org-string">"Reloading..."</span>;
<span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"newsboat"</span> &gt;/dev/null; <span class="org-keyword">then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">If newsboat is already running, try to refresh in the tmux session</span>
tmux send-keys -t newsboat R
<span class="org-keyword">else</span>
newsboat -x reload &amp;&amp; /
<span class="org-variable-name">news_nb</span>=<span class="org-sh-quoted-exec">`newsboat -x print-unread | cut -d " " -f1`</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:4z5CvV6G <span class="org-string">"Newsboat &#61763;"</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">news_nb</span></span><span class="org-string"> Unread News"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org4009ff1" class="outline-3">
<h3 id="org4009ff1">Open Newsboat</h3>
<div class="outline-text-3" id="text-org4009ff1">
<div class="org-src-container">
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e tmux new-session -A -s newsboat newsboat
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org7319ad8" class="outline-2">
<h2 id="org7319ad8">Calendar</h2>
<div class="outline-text-2" id="text-org7319ad8">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/calendar</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/calendar-open.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/calendar-status.sh
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">5</span>
</pre>
</div>
</div>
<div id="outline-container-org5aef96a" class="outline-3">
<h3 id="org5aef96a">Calendar Status Scripts</h3>
<div class="outline-text-3" id="text-org5aef96a">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">next_events</span>=<span class="org-sh-quoted-exec">$</span><span class="org-sh-quoted-exec"><span class="org-rainbow-delimiters-depth-1">(</span></span><span class="org-sh-quoted-exec">khal list </span><span class="org-string"><span class="org-sh-quoted-exec">"$(</span></span><span class="org-sh-quoted-exec">date</span><span class="org-string"><span class="org-sh-quoted-exec"> +"%H:%M")</span></span><span class="org-string">"</span> 23:59 --format <span class="org-string">"{start-time} - {title}"</span> -df <span class="org-string">'SKIPME'</span> | <span class="org-type">grep</span> -v <span class="org-string">'SKIPME'</span> | <span class="org-type">grep</span> -v <span class="org-string">'No events'</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-variable-name">cal_icon</span>=<span class="org-string">"&#62549;"</span>
<span class="org-variable-name">cal_nb</span>=<span class="org-string">""</span>
<span class="org-variable-name">cal_desc</span>=<span class="org-string">""</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -n <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">next_events</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">events_number</span>=<span class="org-string">"</span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">next_events</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | wc -l)</span></span><span class="org-string">"</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">events_number</span></span><span class="org-string">"</span> -gt <span class="org-string">"1"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-variable-name">cal_nb</span>=<span class="org-string">" (</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">events_number</span></span><span class="org-string">)"</span>
<span class="org-keyword">fi</span>
<span class="org-variable-name">next_timed_events</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">next_events</span></span><span class="org-string">"</span> | sed -e <span class="org-string">'/^[^0-9]/d'</span><span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">next_timed_events</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-comment-delimiter"># </span><span class="org-comment">Only full day events</span>
<span class="org-variable-name">cal_desc</span>=<span class="org-string">" </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">next_events</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | sed -e '/^[0-9]/d;s/^ - //' | head -n 1 | cut -c 1-15)</span></span><span class="org-string">"</span>
<span class="org-keyword">else</span>
<span class="org-variable-name">cal_desc</span>=<span class="org-string">" </span><span class="org-string"><span class="org-sh-quoted-exec">$(</span></span><span class="org-sh-quoted-exec">echo</span><span class="org-string"><span class="org-sh-quoted-exec"> "</span></span><span class="org-string"><span class="org-constant"><span class="org-sh-quoted-exec">$</span></span></span><span class="org-string"><span class="org-variable-name"><span class="org-sh-quoted-exec">next_timed_events</span></span></span><span class="org-string"><span class="org-sh-quoted-exec">" | head -n 1 | cut -c 1-20)</span></span><span class="org-string">"</span>
<span class="org-keyword">fi</span>
<span class="org-keyword">fi</span>
<span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{cal_icon}</span></span><span class="org-string">${cal_nb}</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">{cal_desc}</span></span><span class="org-string">"</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org91bad30" class="outline-3">
<h3 id="org91bad30">Open Calendar</h3>
<div class="outline-text-3" id="text-org91bad30">
<div class="org-src-container">
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> --title=khal -e ikhal
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org311e763" class="outline-2">
<h2 id="org311e763">Redshift</h2>
<div class="outline-text-2" id="text-org311e763">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/redshift</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/redshift-toggle.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/redshift-status.sh
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
</pre>
</div>
</div>
<div id="outline-container-orgda54f98" class="outline-3">
<h3 id="orgda54f98">Redshift - Status</h3>
<div class="outline-text-3" id="text-orgda54f98">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"redshift"</span> &gt;/dev/null; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"&#64147;"</span>;
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"&#64167;"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org4307668" class="outline-3">
<h3 id="org4307668">Toggle Redshift</h3>
<div class="outline-text-3" id="text-org4307668">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"redshift"</span> &gt;/dev/null; <span class="org-keyword">then</span>
killall redshift &amp;&amp; <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:EKFLpst1 <span class="org-string">"Redshift &#64147;"</span> <span class="org-string">"Turned off"</span>;
<span class="org-keyword">else</span>
nohup redshift &gt; /dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp;
notify-send --hint=string:x-dunst-stack-tag:EKFLpst1 <span class="org-string">"Redshift &#64147;"</span> <span class="org-string">"Starting..."</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org039d261" class="outline-2">
<h2 id="org039d261">Packages</h2>
<div class="outline-text-2" id="text-org039d261">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/packages</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/packages-update.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">click-right</span> = ~/.config/polybar/scripts/packages-refresh.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/packages-status.sh
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">600</span>
</pre>
</div>
</div>
<div id="outline-container-orgfe0acea" class="outline-3">
<h3 id="orgfe0acea">Packages Status script</h3>
<div class="outline-text-3" id="text-orgfe0acea">
<div class="org-src-container">
<pre class="src src-bash">paru -Sy &gt; /dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-variable-name">package_nb</span>=<span class="org-sh-quoted-exec">`paru -Qu 2&gt; /dev/null | wc -l`</span> || <span class="org-sh-escaped-newline">\</span>
<span class="org-variable-name">package_nb</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">package_nb</span></span><span class="org-string">"</span> -eq <span class="org-string">"0"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"&#62211;"</span>;
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"%{F#859900}&#62211; </span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">package_nb</span></span><span class="org-string">%{F-}"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org0793482" class="outline-3">
<h3 id="org0793482">Refresh New Packages script</h3>
<div class="outline-text-3" id="text-org0793482">
<div class="org-src-container">
<pre class="src src-bash">notify-send --hint=string:x-dunst-stack-tag:SE5nDEVA <span class="org-string">'Packages &#62211;'</span> <span class="org-string">"Refreshing..."</span>
paru -Sy &gt; /dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-variable-name">package_nb</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">paru</span> -Qu <span class="org-highlight-numbers-number">2</span>&gt; /dev/null | wc -l<span class="org-rainbow-delimiters-depth-1">)</span> || <span class="org-sh-escaped-newline">\</span>
<span class="org-variable-name">package_nb</span>=<span class="org-highlight-numbers-number">0</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">package_nb</span></span><span class="org-string">"</span> -eq <span class="org-string">"0"</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
notify-send --hint=string:x-dunst-stack-tag:SE5nDEVA <span class="org-string">'Packages &#62211;'</span> <span class="org-string">"No upgrade available"</span>
<span class="org-keyword">else</span>
notify-send --hint=string:x-dunst-stack-tag:SE5nDEVA <span class="org-string">'Packages &#62211;'</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">package_nb</span></span><span class="org-string"> upgrade(s) available"</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgd9a1739" class="outline-3">
<h3 id="orgd9a1739">Packages Update</h3>
<div class="outline-text-3" id="text-orgd9a1739">
<div class="org-src-container">
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e paru
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgd69c0e2" class="outline-2">
<h2 id="orgd69c0e2">Dunst</h2>
<div class="outline-text-2" id="text-orgd69c0e2">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/dunst</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/dunst-toggle.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/dunst-status.sh
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
</pre>
</div>
</div>
<div id="outline-container-org5a99d64" class="outline-3">
<h3 id="org5a99d64">Dunst Status script</h3>
<div class="outline-text-3" id="text-org5a99d64">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=<span class="org-string">"/tmp/dunststatus"</span>;
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f $<span class="org-variable-name">tmpfile</span> <span class="org-rainbow-delimiters-depth-1">]</span>; <span class="org-keyword">then</span>
<span class="org-keyword">if</span> <span class="org-type">grep</span> -q <span class="org-string">"on"</span> $<span class="org-variable-name">tmpfile</span>; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"&#61683;"</span>;
<span class="org-keyword">elif</span> <span class="org-type">grep</span> -q <span class="org-string">"off"</span> $<span class="org-variable-name">tmpfile</span>; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"&#61942;"</span>;
<span class="org-keyword">fi</span>
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"&#61683;"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org3cefd8c" class="outline-3">
<h3 id="org3cefd8c">Dunst Toggle</h3>
<div class="outline-text-3" id="text-org3cefd8c">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=<span class="org-string">"/tmp/dunststatus"</span>;
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f $<span class="org-variable-name">tmpfile</span> <span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-type">grep</span> -q <span class="org-string">"off"</span> $<span class="org-variable-name">tmpfile</span> ; <span class="org-keyword">then</span>
killall -SIGUSR2 dunst &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-type">echo</span> <span class="org-string">"on"</span> &gt; $<span class="org-variable-name">tmpfile</span>;
notify-send --hint=string:x-dunst-stack-tag:KLJ63nVo <span class="org-string">"Notifications &#61683;"</span> <span class="org-string">"Activated"</span>;
<span class="org-keyword">else</span>
notify-send --hint=string:x-dunst-stack-tag:KLJ63nVo <span class="org-string">"Notifications &#61683;"</span> <span class="org-string">"Deactivated"</span>;
<span class="org-type">sleep</span> <span class="org-highlight-numbers-number">1</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
killall -SIGUSR1 dunst &amp;&amp; <span class="org-sh-escaped-newline">\</span>
<span class="org-type">echo</span> <span class="org-string">"off"</span> &gt; $<span class="org-variable-name">tmpfile</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org6cab217" class="outline-2">
<h2 id="org6cab217">Lock Screen</h2>
<div class="outline-text-2" id="text-org6cab217">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/lockscreen</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/lockscreen-toggle.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">click-right</span> = ~/.local/bin/lockscreen &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/lockscreen-status.sh
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
</pre>
</div>
</div>
<div id="outline-container-orgc187ea1" class="outline-3">
<h3 id="orgc187ea1">Lock screen Status script</h3>
<div class="outline-text-3" id="text-orgc187ea1">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"xautolock"</span> &gt;/dev/null
<span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"&#61475;"</span>;
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"&#61596;"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-org4bf0e14" class="outline-3">
<h3 id="org4bf0e14">Toggle Automatic Lock Screen</h3>
<div class="outline-text-3" id="text-org4bf0e14">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"xautolock"</span> &gt;/dev/null ; <span class="org-keyword">then</span>
<span class="org-type">pkill</span> xautolock &amp;&amp; <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:tH6bxvvv <span class="org-string">'Lock Screen &#61475;'</span> <span class="org-string">'Desactivated'</span>
<span class="org-keyword">else</span>
xautolock -locker <span class="org-string">"~/.local/bin/lockscreen"</span> -detectsleep -time <span class="org-highlight-numbers-number">30</span> -notify <span class="org-highlight-numbers-number">60</span> -notifier <span class="org-string">"notify-send -u --hint=string:x-dunst-stack-tag:tH6bxvvv critical -t 10000 -- 'Locking Screen' '60 seconds'"</span> &amp;
notify-send --hint=string:x-dunst-stack-tag:tH6bxvvv <span class="org-string">'Lock Screen &#61475;'</span> <span class="org-string">'Activated'</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org36340a9" class="outline-2">
<h2 id="org36340a9">Network</h2>
<div class="outline-text-2" id="text-org36340a9">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/wired-network</span>]
<span class="org-variable-name">type</span> = internal/network
<span class="org-variable-name">interface</span> = enp57s0u2u4u4
<span class="org-variable-name">label-connected</span> = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh &gt;/dev/null 2&gt;%1 &amp;:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh enp57s0u2u4u4 &gt;/dev/null 2&gt;%1 &amp;:}&#63231; %local_ip%%{A}%{A}
<span class="org-variable-name">label-connected-foreground</span> = ${colors.fg}
<span class="org-variable-name">label-disconnected</span> = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh &gt;/dev/null 2&gt;%1 &amp;:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh enp57s0u2u4u4 &gt;/dev/null 2&gt;%1 &amp;:}&#63231;%{A}%{A}
<span class="org-variable-name">label-disconnected-foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">777</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/wireless-network</span>]
<span class="org-variable-name">type</span> = internal/network
<span class="org-variable-name">interface</span> = wlp2s0
<span class="org-variable-name">format-connected</span> = &lt;label-connected&gt;
<span class="org-variable-name">format-disconnected</span> = &lt;label-disconnected&gt;
<span class="org-variable-name">label-connected</span> = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh &gt;/dev/null 2&gt;%1 &amp;:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh wlp2s0 &gt;/dev/null 2&gt;%1 &amp;:}&#64168; %essid%%{A}%{A}
<span class="org-variable-name">label-connected-foreground</span> = ${colors.fg}
<span class="org-variable-name">label-disconnected</span> = %{A3:bash ~/.config/polybar/scripts/connection-manager.sh &gt;/dev/null 2&gt;%1 &amp;:}%{A1:bash ~/.config/polybar/scripts/connection-toggle.sh wlp2s0 &gt;/dev/null 2&gt;%1 &amp;:}&#64168;%{A}%{A}
<span class="org-variable-name">label-disconnected-foreground</span> = <span class="org-comment-delimiter">#</span><span class="org-comment">777</span>
</pre>
</div>
</div>
<div id="outline-container-orgc70de40" class="outline-3">
<h3 id="orgc70de40">Run Network Manager</h3>
<div class="outline-text-3" id="text-orgc70de40">
<div class="org-src-container">
<pre class="src src-bash">$<span class="org-variable-name">TERMINAL</span> -e <span class="org-type">sudo</span> nmtui
</pre>
</div>
</div>
</div>
<div id="outline-container-orgeb3e621" class="outline-3">
<h3 id="orgeb3e621">Toggle Wifi or Ethernet</h3>
<div class="outline-text-3" id="text-orgeb3e621">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-comment-delimiter"># </span><span class="org-comment">Check if an argument is passed</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>
<span class="org-keyword">then</span>
<span class="org-keyword">exit</span> <span class="org-highlight-numbers-number">1</span>
<span class="org-keyword">fi</span>
<span class="org-variable-name">isdevicedown</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">nmcli</span> device status | <span class="org-type">grep</span> ^$<span class="org-highlight-numbers-number">1</span> | <span class="org-type">grep</span> disconnected<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">isdevicedown</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>
<span class="org-keyword">then</span>
notify-send --hint=string:x-dunst-stack-tag:EfjAHGgu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">"Disconnecting..."</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
nmcli device disconnect $<span class="org-highlight-numbers-number">1</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:EfjAHGgu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">"Disconnected"</span>
<span class="org-keyword">else</span>
notify-send --hint=string:x-dunst-stack-tag:EfjAHGgu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">"Connection..."</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
nmcli device connect $<span class="org-highlight-numbers-number">1</span> &amp;&amp; <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:EfjAHGgu <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">1</span></span><span class="org-string">"</span> <span class="org-string">"Connected"</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-org5b4ce07" class="outline-2">
<h2 id="org5b4ce07">Bluetooth</h2>
<div class="outline-text-2" id="text-org5b4ce07">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/bluetooth</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/bluetooth-toggle.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">click-right</span> = ~/.config/polybar/scripts/bluetooth-run.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/bluetooth-status.sh
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
</pre>
</div>
</div>
<div id="outline-container-orgee442d6" class="outline-3">
<h3 id="orgee442d6"><code>bluetooth-run.sh</code> - Bluetooth Run Manager</h3>
<div class="outline-text-3" id="text-orgee442d6">
<div class="org-src-container">
<pre class="src src-bash">blueman-manager &amp;&amp; <span class="org-type">pkill</span> blueman-applet
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf3d5b30" class="outline-3">
<h3 id="orgf3d5b30"><code>bluetooth-status.sh</code> - Bluetooth Connection Status</h3>
<div class="outline-text-3" id="text-orgf3d5b30">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">controllerid</span>=<span class="org-string">"9C:B6:D0:96:6E:C0"</span>
<span class="org-variable-name">isconnected</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">bluetoothctl</span> show $<span class="org-variable-name">controllerid</span> | <span class="org-type">grep</span> Powered | <span class="org-type">grep</span> yes<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">isconnected</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>
<span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"&#62897;"</span>
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"%{F#859900}&#62099;%{F-}"</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc2b2e0a" class="outline-3">
<h3 id="orgc2b2e0a"><code>bluetooth-toggle.sh</code> - Toggle Bluetooth Connection</h3>
<div class="outline-text-3" id="text-orgc2b2e0a">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">controllerid</span>=<span class="org-string">"9C:B6:D0:96:6E:C0"</span>
<span class="org-variable-name">isconnected</span>=$<span class="org-rainbow-delimiters-depth-1">(</span><span class="org-sh-quoted-exec">bluetoothctl</span> show $<span class="org-variable-name">controllerid</span> | <span class="org-type">grep</span> Powered | <span class="org-type">grep</span> yes<span class="org-rainbow-delimiters-depth-1">)</span>
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -z <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">isconnected</span></span><span class="org-string">"</span> <span class="org-rainbow-delimiters-depth-1">]</span>
<span class="org-keyword">then</span>
bluetoothctl power on &amp;&amp; <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:kidF4g53 <span class="org-string">"Bluetooth"</span> <span class="org-string">"Power ON"</span>
<span class="org-keyword">else</span>
bluetoothctl power off &amp;&amp; <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:kidF4g53 <span class="org-string">"Bluetooth"</span> <span class="org-string">"Power OFF"</span>
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgb29849d" class="outline-2">
<h2 id="orgb29849d">NordVPN</h2>
<div class="outline-text-2" id="text-orgb29849d">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/nordvpn</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.local/bin/nordvpn-toggle &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/nordvpn-status.sh
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
</pre>
</div>
</div>
<div id="outline-container-org836d582" class="outline-3">
<h3 id="org836d582">Nordvpn Status script</h3>
<div class="outline-text-3" id="text-org836d582">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-variable-name">tmpfile</span>=<span class="org-string">"/tmp/vpnstatus"</span>;
<span class="org-keyword">if</span> <span class="org-rainbow-delimiters-depth-1">[</span> -f $<span class="org-variable-name">tmpfile</span> <span class="org-rainbow-delimiters-depth-1">]</span> &amp;&amp; <span class="org-type">grep</span> -q <span class="org-string">"on"</span> $<span class="org-variable-name">tmpfile</span>; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"%{F#859900}&#63022;%{F-}"</span>;
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"&#63022;"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgf7e77c5" class="outline-3">
<h3 id="orgf7e77c5">Nordvpn Toggle</h3>
<div class="outline-text-3" id="text-orgf7e77c5">
<p>
The script is accessible <a href="binaries.html#nordvpn-toggle">here</a>.
</p>
</div>
</div>
</div>
<div id="outline-container-org26a9227" class="outline-2">
<h2 id="org26a9227">High cursor</h2>
<div class="outline-text-2" id="text-org26a9227">
<p>
This is using this program: module/
</p>
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/cursor</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.config/polybar/scripts/cursor-toggle.sh &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/cursor-status.sh
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">2</span>
</pre>
</div>
</div>
<div id="outline-container-orgad6a518" class="outline-3">
<h3 id="orgad6a518">Cursor - Status</h3>
<div class="outline-text-3" id="text-orgad6a518">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"highlight-point"</span> &gt;/dev/null; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"%{F#859900}&#63155;%{F-}"</span>;
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"&#63155;"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
<div id="outline-container-orgc14dd88" class="outline-3">
<h3 id="orgc14dd88">Toggle Cursor</h3>
<div class="outline-text-3" id="text-orgc14dd88">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> <span class="org-type">pgrep</span> -x <span class="org-string">"highlight-point"</span> &gt;/dev/null; <span class="org-keyword">then</span>
killall highlight-point &amp;&amp; <span class="org-sh-escaped-newline">\</span>
notify-send --hint=string:x-dunst-stack-tag:kidF4g53 <span class="org-string">"Cursor"</span> <span class="org-string">"Turned off"</span>;
<span class="org-keyword">else</span>
nohup highlight-pointer -r <span class="org-highlight-numbers-number">10</span> &gt; /dev/null <span class="org-highlight-numbers-number">2</span>&gt;&amp;<span class="org-highlight-numbers-number">1</span> &amp;
notify-send --hint=string:x-dunst-stack-tag:kidF4g53 <span class="org-string">"Cursor"</span> <span class="org-string">"Highlight..."</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgb3fc699" class="outline-2">
<h2 id="orgb3fc699">Mounted Drives</h2>
<div class="outline-text-2" id="text-orgb3fc699">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/drive_tmp</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.local/bin/mount-dir tmp_14_days &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/drive-status.sh tmp_14_days T
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">5</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/drive_groupshare</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.local/bin/mount-dir groupshare &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/drive-status.sh groupshare G
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">5</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/drive_homelab</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.local/bin/mount-dir homelab &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/drive-status.sh homelab H
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">5</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/drive_unix_home</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.local/bin/mount-dir unix_home &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/drive-status.sh unix_home U
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">5</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/drive_monochromator</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.local/bin/mount-dir monochromators &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/drive-status.sh monochromators M
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">5</span>
</pre>
</div>
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/drive_data_id21</span>]
<span class="org-variable-name">type</span> = custom/script
<span class="org-variable-name">format-underline</span> = ${colors.bg}
<span class="org-variable-name">click-left</span> = ~/.local/bin/mount-dir data_id21 &gt;/dev/null 2&gt;%1 &amp;
<span class="org-variable-name">format</span> = &lt;label&gt;
<span class="org-variable-name">exec</span> = ~/.config/polybar/scripts/drive-status.sh data_id21 D
<span class="org-variable-name">interval</span> = <span class="org-highlight-numbers-number">5</span>
</pre>
</div>
</div>
<div id="outline-container-org324f63f" class="outline-3">
<h3 id="org324f63f">Drive - Status</h3>
<div class="outline-text-3" id="text-org324f63f">
<div class="org-src-container">
<pre class="src src-bash"><span class="org-keyword">if</span> mountpoint -q ~/mnt/$<span class="org-highlight-numbers-number">1</span>; <span class="org-keyword">then</span>
<span class="org-type">echo</span> <span class="org-string">"%{F#859900}</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">2</span></span><span class="org-string"> &#63884;%{F-}"</span>;
<span class="org-keyword">else</span>
<span class="org-type">echo</span> <span class="org-string">"</span><span class="org-string"><span class="org-constant">$</span></span><span class="org-string"><span class="org-variable-name">2</span></span><span class="org-string"> &#63885;"</span>;
<span class="org-keyword">fi</span>
</pre>
</div>
</div>
</div>
</div>
<div id="outline-container-orgedf2999" class="outline-2">
<h2 id="orgedf2999">Screenshot</h2>
<div class="outline-text-2" id="text-orgedf2999">
<div class="org-src-container">
<pre class="src src-conf">[<span class="org-type">module/screenshot</span>]
<span class="org-variable-name">type</span> = custom/text
<span class="org-variable-name">content</span> = <span class="org-string">"&#62975;"</span>
<span class="org-variable-name">click-left</span> = ~/.local/bin/screenshot &gt;/dev/null 2&gt;%1 &amp;
</pre>
</div>
</div>
</div>
</div>
<div id="postamble" class="status">
<p class="author">Author: Dehaeze Thomas</p>
<p class="date">Created: 2022-05-09 lun. 10:04</p>
</div>
</body>
</html>