blob: 5721c8e0e57da3c71155881da02b7caf1b9ca623 (
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
|
<!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>Thinkvantage button in DWM</title>
</head>
<body>
<header>
<h1>Bloggings</h1>
<a href="/index.php">Back</a>
</header>
<main>
<article>
<h2>Thinkvantage button in DWM</h2>
<h3>2025-04-27</h3>
<h4>Putting the Thinkvantage button to use</h4>
<p><img src="/images/blog/thinkvantage.png" alt="thinkvantage button"></p>
<p>On my Thinkpad X220 there's a blue Thinkvantage button that only gets used when the machine boots to select different options.</p>
<p>Using xev the button is referenced as XF86XK_Launch1, here I use it to run a rofi menu for logging out, shutting down, rebooting, etc.</p>
<p><b>dwm/config.h</b></p>
<pre>
...
{ 0, XF86XK_Launch1, spawn, SHCMD("rofi -show power-menu -modi power-menu:rofi-power-menu") },
...
</pre>
<p>power-menu <a href="https://github.com/jluttine/rofi-power-menu">can be found here</a></p>
<p><img src="/images/blog/powermenu.png"></p>
</article>
</main>
<footer>
<p> </p>
<p>§</p>
</footer>
</body>
</html>
|