blob: 058d9996b3148a4898d4f5c94392e8b40ba73765 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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>
|