From 420ceb49b53a8fa9d8ba8443e42e50cd7bd7cea9 Mon Sep 17 00:00:00 2001 From: Philip Wittamore Date: Sun, 12 Jul 2026 11:08:50 +0200 Subject: update --- articles/2025/Thinkvantage-button-in-DWM.html | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 articles/2025/Thinkvantage-button-in-DWM.html (limited to 'articles/2025/Thinkvantage-button-in-DWM.html') 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 @@ + + + + + + + Thinkvantage button in DWM + + +
+

Bloggings

+ Back + +
+ +
+
+

Thinkvantage button in DWM

+

2025-04-27

+

Putting the Thinkvantage button to use

+

thinkvantage button

+

On my Thinkpad X220 there's a blue Thinkvantage button that only gets used when the machine boots to select different options.

+

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.

+

dwm/config.h

+
+...
+{ 0,            XF86XK_Launch1,            spawn,          SHCMD("rofi -show power-menu -modi power-menu:rofi-power-menu") },
+...
+
+

power-menu can be found here

+

+
+
+ + + -- cgit v1.3.1