aboutsummaryrefslogtreecommitdiff
path: root/articles/2021/i3-Blocks.html
diff options
context:
space:
mode:
Diffstat (limited to 'articles/2021/i3-Blocks.html')
-rwxr-xr-xarticles/2021/i3-Blocks.html50
1 files changed, 50 insertions, 0 deletions
diff --git a/articles/2021/i3-Blocks.html b/articles/2021/i3-Blocks.html
new file mode 100755
index 0000000..058d999
--- /dev/null
+++ b/articles/2021/i3-Blocks.html
@@ -0,0 +1,50 @@
+<!doctype html>
+<html lang="EN">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" href="/style.css">
+ <title>Bloggings</title>
+ </head>
+ <body>
+ <header>
+ <h1>Bloggings</h1>
+ <a href="/index.php">Back</a>
+
+ </header>
+
+<main>
+<article>
+<h2>i3 Blocks</h2>
+<h3>2021-05-05</h3>
+<p>Mon X220 tourne maintenant sous Manjaro i3, et j'ai réussi à obtenir une jolie barre d'état avec
+i3-Blocks</p>
+<img src="/images/i3-blocks.webp" alt="i3 status image">
+<p>Afin d'obtenir un calendrier pop-up lorsque je clique sur la date dans la barre, j'ai installé
+<a href="https://github.com/dmedvinsky/gsimplecal">gsimplecal</a></p>
+<img src="/images/gsimplecal.webp" alt="gsimplecal image">
+<p><code>pacman -S gsimplecalendar</code></p>
+<p>et modifié .config/I3blocks/config comme suit:</p>
+<p><code>
+[gsimplecal]<br>
+command=date '+%d/%m %H:%M:%S';if [ $button ]; then gsimplecal; fi<br>
+interval=1
+</code></p>
+<p>Pour faire disparaître le calendrier lorsque le curseur ne le survole plus,
+éditez</p>
+<p><code>
+~/.config/gsimplecal/config
+</code></p>
+<p>et ajoutez la ligne</p>
+<p><code>
+close_on_unfocus = 1
+</code></p>
+<p>puis redémarrez la barre avec</p>
+<p><code>
+i3-msg restart
+</code></p>
+</article>
+</main>
+<footer>
+<p>&nbsp;</p><p>§</p></footer>
+</body></html>