diff options
| author | Philip Wittamore <philip@wittamore.com> | 2026-07-12 11:08:50 +0200 |
|---|---|---|
| committer | Philip Wittamore <philip@wittamore.com> | 2026-07-12 11:08:50 +0200 |
| commit | 420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 (patch) | |
| tree | 3009f0564d75e3f7d1ca38507e7ebb92deaded07 /articles/2021/i3-Blocks.html | |
update
Diffstat (limited to 'articles/2021/i3-Blocks.html')
| -rwxr-xr-x | articles/2021/i3-Blocks.html | 50 |
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> </p><p>§</p></footer> +</body></html> |
