summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/simple/xdpytools/src/xdpychvt
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-02-07 21:52:37 +0100
committertv <tv@krebsco.de>2021-02-07 22:31:53 +0100
commita94d2ce6c7e83ecb0337affd91200c4774ba7920 (patch)
treeb637161ba7adfe17a252fef4074e9e4abb8c4eac /tv/5pkgs/simple/xdpytools/src/xdpychvt
parent1ff4a60b8d241230c580fc5e9a705335c9c415a6 (diff)
tv xdpytools: init
Diffstat (limited to 'tv/5pkgs/simple/xdpytools/src/xdpychvt')
-rwxr-xr-xtv/5pkgs/simple/xdpytools/src/xdpychvt11
1 files changed, 11 insertions, 0 deletions
diff --git a/tv/5pkgs/simple/xdpytools/src/xdpychvt b/tv/5pkgs/simple/xdpytools/src/xdpychvt
new file mode 100755
index 000000000..84c1907b9
--- /dev/null
+++ b/tv/5pkgs/simple/xdpytools/src/xdpychvt
@@ -0,0 +1,11 @@
+#! /bin/sh
+# usage: xdpychvt {prev,next}
+# Changes to the VT based on the selected X display.
+#
+# This allows switching between X servers when display names and VT numbers
+# correlate. A more sophisticated tool would try to determine the correct VT
+# by e.g. looking at /proc, but this might not possible when e.g. using
+# security.hideProcessInformation.
+#
+
+chvt "$(xdpysel "$1")"