]> Freerunner's - dotfiles.git/commitdiff
scripts: add wlprop main
authorAndre Ramnitz <tux.rising@gmail.com>
Mon, 8 Jun 2026 05:18:23 +0000 (07:18 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Mon, 8 Jun 2026 05:18:23 +0000 (07:18 +0200)
dot-local/bin/wlprop [new file with mode: 0755]

diff --git a/dot-local/bin/wlprop b/dot-local/bin/wlprop
new file mode 100755 (executable)
index 0000000..da92908
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# echo "$1"
+
+case "$1" in
+  "-c")
+    qdbus6 org.kde.KWin /KWin queryWindowInfo | grep -i class
+    ;;
+  *)
+    qdbus6 org.kde.KWin /KWin queryWindowInfo
+    ;;
+esac