diff options
| author | lassulus <lassulus@lassul.us> | 2021-02-11 11:09:03 +0100 |
|---|---|---|
| committer | lassulus <lassulus@lassul.us> | 2021-02-11 11:09:03 +0100 |
| commit | 424bed37941a2d0db083e76ef5183fbf2cb950c2 (patch) | |
| tree | 120cf684ea4f9a302e719b54179dbdf6da321381 /tv/5pkgs/simple/xdpytools/src/xdpychvt | |
| parent | e266373de4dd8e987cdceb04f8dab6347420de79 (diff) | |
| parent | 4ec04fe23a6e6c8fc151a8ab77a8ab27c78c1b4f (diff) | |
Merge remote-tracking branch 'ni/master'
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")" |
