-
-
Save vlaci/4fab772766c8f94905f751599f81461d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ xrandr --output HDMI2 --auto --right-of eDP1 | |
WMeDP1:O1:o2:f3:f4:f5:LT:TT:G | |
monitor_geometry 0x00200001 1600x900+0+0 | |
monitor_add 0x00200040 HDMI2 1920x1200+1600+0 | |
WMeDP1:O1:o2:f3:f4:f5:LT:TT:G:mHDMI2 | |
desktop_add 0x00200042 Desktop 0x00200040 | |
WMeDP1:O1:o2:f3:f4:f5:LT:TT:G:mHDMI2:FDesktop:LT | |
monitor_geometry 0x00200001 1600x900+0+0 | |
monitor_geometry 0x00200040 1920x1200+1600+0 | |
RRScreenChangeNotify event, serial 18, synthetic NO, window 0xe2, | |
root 0xe2, timestamp 36511384, config_timestamp 35751319 | |
size_index 65535, subpixel_order SubPixelUnknown | |
rotation RR_Rotate_0 | |
width 3520, height 1200, mwidth 926, mheight 316 | |
RRNotify event, serial 18, synthetic NO, window 0xe2, | |
subtype XRRCrtcChangeNotifyEvent | |
crtc 63, mode 1600x900, rotation RR_Rotate_0 | |
x 0, y 0, width 1600, height 900 | |
RRNotify event, serial 18, synthetic NO, window 0xe2, | |
subtype XRRCrtcChangeNotifyEvent | |
crtc 64, mode 1920x1200, rotation RR_Rotate_0 | |
x 1600, y 0, width 1920, height 1200 | |
RRNotify event, serial 18, synthetic NO, window 0xe2, | |
subtype XRRCrtcChangeNotifyEvent | |
crtc 65, mode None, rotation RR_Rotate_0 | |
x 0, y 0, width 0, height 0 | |
RRNotify event, serial 18, synthetic NO, window 0xe2, | |
subtype XRRCrtcChangeNotifyEvent | |
crtc 66, mode None, rotation RR_Rotate_0 | |
x 0, y 0, width 0, height 0 | |
RRNotify event, serial 18, synthetic NO, window 0xe2, | |
subtype XRROutputChangeNotifyEvent | |
output eDP1, crtc 63, mode 1600x900 (1600x900) | |
rotation RR_Rotate_0 | |
connection RR_Connected, subpixel_order SubPixelUnknown | |
RRNotify event, serial 18, synthetic NO, window 0xe2, | |
subtype XRROutputChangeNotifyEvent | |
output DP1, crtc None, mode None | |
rotation RR_Rotate_0 | |
connection RR_Disconnected, subpixel_order SubPixelUnknown | |
RRNotify event, serial 18, synthetic NO, window 0xe2, | |
subtype XRROutputChangeNotifyEvent | |
output HDMI1, crtc None, mode None | |
rotation RR_Rotate_0 | |
connection RR_Disconnected, subpixel_order SubPixelUnknown | |
RRNotify event, serial 18, synthetic NO, window 0xe2, | |
subtype XRROutputChangeNotifyEvent | |
output HDMI2, crtc 64, mode 1920x1200 (1920x1200) | |
rotation RR_Rotate_0 | |
connection RR_Connected, subpixel_order SubPixelUnknown | |
RRNotify event, serial 18, synthetic NO, window 0xe2, | |
subtype XRROutputChangeNotifyEvent | |
output VIRTUAL1, crtc None, mode None | |
rotation RR_Rotate_0 | |
connection RR_Disconnected, subpixel_order SubPixelNone | |
$ bspc monitor HDMI2 -a new | |
desktop_add 0x00200043 new 0x00200040 | |
WMeDP1:O1:o2:f3:f4:f5:LT:TT:G:mHDMI2:FDesktop:fnew:LT | |
PropertyNotify event, serial 35, synthetic NO, window 0xe2, | |
atom 0x12f (_NET_NUMBER_OF_DESKTOPS), time 36512438, state PropertyNewValue | |
PropertyNotify event, serial 35, synthetic NO, window 0xe2, | |
atom 0x133 (_NET_DESKTOP_NAMES), time 36512438, state PropertyNewValue | |
$ bspc desktop Desktop -r | |
desktop_remove 0x00200040 0x00200042 | |
WMeDP1:O1:o2:f3:f4:f5:LT:TT:G:mHDMI2:fnew | |
WMeDP1:O1:o2:f3:f4:f5:LT:TT:G:mHDMI2:fnew | |
PropertyNotify event, serial 37, synthetic NO, window 0xe2, | |
atom 0x132 (_NET_CURRENT_DESKTOP), time 36513443, state PropertyNewValue | |
PropertyNotify event, serial 37, synthetic NO, window 0xe2, | |
atom 0x12f (_NET_NUMBER_OF_DESKTOPS), time 36513443, state PropertyNewValue | |
PropertyNotify event, serial 37, synthetic NO, window 0xe2, | |
atom 0x133 (_NET_DESKTOP_NAMES), time 36513443, state PropertyNewValue | |
$ xrandr --output HDMI2 --off | |
RRScreenChangeNotify event, serial 38, synthetic NO, window 0xe2, | |
root 0xe2, timestamp 36511384, config_timestamp 35751319 | |
size_index 65535, subpixel_order SubPixelUnknown | |
rotation RR_Rotate_0 | |
width 3520, height 1200, mwidth 926, mheight 316 | |
monitor_geometry 0x00200001 1600x900+0+0 | |
desktop_add 0x00200044 Desktop 0x00200040 | |
WMeDP1:O1:o2:f3:f4:f5:LT:TT:G:mHDMI2:FDesktop:LT | |
monitor_geometry 0x00200001 1600x900+0+0 | |
RRNotify event, serial 38, synthetic NO, window 0xe2, | |
subtype XRRCrtcChangeNotifyEvent | |
crtc 64, mode None, rotation RR_Rotate_0 | |
x 0, y 0, width 0, height 0 | |
RRNotify event, serial 38, synthetic NO, window 0xe2, | |
subtype XRROutputChangeNotifyEvent | |
output HDMI2, crtc None, mode None | |
rotation RR_Rotate_0 | |
connection RR_Connected, subpixel_order SubPixelUnknown | |
ConfigureNotify event, serial 38, synthetic NO, window 0xe2, | |
event 0xe2, window 0xe2, (0,0), width 3520, height 1200, | |
border_width 0, above 0x0, override NO | |
ConfigureNotify event, serial 38, synthetic NO, window 0xe2, | |
event 0xe2, window 0x7a, (0,0), width 1600, height 900, | |
border_width 0, above 0x3200048, override YES | |
RRScreenChangeNotify event, serial 38, synthetic NO, window 0xe2, | |
root 0xe2, timestamp 36514450, config_timestamp 35751319 | |
size_index 0, subpixel_order SubPixelUnknown | |
rotation RR_Rotate_0 | |
width 1600, height 900, mwidth 421, mheight 237 | |
ConfigureNotify event, serial 38, synthetic NO, window 0xe2, | |
event 0xe2, window 0xe2, (0,0), width 1600, height 900, | |
border_width 0, above 0x0, override NO | |
PropertyNotify event, serial 38, synthetic NO, window 0xe2, | |
atom 0x12f (_NET_NUMBER_OF_DESKTOPS), time 36514489, state PropertyNewValue | |
PropertyNotify event, serial 38, synthetic NO, window 0xe2, | |
atom 0x133 (_NET_DESKTOP_NAMES), time 36514489, state PropertyNewValue | |
$ bspc monitor HDMI2 -r | |
monitor_remove 0x00200040 | |
desktop_remove 0x00200040 0x00200044 | |
WMeDP1:O1:o2:f3:f4:f5:LT:TT:G:mHDMI2 | |
WMeDP1:O1:o2:f3:f4:f5:LT:TT:G:mHDMI2 | |
WMeDP1:O1:o2:f3:f4:f5:LT:TT:G | |
PropertyNotify event, serial 41, synthetic NO, window 0xe2, | |
atom 0x132 (_NET_CURRENT_DESKTOP), time 36515489, state PropertyNewValue | |
PropertyNotify event, serial 41, synthetic NO, window 0xe2, | |
atom 0x12f (_NET_NUMBER_OF_DESKTOPS), time 36515489, state PropertyNewValue | |
PropertyNotify event, serial 41, synthetic NO, window 0xe2, | |
atom 0x133 (_NET_DESKTOP_NAMES), time 36515490, state PropertyNewValue | |
DestroyNotify event, serial 41, synthetic NO, window 0xe2, | |
event 0xe2, window 0x200041 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eu | |
output1=$1 | |
output2=$2 | |
trap 'kill $(jobs -pr)' SIGINT SIGTERM EXIT | |
function trace() | |
{ | |
echo "$ ""$@" | |
"$@" | |
} | |
bspc config remove_disabled_monitors false | |
bspc config remove_unplugged_monitors false | |
bspc subscribe report monitor desktop node & | |
xev -root & | |
trace xrandr --output $output2 --auto --right-of $output1 | |
sleep 1 | |
trace bspc monitor $output2 -a new | |
sleep 1 | |
trace bspc desktop Desktop -r | |
sleep 1 | |
trace xrandr --output $output2 --off | |
sleep 1 | |
trace bspc monitor $output2 -r | |
sleep 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment