Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #DISPLAY=:0.1 Xephyr :2 -dpi 96 -fullscreen -screen $secondmonres -nolisten tcp -sw-cursor &
- secondmonres=1024x768
- thirdmonres=1280x1024
- secondmonkbd=/dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-kbd
- secondmonmice=/dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-mouse
- sudo INPDEV.sh
- sh ~/.screenlayout/screen.sh
- sleep 5
- setxkbmap -option grp:switch,grp:ctrl_shift_toggle,grp_led:scroll us,ru
- x11vnc -forever -alwaysshared &
- sleep 5
- Xephyr :2 -dpi 96 -screen $secondmonres -nolisten tcp -sw-cursor -keybd evdev,,device=$secondmonkbd -mouse evdev,,device=$secondmonmice &
- sleep 1
- Xephyr :3 -dpi 96 -screen $thirdmonres -nolisten tcp -sw-cursor &
- sleep 5
- xdotool search --name "Xephyr on :2" set_window --name "Xephyr2"
- sleep 1
- xdotool search --name "Xephyr on :3" set_window --name "Xephyr3"
- sleep 2
- wmctrl -r "Xephyr2" -e 0,1281,0,1024,768
- sleep 1
- wmctrl -r "Xephyr3" -e 0,2305,0,1280,1024
- sleep 2
- wmctrl -r Xephyr2 -b toggle,fullscreen
- sleep 1
- wmctrl -r Xephyr3 -b toggle,fullscreen
- sleep 1
- xprop -name Xephyr2 -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_SKIP_TASKBAR
- sleep 1
- xprop -name Xephyr3 -f _NET_WM_STATE 32a -set _NET_WM_STATE _NET_WM_STATE_SKIP_TASKBAR
Advertisement
Add Comment
Please, Sign In to add comment