summaryrefslogtreecommitdiff
path: root/.config/waybar/custom/keyboard
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-13 01:09:49 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-13 01:09:49 +0200
commit0438660003a5f3cbdb2dd8a42961e0c8629f80b9 (patch)
treee2829960bbb7f2cc5ef55d0c48ea3c781f1c4b79 /.config/waybar/custom/keyboard
parentdd397e6a4a9368117e2689904bb6bb8586d598e9 (diff)
waybar: Add waybar configuration
Diffstat (limited to '.config/waybar/custom/keyboard')
-rwxr-xr-x.config/waybar/custom/keyboard11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/waybar/custom/keyboard b/.config/waybar/custom/keyboard
new file mode 100755
index 0000000..eba7e61
--- /dev/null
+++ b/.config/waybar/custom/keyboard
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+hyprctl devices | sed -En '
+/^\tKeyboard at/ {
+ :loop
+ n
+ /^\t\t\trules: /! b loop
+ s/.* l "([^"]+)", v "([^"]+)".*/\1(\2)/p
+ q
+}
+'