diff options
author | tv <tv@krebsco.de> | 2021-02-07 21:52:37 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2021-02-07 22:31:53 +0100 |
commit | d6a6822b7b32baf8e7a56a6ecbc9a14b2e0a7110 (patch) | |
tree | c3f251f8056f7cd2baec1d6cf21508dc0d7519e5 /tv/5pkgs/simple/xdpytools/src/xdpychvt | |
parent | 54b21c800b44c6cb1d203020c8244ab3160032d6 (diff) |
tv xdpytools: init
Diffstat (limited to 'tv/5pkgs/simple/xdpytools/src/xdpychvt')
-rwxr-xr-x | tv/5pkgs/simple/xdpytools/src/xdpychvt | 11 |
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 0000000..84c1907 --- /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")" |