blob: 84c1907b96f52c276e443cdc96d662ea3ac73522 (
plain)
1
2
3
4
5
6
7
8
9
10
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")"
|