aboutsummaryrefslogtreecommitdiff
path: root/articles/2025/Thinkvantage-button-in-DWM.html
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
committerPhilip Wittamore <philip@wittamore.com>2026-07-12 11:08:50 +0200
commit420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 (patch)
tree3009f0564d75e3f7d1ca38507e7ebb92deaded07 /articles/2025/Thinkvantage-button-in-DWM.html
update
Diffstat (limited to 'articles/2025/Thinkvantage-button-in-DWM.html')
-rwxr-xr-xarticles/2025/Thinkvantage-button-in-DWM.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/articles/2025/Thinkvantage-button-in-DWM.html b/articles/2025/Thinkvantage-button-in-DWM.html
new file mode 100755
index 0000000..5721c8e
--- /dev/null
+++ b/articles/2025/Thinkvantage-button-in-DWM.html
@@ -0,0 +1,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>&nbsp;</p>
+
+<p>ยง</p>
+ </footer>
+</body>
+</html>