From a94d2ce6c7e83ecb0337affd91200c4774ba7920 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 7 Feb 2021 21:52:37 +0100 Subject: tv xdpytools: init --- tv/5pkgs/simple/xdpytools/src/xdpychvt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 tv/5pkgs/simple/xdpytools/src/xdpychvt (limited to 'tv/5pkgs/simple/xdpytools/src/xdpychvt') diff --git a/tv/5pkgs/simple/xdpytools/src/xdpychvt b/tv/5pkgs/simple/xdpytools/src/xdpychvt new file mode 100755 index 00000000..84c1907b --- /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")" -- cgit v1.2.3